All technological notes.
redo log buffer
redo record
Database recovery applies redo entries to data files to reconstruct lost changes.
The database processes copy redo entries from the user memory space to the `redo log buffer` in the SGA.
redo entries take up continuous, sequential space in the buffer.The background process log writer process (LGWR) writes the redo log buffer to the active online redo log group on disk.
| Process | From | To |
|---|---|---|
| DB Process | user memory space | redo log buffer |
| LGWR | redo log buffer |
onlinve redo log group |

DBW vs LGWR对比
DBW performs scattered writes of data blocks to disk.LGWR writes redo sequentially to diskScattered writes tend to be much slower than sequential writes.
parameter LOG_BUFFER:
redo log buffer and fixed SGA buffer do not divide memory into granules.SHOW PARAMETER LOG_BUFFER;
