1Z0-052 · Question #256
In the instance of the PROD database, the checkpoint (CKPT) process runs after every minute. A database user updates the rows of the ORDERS table. Because of the configuration, the CKPT process gets…
The correct answer is A. The modified blocks would be written to the data files. The Oracle checkpoint process (CKPT) signals DBWn to write all dirty buffer cache blocks to data files, even if the modifying transactions are uncommitted.
Question
In the instance of the PROD database, the checkpoint (CKPT) process runs after every minute. A database user updates the rows of the ORDERS table. Because of the configuration, the CKPT process gets initiated before the user commits the transaction. What would happen to the modified blocks when the CKPT process is started?
Options
- AThe modified blocks would be written to the data files.
- BThe modified blocks would be written to the temp files.
- CThe modified blocks would be written to the control file.
- DThe modified blocks would be written to the redo log files.
- EThe modified blocks would be written to the archived redo log files.
- FThe modified blocks would be retained in the database buffer cache.
How the community answered
(42 responses)- A71% (30)
- B2% (1)
- C7% (3)
- E2% (1)
- F17% (7)
Why each option
The Oracle checkpoint process (CKPT) signals DBWn to write all dirty buffer cache blocks to data files, even if the modifying transactions are uncommitted.
When a checkpoint fires, CKPT instructs the Database Writer process (DBWn) to flush dirty blocks - including those modified by uncommitted transactions - from the buffer cache to their corresponding data files. Consistency is preserved because the redo log captures the change vectors needed to redo committed work, and undo segments contain the before-images needed to roll back uncommitted changes after instance recovery.
Temp files store temporary segment data used for sort and hash operations; checkpoint writes target data files, not temp files.
The control file records structural metadata such as checkpoint SCN and datafile status; modified data blocks are never written to the control file.
Redo log files capture change vectors written by the Log Writer (LGWR) process continuously; CKPT does not write data blocks to redo logs.
Archived redo logs are offline copies of filled online redo log groups used for media recovery; checkpoint activity does not direct data blocks to them.
Before a checkpoint the dirty blocks reside in the buffer cache, but the checkpoint specifically exists to trigger DBWn to write them to disk - they are not simply retained after CKPT fires.
Concept tested: Oracle CKPT process triggering DBWn to write dirty blocks
Source: https://docs.oracle.com/cd/B19306_01/server.102/b14220/process.htm
Topics
Community Discussion
No community discussion yet for this question.