run_sql_tuning_advisor
Run Oracle's SQL Tuning Advisor on a SQL statement to get a TEXT report with index, SQL profile, statistics, and rewrite recommendations. Requires ADVISOR privilege.
Instructions
Run Oracle's SQL Tuning Advisor (DBMS_SQLTUNE) on a statement and return its TEXT report with recommendations (indexes, SQL profiles, statistics, rewrites). Requires the ADVISOR privilege; a missing privilege 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 tune. |