locks
Analyze blocked Oracle sessions to identify root blockers, locked objects, waiting sessions, and idle or SQL details, then suggest ALTER SYSTEM KILL SESSION commands without executing them.
Instructions
Lock analysis: blocked sessions with the blocking and root blocking session and the locked object, the root blockers (status, idle time, SQL, number of waiters) and the locks they hold (V$LOCKED_OBJECT). Suggests, but never executes, ALTER SYSTEM KILL SESSION. Single instance (V$ views).
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": "locks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of blocked sessions (default 20) |