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.
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)- A89% (31)
- B3% (1)
- D3% (1)
- E6% (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.
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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.