Oracle Checkpoint
Overview of Checkpoints
A is a crucial mechanism in consistent database shutdowns, instance recovery, and Oracle Database operation generally. The term checkpoint has the following related meanings:
-
A data structure that indicates the checkpoint position, which is the in the redo stream where instance recovery must begin
The checkpoint position is determined by the oldest dirty buffer in the database buffer cache. The checkpoint position acts as a pointer to the redo stream and is stored in the control file and in each data file header.
-
The writing of modified database buffers in the to disk
Purpose of Checkpoints
Oracle Database uses checkpoints to achieve the following goals:
-
Reduce the time required for recovery in case of an instance or media failure
-
Ensure that dirty buffers in the buffer cache are written to disk regularly
-
Ensure that all committed data is written to disk during a consistent shutdown
When Oracle Database Initiates Checkpoints
The checkpoint process (CKPT) is responsible for writing checkpoints to the data file headers and control file. Checkpoints occur in a variety of situations. For example, Oracle Database uses the following types of checkpoints:
-
Thread checkpoints
The database writes to disk all buffers modified by redo in a specific thread before a certain target. The set of thread checkpoints on all instances in a database is a database checkpoint. Thread checkpoints occur in the following situations:
-
Consistent database shutdown
-
ALTER SYSTEM CHECKPOINT statement
-
Online redo log switch
-
ALTER DATABASE BEGIN BACKUP statement
-
-
Tablespace and data file checkpoints
The database writes to disk all buffers modified by redo before a specific target. A tablespace checkpoint is a set of data file checkpoints, one for each data file in the tablespace. These checkpoints occur in a variety of situations, including making a tablespace read-only or taking it offline normal, shrinking a data file, or executing ALTER TABLESPACE BEGIN BACKUP.
-
Incremental checkpoints
An incremental checkpoint is a type of thread checkpoint partly intended to avoid writing large numbers of blocks at online redo log switches. DBWn checks at least every three seconds to determine whether it has work to do. When DBWn writes dirty buffers, it advances the checkpoint position, causing CKPT to write the checkpoint position to the control file, but not to the data file headers.
Other types of checkpoints include instance and media recovery checkpoints and checkpoints when schema objects are dropped or truncated.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29119536/viewspace-1485263/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【TUNE_ORACLE】Oracle檢查點(一)檢查點(Checkpoint)概念介紹Oracle
- 【CHECKPOINT】Oracle檢查點優化與故障處理Oracle優化
- ORACLE資料庫檢視ACQ(ACTIVE CHECKPOINT QUEUE)資訊Oracle資料庫
- mysql checkpointMySql
- 【ASK_ORACLE】檢查點錯誤“Cannot allocate new log”和“Checkpoint not complete”Oracle
- Oracle 18C,19C standby CHECKPOINT_CHANGE# 不更新問題Oracle
- Postgresql 的CheckpointSQL
- PostgreSQL備機checkpointSQL
- checkpoint詳解(zt)
- PostgreSQL xlog格式之checkpointSQL
- checkpoint是什麼(zt)
- InnoDB: No valid checkpoint found.
- Flink - Checkpoint配置注意點
- PG:checkpoint是什麼
- PostgreSQL DBA(168) - pgAdmin(config:checkpoint)SQL
- HDFS 重要機制之 checkpoint
- MySQL checkpoint執行時機MySql
- alter table drop unused columns checkpoint
- Flink Checkpoint 引數詳解
- PostgreSQL-PG程式之checkpoint(四)SQL
- 基於 Log 的通用增量 Checkpoint
- MySQL中的redo log和checkpointMySql
- MySQL筆記之Checkpoint機制MySql筆記
- postgresql 檢查點調整 checkpoint 轉SQL
- TensorFlow——Checkpoint為模型新增檢查點模型
- 關於log file switch and checkpoint機制
- PDF Checkpoint for mac(PDF批次處理工具)Mac
- checkpoint防火牆測試授權申請防火牆
- 【PG】PostgreSQL 預寫日誌(WAL)、checkpoint、LSNSQL
- Checkpoint log:invalid bitmap page錯誤修復
- PDF Checkpoint for mac(pdf批量處理軟體)Mac
- Flink Checkpoint超時問題常見排查思路
- AntDB設計之CheckPoint——引言與功能簡述
- PostgreSQL DBA(66) - 配置引數(checkpoint_flush_after)SQL
- PostgreSQL DBA(64) - checkpoint_completion_target引數解析SQL
- 增量式Checkpoint實驗(碰到bug沒有搞定)
- Flink 非對齊Unaligned的checkpoint(原始碼分析)原始碼
- [20210527]enq KO - fast object checkpoint Final Blocker.txtENQASTObjectBloC
- 【體系結構】SCN與checkpoint(檢查點)