Log Writer Process (LGWR) (115)

The log writer process (LGWR) is responsible for redo log buffer
management—writing the redo log buffer to a redo log file on disk. LGWR writes all
redo entries that have been copied into the buffer since the last time it wrote.
The redo log buffer is a circular buffer. When LGWR writes redo entries from the redo
log buffer to a redo log file, server processes can then copy new entries over the entries
in the redo log buffer that have been written to disk. LGWR normally writes fast
enough to ensure that space is always available in the buffer for new entries, even
when access to the redo log is heavy.
LGWR writes one contiguous portion of the buffer to disk. LGWR writes:
■ A commit record when a user process commits a transaction
■ Redo log buffers
– Every three seconds
– When the redo log buffer is one-third full
– When a DBWn process writes modified buffers to disk, if necessary

日志写进程
1. 将重做日志缓冲区的数据写入重做日志
2. 以下情况下 , LGWR开始写:
当用户提交事务 , 每三秒 , 重做日志缓存区1/3满 , 还有可能DBWn写脏modified buffers to disk

[@more@]
请使用浏览器的分享功能分享到微信等