nerdexam
Oracle

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.

Exploring the Oracle Database Architecture

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)
  • A
    71% (30)
  • B
    2% (1)
  • C
    7% (3)
  • E
    2% (1)
  • F
    17% (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.

AThe modified blocks would be written to the data files.Correct

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.

BThe modified blocks would be written to the temp files.

Temp files store temporary segment data used for sort and hash operations; checkpoint writes target data files, not temp files.

CThe modified blocks would be written to the control file.

The control file records structural metadata such as checkpoint SCN and datafile status; modified data blocks are never written to the control file.

DThe modified blocks would be written to the redo log files.

Redo log files capture change vectors written by the Log Writer (LGWR) process continuously; CKPT does not write data blocks to redo logs.

EThe modified blocks would be written to the archived redo log files.

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.

FThe modified blocks would be retained in the database buffer cache.

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

#CKPT process#DBWn#checkpoint#database buffer cache

Community Discussion

No community discussion yet for this question.

Full 1Z0-052 Practice