nerdexam
Oracle

1Z0-062 · Question #269

In which situations does the Database Writer process (DBWn) write to data files?

The correct answer is A. when the RMAN recovery process starts C. when a tablespace is made read-only or taken offline. The Database Writer (DBWn) process writes dirty blocks from the database buffer cache to data files in specific situations to ensure data persistence and free up buffer space.

Exploring the Oracle Database Architecture

Question

In which situations does the Database Writer process (DBWn) write to data files?

Options

  • Awhen the RMAN recovery process starts
  • Bwhen a user process commits a transaction
  • Cwhen a tablespace is made read-only or taken offline
  • Dwhen PMON cleans up dirty buffers in the database buffer cache
  • Ewhen clean buffers for reading new blocks into the database buffer cache are not found easily

How the community answered

(35 responses)
  • A
    89% (31)
  • B
    3% (1)
  • D
    3% (1)
  • E
    6% (2)

Why each option

The Database Writer (DBWn) process writes dirty blocks from the database buffer cache to data files in specific situations to ensure data persistence and free up buffer space.

Awhen the RMAN recovery process startsCorrect

During RMAN recovery, especially when applying changes to data blocks in memory or writing recovered blocks, DBWn is invoked to write these blocks to the data files.

Bwhen a user process commits a transaction

When a user process commits a transaction, the LGWR (Log Writer) process primarily writes redo records to the online redo log files, not DBWn directly writing data blocks.

Cwhen a tablespace is made read-only or taken offlineCorrect

When a tablespace is taken offline or made read-only, DBWn must write all dirty blocks belonging to that tablespace to disk to ensure data consistency before the state change.

Dwhen PMON cleans up dirty buffers in the database buffer cache

PMON (Process Monitor) cleans up failed user processes and their resources, it does not clean up dirty buffers in the database buffer cache; that is DBWn's responsibility.

Ewhen clean buffers for reading new blocks into the database buffer cache are not found easily

While the inability to find clean buffers is a symptom that leads to DBWn activity, DBWn typically writes proactively based on dirty buffer thresholds or checkpoints, *before* clean buffers become truly scarce or 'not found easily' to prevent performance degradation.

Concept tested: Oracle DBWn process triggers

Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/cncpt/process-architecture.html#GUID-00A9F9E2-6C86-4AEB-8608-F437887556C7

Topics

#DBWn process#Database buffer cache#Dirty buffers#Data files

Community Discussion

No community discussion yet for this question.

Full 1Z0-062 Practice