get_session_sql_text
Retrieve the full SQL text currently executed by an Oracle session using its SID and serial number. Identify running statements for diagnostics or tuning.
Instructions
Return the full SQL text currently being executed by a session, given its sid and serial#.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sid": "<sid>",
"serialNum": "<serialNum>"
},
"name": "get_session_sql_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sid | Yes | Session id (SID). | |
| serialNum | Yes | Session serial number. |