Finding error details of Automatic SQL Tuning Task
The status of "SQL Tuning Advisor" for 11.2.0.1 database in Advisor Central section of 11g Grid Control is "RUNNING". Alert log has messages such as "Process 0x0x4ff2f9818 appears to be hung in Auto SQL Tuning task" followed by "Attempting to kill process 0x0x4ff2f9818 with OS pid = 8030".Querying of data dictionary views DBA_AUTOTASK_JOB_HISTORY and DBA_ADVISOR_EXECUTIONS returns following information:
CLIENT_NAME | JOB_START_TIME | JOB_STATUS JOB_DURAT |
ION
------------------ ---------------------------------------- ---------- ---------
------
sql tuning advisor 09-OCT-14 10.00.02.730406 PM US/EASTERN STOPPED | +000 01:1 |
0:41
sql tuning advisor 08-OCT-14 10.00.01.903313 PM US/EASTERN STOPPED | +000 01:1 |
1:25
sql tuning advisor 07-OCT-14 10.00.02.603543 PM US/EASTERN STOPPED |