LGWR,Log Switches, and Checkpoints
Redo Log Buffer and the LGWR Background Process
The oracle server sequentially records all changes made to the database in the redo log buffer.The redo log buffer is used in a circular manner.The redo entries are written to one of the online redo log groups called the current online redo log group by the LGWR process under the following situations:
1. When a transaction commits
2. When the redo log buffer becomes one-third full
3. When there is more than a megabyte of changed records in the redo log buffer.
4. When timeout occurs(every 3 seconds)
5. Before the DBWn writes modified blocks in the database buffer cache to the data files.
Log Switches
LGWR writes to the online redo log files sequentially - that is , when the current online redo log group is filled , LGWR begins writing to the next group ,when the last available online redo log file is filled, LGWR returns to the first online redo log group and starts writing again .
The database administrator can also force log switches.Each time a log switch occurs and LGWR begins writing to a new log group, the oracle server assigns a number known as the log sequence number to identify the set of redo entries.
When a log switch occurs, and event called a checkpoint is initiated.
A log switch is the event during which LGWR stops writing to one online redo log group and starts writing to another.
During a checkpoints:
1. A number of dirty database buffers covered by the log being checkpointed are written to the data files by DBWn . The number of buffers being written by DBWn is determined by the parameter FAST_START_IO_TARGET , if specifed.
2.The checkpoint background process CKPT updates the headers of all data files and control files to reflect that it has completed successfully.
Checkpoints can occur for all data files in the database or for only specific data files.
A checkpoint occurs , for example, in the following situations:
1.At every log switch
2.when an instance has been shut down with the normal ,transactional,or immediate option
3.When forced by setting the initialization parameters: LOG_CHECKPOINT_INTERVAL,LOG_CHECKPOINT_TIMEOUT,and FAST_START_IO_TARGET
4.When manually requested by the database administrator
Information about each checkpoint is recorded in the ALERT file if the initialization parameter LOG_CHECKPOINT_TO_ALERT is set to TURE. The default value of FALSE for this parameter does not log checkpoint.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-84450/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Forcing Log Switches
- LGWR writes redo log (117)
- Log Writer Process (LGWR) (115)
- Overview of Database CheckpointsViewDatabase
- 1453D - Checkpoints3D
- 收藏What’s the Point of Oracle Checkpoints?Oracle
- Oracle LGWR程式Oracle
- 【Oracle】-【體系結構-LGWR】-LGWR的一些理解Oracle
- DBWn,CKPT,LGWR程式
- xtrabackup: Error: cannot open /../../base/xtrabackup_checkpointsError
- LGWR group commits(原)MIT
- Codeforces Round #688(Div 2) D. Checkpoints
- 驗證DG最大效能模式下使用ARCH/LGWR及STANDBY LOG的不同情況模式
- CF1993C Light Switches 題解
- 12C開始oracle實現了SCALABLE LGWR多程式並行寫redo logOracle並行
- Oracle 的Lgwr Worker的工作原理Oracle
- LGWR DBWR SMON 等程式說明
- Oracle DBWR,LGWR,CKPT,ARCH 觸發條件Oracle
- Oracle9i LGWR 觸發條件Oracle
- DBWR,LGWR,CKPT,ARCH觸發條件總結
- CKPT、DBWn、LGWR與3S的關係
- Oracle DBWR,LGWR,CKPT,ARCH 觸發條件 總結Oracle
- PMON、SMON、DBWn、LGWR、CKPT、ARCH等後臺程式說明
- oracle 的伺服器程式(PMON, SMON,CKPT,DBWn,LGWR,ARCn)Oracle伺服器
- ORA-16198: LGWR received timedout error from KSRError
- 觸發LGWR程式寫日誌的4個條件
- LGWR寫操作會導致效能全域性卡頓案例分析
- 【每日一MOS】- LGWR的trace日誌中出現Warning資訊
- oracle實驗記錄(buffer_cache分析(4)dbwr,lgwr,ckpt)Oracle
- LGWR (ospid: 29534): terminating the instance due to error 4021Error
- 資料庫Standby中的幾個概念 - LGWR, ARCH,ASYNC,SYNC,AFFIRM資料庫
- DBWR,LGWR,CKPT,ARCH等常見後臺程式觸發條件彙總
- 最大效能保護,最大資料保護,最大可用性,LGWR, ARCH大資料
- LGWR SYNC AFFIRM也不能保證日誌一定寫到備機
- 以Lgwr Worker為例,基於Strace 分析 Oracle 資料庫行為的方法Oracle資料庫
- LGWR和ARCH下密碼檔案不一致對FAL的影響密碼
- HyperLogLog
- 【筆記】[lz042.10g.Administrator.I.SG] DBWn、LGWR什麼時候寫?筆記