Instance Architecture   «Prev  Next»

Lesson 17 The Checkpoint Process (CKPT)
Objective Explain the function of the Checkpoint process.

Checkpoint Process (CKPT) in Oracle

The Checkpoint process (CKPT) is a critical Oracle background process that ensures database consistency by coordinating the writing of modified data to disk. A checkpoint is a point in time when Oracle ensures that all changes up to a specific redo log entry are written to the database datafiles by the Database Writer (DBWR) process. The CKPT process records this checkpoint in the control file and updates the headers of all datafiles. Checkpoints are triggered by events such as log switches, database shutdowns, or specific administrative commands, rather than a fixed time interval. The following series of images illustrates the checkpoint process:


1) As changes are made to the database, they are quickly recorded in the redo log
1) As changes are made to the database, they are quickly recorded in the redo log, but are not immediately written to the datafiles.
2) We have three redo log entries. They are all shown in blue, because DBWR has not yet written any of the changes to the datafiles.
2) We have three redo log entries. They are all shown in blue, because DBWR has not yet written any of the changes to the datafiles.

3) The database writer will write out some changes. Here, the changes for entries 1 and 2 have been written to the datafiles.
3) The database writer will write out some changes. Here, the changes for entries 1 and 2 have been written to the datafiles.
4) A checkpoint is recorded, marking redo log entry 3, because all prior changes have been written.
4) A checkpoint is recorded, marking redo log entry 3, because all prior changes have been written.

5) This process continues. More redo records are written.
5) This process continues. More redo records are written.
6) More changes are written to the datafiles.
6) More changes are written to the datafiles.

7) The Checkpoint is advanced
7) The checkpoint is advanced.

Checkpoint Concepts

  1. The checkpoint and data recovery: The checkpoint is critical for database recovery. It identifies the first redo log entry that Oracle will need to process in a recovery situation, as all changes related to previous redo log entries have been written to the datafiles on disk.
  2. Checkpoint Process (CKPT): During a checkpoint, the CKPT process updates the headers of all datafiles and the control file to record the checkpoint details. The CKPT process does not write data blocks to disk; this is handled by the DBWR process. The statistic DBWR checkpoints in Enterprise Manager indicates the number of checkpoint requests completed.

SEMrush Software