Question: I am
getting an ORA-13639 error when I try to run the SQL Tuning
Advisor:
Error: ORA-13639: The
current operation was interrupted because it timed out.
How do I fix this ORA-13639 error?
Answer: The oerr utility shows
this on the ORA-13639 error, not much help:
ORA-13639: The current
operation was interrupted because it timed out.
Cause: The task or object operation timed
out.
Action: None
Oracle 11g and beyond automatically runs the SQL Tuning
Advisor against high impact SQL statements, and runs them
during the pre-defined maintenance window.
The default for the job time limit is 3600 seconds. If
the tuning task job cannot finish within this time period,
it will terminate with an ORA-13639.
The solution is Increase the job "Time Limit" and try the
job again. (only in 11.2 and beyond):
BEGIN
DBMS_SQLTUNE.SET_AUTO_TUNING_TASK_PARAMETER(parameter =>
'TIME_LIMIT', value => '7200'); END; /
You can also set time time_limit in the invocation of
create_tuning_task:
SET SERVEROUTPUT ON
DECLARE
l_sql_tune_task_id VARCHAR2(100);
BEGIN
l_sql_tune_task_id := DBMS_SQLTUNE.create_tuning_task (
sql_id => 'nnnn',
scope =>
DBMS_SQLTUNE.scope_comprehensive,
time_limit => 7200,
task_name => 'nnnn_tuning_task',
description =>
'Tuning task for statement nnnn');
DBMS_OUTPUT.put_line('l_sql_tune_task_id:
' || l_sql_tune_task_id);
END;
/
Reference:
MOSC: Automatic SQL Tune Job Fails With
ORA-13639 (Doc ID 1363111.1)
|
|
|
Oracle Training from Don Burleson
The best on site
"Oracle
training classes" are just a phone call away! You can get personalized Oracle training by Donald Burleson, right at your shop!
|
|
|
|
|
Burleson is the American Team
Note:
This Oracle
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
Oracle forum.
Verify
experience!
Anyone
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
publish
their Oracle
qualifications.
Errata?
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
feedback. Just
e-mail:
and include the URL for the page.
Copyright © 1996 - 2020
All rights reserved by
Burleson
Oracle ®
is the registered trademark of Oracle Corporation.
|
|