Oracle database troubleshooting
The following issues can occur when you are using Oracle as the Infrastructure Management Database.
Symptom | Error message | Solution | Reference | ||||||
---|---|---|---|---|---|---|---|---|---|
Installation | |||||||||
Common error messages recorded in the following log files when installing TrueSight Infrastructure Managementwith Oracle as the database:
|
| Refer to error messages table in the online document. | |||||||
Installation fails due to incorrect Oracle character set | Failure Error: NLS_CHARACTERSET is set to [WE8MSWIN1252]. It needs to be set to [AL32UTF8] | To resolve this issue, contact the Oracle Administrator to change the Database Character Set to Unicode (AL32UTF8), then run the installer again. For your reference, requirements for character sets are:
| |||||||
Configuration | |||||||||
pw dbconfig set and test commands fail while configuring with an Oracle RAC. The pw dbconfig set and pw dbconfig test commands fail when configuring TSIM with an Oracle RAC. | Example: pw dbconfig set Error: Validating connection parameters failed. Message: [For MainUser : IO Error: The Network Adapter could not establish the connection, SQLState:08006] pw dbconfig test Error: For MainUser : IO Error: The Network Adapter could not establish the connection, SQLState:08006 | If you are using SCAN IP, then custom pronet.conf should look like below: pronet.api.database.database=oracle pronet.api.database.oracle.rac=true pronet.api.database.oracle.rac.count=1 pronet.api.database.oracle.rac.host.1=<scanip_host> pronet.api.database.oracle.rac.port.1=1521 pronet.api.database.sid=<ABC> If you are using 2 hosts then custom pronet.conf should look like below: pronet.api.database.database=oracle pronet.api.database.oracle.rac=true pronet.api.database.oracle.rac.count=2 pronet.api.database.oracle.rac.host.1=<host1> pronet.api.database.oracle.rac.port.1=1521 pronet.api.database.oracle.rac.host.2=<host2> pronet.api.database.oracle.rac.port.2=1521 pronet.api.database.sid=<ABC> Run runjava api.database.DbUpCheck to verify the output is success. Restart the TrueSight Infrastructure Management to reflect new changes. | |||||||
Guidelines to share a single Oracle database instance
|
| ||||||||
Performance and Scalability | |||||||||
Size of the Oracle data file If you are using TrueSight Infrastructure Management on Oracle, and if Oracle runs out of free space, the following error message is written to the TrueSight.log file. | ORA-01653: unable to extend table <Table Name> by <###> in tablespace <Table Space Name> Example: unable to extend table PROACT.AUTODISCOVERY_ERRORS by 8 in tablespace NGP_TS Or ORA-01654: unable to extend index AUTOPROACT._PATROL__SCA_0_STATS_5_N_1 by 1024 in tablespace PNET_TS_AUTO | This error occurs if the tablespace is full or if there is insufficient disk space to extend the tablespace after you have run TrueSight Infrastructure Management for a while. Solution: Contact the Oracle Administrator to create a new data file, and extend the tablespace by performing one of the following tasks:
As a best practice, you can monitor the Oracle tablespace using the Oracle KM. For information on configuring Oracle DB for monitoring, see STEP 5 at Set up Infrastructure Management Self-Monitoring for SQLAnywhere and Oracle DBs. | |||||||
Unable to extend the Oracle System tablespaces SYSTEM or SYSAUX | ORA-01658: unable to create INITIAL extent for segment in tablespace SYSAUX | Recommended SYSTEM tablespace size is 2 GB and SYSAUX tablespace size is 3 GB to avoid this error. Verify and fix one or all of the following in these tablespaces if required:
| |||||||
Maximum number of processes exceeded. When using the same database for multiple TrueSight Infrastructure Managements, you get the following exceptions: Could not open connection or a got minus one from a read call IO error. Exception stack trace 1: PERSISTENCE SERVICE :: An exception has been thrown from Persistence Service-> org.hibernate.exception.JDBCConnectionException: Could not open connection javax.persistence.PersistenceException: org.hibernate.exception.JDBCConnectionException: Could not open connection at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1763) at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1677) at org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:458) Exception stack trace 2: Caused by: java.sql.SQLRecoverableException: IO Error: Got minus one from a read call at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:489) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:553) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:254) | To resolve this issue, you must increase the processes in multiples of hundred. The default value is 1000. You can increase it in multiples of hundreds like 1100,1200, and 1500 based on the traffic that you are monitoring. To increase the number of processes allowed on a database server do the following: 1. Log on to the database as sys/****@<SID> as sysdba (your user credentials) and run the following command: alter system set processes =1500 scope=spfile; 2. Restart the database. 3. Restart TrueSight Infrastructure Management after restoring the database connection. | ||||||||
ORA-00060 error is logged in the TrueSight.log | java.sql.SQLException: ORA-00060: deadlock detected while waiting for resource |
| |||||||
Oracle tablespace is growing exponentially | Run the following utility when the Size of the table index is very high. This utility is for rebuilding the indexes on TrueSight Infrastructure Management Oracle database.
|
Diagnosing and reporting an issue
Task | Action | Steps | Reference |
---|---|---|---|
1 | Review requirements | Confirm the correct Oracle version, the required hardware requirements, and tuning recommendations are met. Check the bmc online documentation for hardware requirement and tuning information for Oracle database. | |
2 | Self-resolve |
The generated report will have suggestions related to parameters SGA, MEMORY_TARGET, OPEN_CURSORS, SESSION_CACHED_CURSORS, CURSOR_SHARING and REDO Logs Size. | For TrueSight Operations Management Health Check Tool - INCLUDES VIDEO, refer to Knowledge Article number 000223338 (Support logon ID required). For OracleSchemaPreInstallCheck.sql script, refer to Running the OracleSchemaPreInstallCheck.sql script |
3 | Collect diagnostics and report | If issues related to database are still exist, raise a BMC Support case after collecting information below:
|