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.
This issue occurs on INSTANCESTAUS/ TABLESPACESTATUS because the queries against the dictionary table DBA_FREE_SPACE were taking a long time to execute.
- In release 10g, the view DBA _FREE_SPACE was modified to also include objects in the recycle bin.
- A large number of objects in the recycle bin can slow down queries on DBA _FREE_SPACE. This is normal behavior.
- 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;
- 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 ADSelfService Plus?