top_sql
Retrieve top SQL statements from Oracle's shared pool ranked by elapsed time, CPU, buffer gets, disk reads, or executions, with per-execution averages and SQL IDs for performance tuning.
Instructions
Top SQL statements from the shared pool (V$SQLAREA) by elapsed time, CPU, buffer gets, disk reads or executions, with per-execution averages and sql_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "top_sql"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows (default 10) | |
| schema | No | Only statements parsed by this schema | |
| order_by | No | Sort metric (default elapsed) | |
| sql_text_like | No | Case-insensitive substring filter on the SQL text | |
| include_system | No | Include statements parsed as SYS (default false) |