Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

ORA-13639 Tips

Oracle Database Tips by Donald BurlesonMarch 26, 2015

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!

Oracle training
 
 


 

 

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.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster