Respuesta de referencia
Common wait events:
-
db file sequential read — single-block reads (index lookups). Cause: physical I/O. Resolution: tune queries, add index, improve I/O.
-
db file scattered read — multi-block reads (table scans). Cause: full table scans. Resolution: add indexes, tune queries, increase buffer_cache.
-
log file sync — wait for LGWR to write redo — caused by commit waits. Resolution: reduce commit frequency, tune application, faster redo logs, increase LOG_BUFFER.
-
log file parallel write — LGWR writing multiple redo members. Resolution: check I/O subsystem for redo logs; ensure redo logs on fast disks.
-
enqueue waits (enq: TX) — locks for transactions. Cause: uncommitted transactions, row locks. Resolution: find blocking session and resolve.
-
latch free — contention for internal structures. Resolution: application tuning, parameter tuning, reducing parallelism.
-
buffer busy waits — contention for blocks. Resolution: reduce hot block access, partition tables, increase freelist.
-
CPU — CPU bound. Resolution: tune SQL, add CPUs, offload work.
-
log file switch (checkpoint incomplete) — waiting for checkpoint. Resolution: increase DBWR performance, tune checkpoints, increase redo logs, add more redo groups.
For each event: analyze with AWR / ASH andv$session_wait
/v$system_event
to find root cause and fix.