Log File Sync Analysis (health4.sql)
What This Script Does
Section titled “What This Script Does”Specialized health check that focuses on ‘log file sync’ wait events, which are critical for understanding commit performance and redo log I/O efficiency.
The Script
Section titled “The Script”rem health4.sqlremttitle 'Log File Sync Analysis'remset pause offset pagesize 200set time onremALTER SESSION SET NLS_DATE_FORMAT = 'MON-DD-YYYY HH24:MI'ALTER SESSION SET NLS_timestamp_FORMAT = 'MON-DD-YYYY HH24:MI'remcolumn v_logname print new_value v_logname format a50remselect 'logfilesync_' || name || '_' || substr(to_char(sysdate,'yyyy-MON-dd hh24:mi:ss'),6,3) || '-' || substr(to_char(sysdate,'yyyy-MON-dd hh24:mi:ss'),10,2) || '-' || substr(to_char(sysdate,'yyyy-MON-dd hh24:mi:ss'),1,4) || '-' || substr(to_char(sysdate,'yyyy-MON-dd hh24:mi:ss'),13,2) || '-' || substr(to_char(sysdate,'yyyy-MON-dd hh24:mi:ss'),16,2) || '.txt' v_logname from v$database/remspool &v_lognameremdefine start_dt=''define end_dt=''define instno=''define nam='log file sync%%'remrem -- @dhsysev (System event analysis script)remspool off/
Focus Areas
Section titled “Focus Areas”- Log file sync wait analysis
- Commit performance monitoring
- Redo log I/O efficiency
- Transaction throughput assessment