SQL> select * from v$event_name where name like 'log file sync%';
EVENT# EVENT_ID NAME PARAMETER1 PARAMETER2 PARAMETER3 WAIT_CLASS_ID WAIT_CLASS# WAIT_CLASS
---------- -------------------- ----------------------- ----------- ----------------------------------------------------------------
115 1328744198 log file sync buffer# 3386400367 5 Commit
P1 = buffer#
P2 = 未使用
P3 = 未使用
buffer#
这个buffer编号(在日志缓冲区中)的所有改变必须刷新到磁盘,写操作的完成保证了交易COMMIT的执行,即使实例crash也会保证COMMIT。因此LGWR的等待就是刷新这个buffer#
EVENT<span style="white-space:pre"> </span> P1 P1RAW<span style="white-space:pre"> </span> P2 P2RAW<span style="white-space:pre"> </span> P3 P3RAW
---------------------------------------------------------------- ---------- -------- ---------- -------- ---------- --------
log file sync<span style="white-space:pre"> </span> 3971 00000F83<span style="white-space:pre"> </span> 0 00<span style="white-space:pre"> </span> 0 00