explain_plan
Generate an Oracle execution plan for a SQL statement without running it, using EXPLAIN PLAN and DBMS_XPLAN; surface errors if PLAN_TABLE is missing or inaccessible.
Instructions
Generate and return the Oracle execution plan for a SQL statement via EXPLAIN PLAN and DBMS_XPLAN, without executing the statement. Needs a PLAN_TABLE; if it is missing or the user lacks access, the failure is surfaced as an error result. Reports progress to clients that pass a progress token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SQL statement to plan (typically SELECT, INSERT, UPDATE, DELETE or MERGE). |