Extensible ADDM in Oracle AI Database 26ai(23.26.4): Building a Custom Row Lock Detection Policy
Standard Automatic Database Diagnostic Monitor (ADDM) identifies common database performance problems, such as CPU and I/O bottlenecks, SQL inefficiencies, memory pressure, and contention. However, every environment has its own workload characteristics and business priorities that general-purpose diagnostics may not fully address. For example, a SQL statement consuming 5% of database time might be acceptable in one environment but critical in another. Extensible ADDM addresses this gap by allowing DBAs to add custom diagnostic rules to the existing ADDM framework. In this article, we will implement a practical example: a custom ADDM rule that detects sustained row-lock contention using Active Session History (ASH) data. 1. Custom ADDM Rule for Row Lock Contention In some environments, even a brief occurrence of enq: TX — row lock contention can be problematic, especially for business-critical applications. For example, an organization might consider row-lock waits lasting mo...