alert_log
Reads the newest Oracle database diagnostic log entries, optionally filtered to ORA-/TNS- errors or matching text, to help diagnose recent database issues.
Instructions
Read the database alert log through V$DIAG_ALERT_EXT (11.2+): newest entries of the last minutes, optionally only ORA-/TNS- errors or lines containing a text. "Errors in file …" entries show the trace file name to read with trace_content. Needs SELECT on V$DIAG_ALERT_EXT.
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": "alert_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of entries, newest first (default 50) | |
| minutes | No | Time window in minutes (default 60) | |
| contains | No | Case-insensitive substring filter on the message text | |
| errors_only | No | Only entries with ORA-, TNS- or CRS- error codes (default false) |