How to clear "Query Execution Timed Out" (or) "Socket Read Timed Out" error alerts during Oracle monitor data collection?

How to clear "Query Execution Timed Out" (or) "Socket Read Timed Out" error alerts during Oracle monitor data collection?

Applications Manager throws the Query timed out/Socket read timed out error in some scenarios as below: 
Socket read timed out due to this query group(s) : xxxxxxxx
Error Message :  java.sql.SQLRecoverableException: IO Error: Socket read timed out. 
(OR)
Query execution timed out due to this query group(s): xxxxxxxx
Error Message:  java.sql.SQLTimeoutException: ORA-01013: user requested cancel of current operation.
xxxxxxxx - is the query group name

Solution:  

If the alert is Query execution timed out alert then
From the Applications Manager GUI, Go to respective Oracle Monitor's details page -> Monitor Actions -> Edit Monitor -> Increase the seconds mentioned in " Query Execution Timeout" field.
If the alert is Socket read timed out alert then
From the Applications Manager GUI, Go to respective Oracle Monitor's details page -> Monitor Actions -> Edit Monitor -> Increase the seconds mentioned in " Socket Read Timeout" field.

If the query group reported is  INSTANCESTATUS or TABLESPACESTATUS and If the alert still continues even after performing the above step then check the below KB and perform the steps in the corresponding Oracle Database with the help of your Oracle DBA.

For other query group (s), reach out to our support ( appmanager-support@manageengine.com) with the latest  support information file generated with print all logs enabled from Applications Manager.  

This issue occurs on INSTANCESTAUS/ TABLESPACESTATUS because the queries against the dictionary table  DBA_FREE_SPACE were taking a long time to execute. 

(I) Recommendation of Oracle Support for " Queries on DBA_FREE_SPACE are Slow (Doc ID 271169.1)" states the following reasons: 
  1. In release 10g, the view DBA _FREE_SPACE was modified to also include objects in the recycle bin.
  2. A large number of objects in the recycle bin can slow down queries on DBA _FREE_SPACE. This is normal behavior. 
  3. For release 11g, the view DBA _FREE_SPACE does not contain a hint which in case there are only a few objects in the recycle bin, you may want to gather underlying stats of tables/dictionaries to get better performance. 
Run the below query and check count in recycle bin:
  • SQL> SELECT count(*) FROM dba_recyclebin;
If the count is higher, then purge the recycle bin using below command: 
  • SQL> PURGE dba_recyclebin;

(II) Next recommendation of Oracle Support for " How to Gather Statistics on Objects Owned by the ‘SYS’ User and ‘Fixed’ Objects (Doc ID 457926.1)" to gather dictionary and fixed table stats (with customers permission).
  • SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS; 
  • SQL> EXEC DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;

Note : For multi-tenant enabled Oracle, the container database and the pluggable databases require independent purge.

                  New to ADManager Plus?

                    New to ADSelfService Plus?