Common Root Causes

  • Row-by-row commits inside PL/SQL or application loops (commit-per-row antipattern).
  • Slow storage I/O latency on online redo log disks (high log file parallel write).
  • CPU starvation delaying LGWR scheduling.

Proven Tuning Fixes

  • Batch DML commits (e.g. commit every 500-2,000 rows instead of every single row).
  • Place online redo logs on lowest-latency NVMe/SSD storage separated from datafiles.
  • Compare average log file sync wait against log file parallel write to distinguish disk vs CPU issues.

Diagnostic V$ Query

SELECT event, total_waits, ROUND(average_wait * 10, 2) AS avg_ms
FROM v$system_event WHERE event IN ('log file sync', 'log file parallel write');