Last week we had issue were we would get an error "HUNG IN AUTO SQL TUNING TASK". I contacted Oracle service and was told that its due to the following:
Occasionally, when running the "SYS_AUTO_SQL_TUNING_TASK" warning messages such as the following may appear in the alert log:
"Process 0x%p appears to be hung in Auto SQL Tuning task"
"Current time = %u, process death time = %u"
"Attempting to kill process 0x%p with OS pid = %s"
"OSD kill skipped for process %p"
"OSD kill succeeded for process %p"
"OSD kill failed for process %p"
These messages indicate that an auto kill of a "hung"/long running tuning task has taken place. This is a protective measure purely to avoid the task from over-running its time limit because of a single task and protects a the system from harm caused by such over-running.
And I would have to run this query to extend the time. My questions is this.
How do I check my current time it is set to???
BEGIN
DBMS_SQLTUNE.set_tuning_task_parameter('SYS_AUTO_SQL_TUNING_TASK', 'LOCAL_TIME_LIMIT', 21600);
END;
/