ORA-13639: The CURRENT operation was interrupted because it timed OUT
该错误是由于SQL Tune Job执行超时导致,默认“Time Limit"是3600秒,即一个小时。
DECLARE
l_sql_tune_task_id CLOB;
BEGIN
l_sql_tune_task_id := DBMS_SQLTUNE.create_tuning_task (
begin_snap =>,
end_snap =>,
sql_id => '',
scope => DBMS_SQLTUNE.scope_comprehensive,
time_limit =>3600,
task_name => '',
description => 'Tuning task for statement SYS_AUTO_SQL_TUNING_TASK in AWR.');
DBMS_OUTPUT.put_line('l_sql_tune_task_id: ' || l_sql_tune_task_id);
END;
/
可以看到这里time_limit设置成了3600秒,可通过以下方式修改:
BEGIN
DBMS_SQLTUNE.SET_TUNING_TASK_PARAMETER(task_name => 'SYS_AUTO_SQL_TUNING_TASK', parameter => 'TIME_LIMIT', value => 7200);
END;
/