Pres4-Oracle Process Structure
Pres4-Oracle Process Structure
Introduction to Processes
– No free buffers
– Too many dirty buffers
– A three second timeout
– A checkpoint occurs
Log Writer (LGWR)
• LGWR writes the contents of the log buffer to the
online log files on disk. A write of the log buffer
to the online redo log files is often referred to as
flushing the log buffer.
• When a session makes any change (by executing
INSERT, UPDATE, or DELETE commands) to blocks
in the database buffer cache, before it applies
the change to the block it writes out the change
vector that it is about to apply to the log buffer.
Log Writer (LGWR)
– The Log Writer (LGWR) transfers all the undo/redo entries
in the log buffer to the redo log files
– When a session issues a COMMIT, the LGWR writes in real
time: the session hangs while LGWR writes
– LGWR is an ultimate bottleneck in the Oracle performance.
– There three conditions that will cause LGWR to execute
• Write on commit
• If Log buffer one-third full
• If DBWr is about to write dirty buffers
– The Archiver (ARCH) makes copies of redo log files when
they fill up
the Checkpoint Process
• after a crash, all change vectors referring to
dirty buffers must be extracted from the redo
log, and applied to the data blocks. This is the
recovery process.
• The incremental checkpoint mechanism
instructs DBWn to write out dirty buffers at a
constant rate.
MMON, the Manageability Monitor