ACCEPT_SQL_PLAN_BASELINE

2026-02-02 07:28:28  Updated

The ACCEPT_SQL_PLAN_BASELINE procedure accepts a plan as a baseline based on the evolution plan results.

Syntax

DBMS_SPM.ACCEPT_SQL_PLAN_BASELINE  (
    sql_handle        IN VARCHAR,
    plan_name         IN VARCHAR := NULL);

Parameters

Parameter Description
database_name The name of the database. This parameter is required only in MySQL-compatible mode.
sql_handle The identifier of the SQL statement, which is also known as SQL_ID.
plan_name The name of the plan, which is also known as Plan Hash Value. If the value is NULL, all evolving plans of the SQL statement are accepted as baselines.

Examples

DECLARE
  v_accept_plans NUMBER;
BEGIN
  v_accept_plans := DBMS_SPM.ACCEPT_SQL_PLAN_BASELINE(
     sql_handle => '529F6E6454EF579C7CC265D1F6131D70',
     plan_name => '3388268709115914355'
     );
END;
/

Contact Us