在Oracle中配置SQL Plan Management (SPM)需要執行以下步驟:
EXEC DBMS_SPM.CREATE_SQL_PLAN_BASELINE(plan_name => 'baseline_name', sql_handle => 'sql_handle_value');
EXEC DBMS_SPM.LOAD_PLANS_FROM_CURSOR_CACHE(sql_handle => 'sql_handle_value', plan_name => 'baseline_name', fixed => 'YES');
EXEC DBMS_SPM.ACCEPT_SQL_PLAN_BASELINE(plan_name => 'baseline_name', task_name => 'task_name');
EXEC DBMS_SPM.EXECUTE_TUNING_TASK(task_name => 'task_name');
通過執行上述步驟,您可以在Oracle中成功配置SQL Plan Management (SPM)。