How is a checkpoint related to the cache recovery phase of a recovery process?

Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.

How is a checkpoint related to the cache recovery phase of a recovery process?

Rating:

At certain time intervals, the database writer (DBWn) writes all modified (dirty) buffers from the database buffer cache to the data files on disk. This event is called a checkpoint. Whenever a checkpoint occurs, the checkpoint process (CKPT) updates the headers of data files and control files with the highest system change number (SCN) to indicate the most recent checkpoint. All data blocks containing changes at SCNs less than or equal to the SCN defined by the most recent checkpoint are considered to be written to the data files. Before dirty buffers are written to data files, the corresponding redo entries generated in the redo log buffer are written to online redo log files. In this way, Oracle guarantees that all redo blocks containing changes at SCNs less than or equal to the SCN defined by the most recent checkpoint are written to the data files on disk. Therefore, in case of an instance failure, only redo blocks containing changes at SCNs higher than the SCN defined by the most recent checkpoint need to be applied during the cache recovery phase of the instance recovery.

The duration of cache recovery (roll forward) phase of an instance recovery is determined by the number of data blocks containing changes at SCNs higher than the SCN defined by the most recent checkpoint and number of redo blocks that need to be read to find those changes.

If checkpoints occur frequently, dirty buffers from the database buffer cache are written to data files more often. This reduces the cache recovery time in the event of an instance failure. This is because if checkpoints occur frequently, the number of data blocks containing changes at SCNs higher than the SCN defined by the most recent checkpoint is low. Therefore, the number of redo blocks to be applied during the instance recovery is low.

However, frequent checkpoints can reduce run-time performance, as they cause the database writer process (DBWn) to write dirty buffers from the database buffer cache to the data files on disk more often.


Rating:



Other articles

Click here to Article home

MCSE: MCSA, MCTS, MCITP    JAVA Certification: SCJP, SCWCD Cisco Certification: CCNA, CCENT, A+, Network+, Security+

Oracle Certification: OCP 9i, OCP 10g, OCA 9i, OCA 10g, 1Z0-040: Upgrade to OCA 10g Fundamentals I, Oracle Fundamentals II, Admin I, Oracle Admin II, PL/SQL CIW foundation    Photoshop ACE
© 2008 uCertify.com. All rights reserved. All trademarks are the property of their respective owners.
 
HACKER SAFE certified sites prevent over 99.9% of hacker crime.