2.可选操作,修改SQL执行计划基线的属性。例如,下面的语句将修改特定SQL语句的执行计划基线为fixed:
SQL> declare
2 v_cnt PLS_INTEGER;
3 begin
4 v_cnt:=dbms_spm.alter_sql_plan_baseline(
5 sql_handle=>'SQL_9c0d7998b1d28680',
6 attribute_name=>'FIXED',
7 attribute_value=>'YES');
8 dbms_output.put_line('Plans altered: '|| v_cnt);
9 end;
10 /
PL/SQL procedure successfully completed
3.检查原stored outline的状态:
select name,owner,category,used,migrated from dba_outlines;