Getting SQL Details - Performance Tuning
- Connect SQL*Plus to the database with the appropriate privileges, and then optionally query the current task settings.
style="margin-top:auto;margin-bottom:auto;margin-left:.5in;background:white"
- BEGIN
- DBMS_SPM.SET_EVOLVE_TASK_PARAMETER(
- task_name => 'SYS_AUTO_SPM_EVOLVE_TASK'
- , parameter => parameter_name
- , value => value
- );
- END;
- /
For example, the following PL/SQL block sets a time limit to 20 minutes, and also automatically accepts plans:
BEGIN
DBMS_SPM.SET_EVOLVE_TASK_PARAMETER(
task_name => 'SYS_AUTO_SPM_EVOLVE_TASK'
, parameter => 'LOCAL_TIME_LIMIT'
, value => 1200
);
DBMS_SPM.SET_EVOLVE_TASK_PARAMETER(
task_name => 'SYS_AUTO_SPM_EVOLVE_TASK'
, parameter => 'ACCEPT_PLANS'