1Z0-062 · Question #328
When does a database checkpoint occur?
The correct answer is A. When there is an online redo log switch. A database checkpoint is a critical event that ensures data consistency and enables recovery, commonly triggered by an online redo log switch. It involves writing modified data blocks to data files and updating control file and data file headers.
Question
When does a database checkpoint occur?
Options
- AWhen there is an online redo log switch.
- BWhen a user session terminates abnormally.
- CWhen a server process terminates abnormally.
- DWhen the SHUTDOWN ABORT command is issued.
How the community answered
(42 responses)- A88% (37)
- B2% (1)
- C2% (1)
- D7% (3)
Why each option
A database checkpoint is a critical event that ensures data consistency and enables recovery, commonly triggered by an online redo log switch. It involves writing modified data blocks to data files and updating control file and data file headers.
When an online redo log group becomes full, the database switches to the next available group, which typically initiates a checkpoint. This process ensures that all modified data blocks associated with the log group being switched out are written from the database buffer cache to the data files on disk, synchronizing the control file and data file headers with the latest changes.
Abnormal termination of a user session triggers a rollback of uncommitted transactions for that specific session, not a database-wide checkpoint.
Abnormal termination of a server process might lead to process recovery but does not directly cause a database checkpoint.
Issuing the SHUTDOWN ABORT command immediately terminates the database instance without performing a checkpoint or a clean shutdown, necessitating instance recovery upon the next startup.
Concept tested: Oracle database checkpoint triggers
Source: https://docs.oracle.com/en/database/oracle/oracle-database/23/admin/checkpoints.html
Topics
Community Discussion
No community discussion yet for this question.