Subject: Why creation of sql profiles take forever
- From: zigzagdna@xxxxxxxxx
- Date: Fri, 4 May 2012 05:58:59 -0700 (PDT)
I am on Oracle 10.2.0.4 on HP UNIX 11i. I am creating sql profiles using following logic. Sometimes sql profile is generated in 1-2 minutes. Many times , even after an hour, no sql profile is created and I get timeout errors . I increased time limit from 3600 (1 hr) to 7200 (2 hrs), still timeout error, why?
-- Tuning task created for specific a statement from the AWR.
DECLARE
l_sql_tune_task_id VARCHAR2(100);
BEGIN
l_sql_tune_task_id := DBMS_SQLTUNE.create_tuning_task ( sql_id => '$SQLSTMTID', scope =
DBMS_SQLTUNE.scope_comprehensive, time_limit => 3600, task_name => '${SQLSTMTID}_AWR_tuning_task', description => 'Tuning task for statement ${SQLSTMTID} in AWR.');
--DBMS_OUTPUT.put_line('l_sql_tune_task_id: ' || l_sql_tune_task_id);
END;
/
EXEC DBMS_SQLTUNE.execute_tuning_task(task_name => '${SQLSTMTID}_AWR_tuning_task');
.
- Follow-Ups:
- Re: Subject: Why creation of sql profiles take forever
- From: John Hurley
- Re: Subject: Why creation of sql profiles take forever
- Prev by Date: Re: Useful piece of software
- Next by Date: Re: Subject: Why creation of sql profiles take forever
- Previous by thread: [ANN] ODB C++ ORM 2.0.0 released, adds support for C++11, polymorphism
- Next by thread: Re: Subject: Why creation of sql profiles take forever
- Index(es):