Metrics install automatically if you have Redgate Monitor installed.
If you are using Redgate’s SQL Server monitoring tool, Redgate Monitor, you can instantly install and run this metric on your servers.
Oracle automatically resolves deadlocks by rolling back one statement and writing ORA-00060 to the alert log. Because the database recovers on its own, deadlocks are easy to miss — yet a rising deadlock rate points to an application locking-order problem.
Required permissions:
GRANT SELECT ON V_$DIAG_ALERT_EXT TO redgate_monitor_user CONTAINER=ALL;
GRANT SELECT ON V_$CONTAINERS TO redgate_monitor_user CONTAINER=ALL;
These are covered by Redgate Monitor’s standard Oracle monitoring user — if it was set up as described in the product documentation, no additional grants are needed.
Metric definition
Name
Deadlocks (last hour)
Description
Counts deadlocks (ORA-00060) recorded in the alert log within the last 60 minutes, per container. Keep the collection interval shorter than the look-back window (here 10 minutes against a 60-minute window) so no deadlock is missed between collections. Querying V$DIAG_ALERT_EXT reads the alert log and can be heavy on instances with deep ADR history — test execution time first, and purge old alert-log history if slow.
Supported database engine
- Oracle
The T-SQL query that will collect data
Instances to collect from
Select all monitored Oracle instances (test query duration first on instances with large alert logs)
Databases to collect from
Not applicable — Oracle custom metrics collect once per instance, and values are stored per container (PDB) via the con_id column
Collection frequency
600
seconds (collected every 10 minutes)
Use collected or calculated values
Leave the Use a calculated rate of change between collections check box unchecked
Metric collection
Enabled
Alert definition
Alert name
Deadlocks detected
Description
Raise an alert when the metric value goes
Above the defined threshholds
Default threshold values
| High: | 0 |
| Medium: | |
| Low: |
Raise an alert when the threshold is passed for
1 collection
Alert is
Enabled