"Using Real-Time SQL Monitoring"
summary
Shows how to use Enterprise Manager and the DBMS_SQL_MONITOR API plus V$SQL_MONITOR/V$SQL_PLAN_MONITOR and AWR to inspect live and historical executions, with defaults that monitor statements consuming ≥5s or running in parallel and requiring Diagnostic and Tuning packs. Demonstrates fixes: gathering missing stats resolves estimated vs actual row mismatches; adding rownum = 1 cuts buffer gets from ~4,000 to 4; expressions like id+0 or implicit type mismatches cause index loss and thousands more buffer gets.
AI-written summary · about
