1Z0-062 · Question #113
You want to flash back a test database by five hours. You issue this command: SQL > FLASHBACK DATABASE TO TIMESTAMP (SYSDATE - 5/24); Which two statements are true about this flashback scenario?
The correct answer is B. The database must be MOUNTED for the flashback to succeed. E. The database must be opened with the RESETLOGS option after the flashback is complete.. FLASHBACK DATABASE requires the database to be in MOUNT state and must be followed by opening with the RESETLOGS option to start a new redo log incarnation.
Question
You want to flash back a test database by five hours. You issue this command:
SQL > FLASHBACK DATABASE TO TIMESTAMP (SYSDATE - 5/24); Which two statements are true about this flashback scenario?
Options
- AThe database must have multiplexed redo logs for the flashback to succeed.
- BThe database must be MOUNTED for the flashback to succeed.
- CThe database must use block change tracking for the flashback to succeed.
- DThe database must be opened in restricted mode for the flashback to succeed.
- EThe database must be opened with the RESETLOGS option after the flashback is complete.
- FThe database must be opened in read-only mode to check if the database has been flashed back
How the community answered
(41 responses)- A2% (1)
- B93% (38)
- D5% (2)
Why each option
FLASHBACK DATABASE requires the database to be in MOUNT state and must be followed by opening with the RESETLOGS option to start a new redo log incarnation.
Multiplexed redo logs improve recoverability but are not a prerequisite for FLASHBACK DATABASE, which relies on flashback logs written to the fast recovery area and undo data rather than the online redo logs.
FLASHBACK DATABASE can only execute when the database is in MOUNT state, not open, because the operation rewrites datafile headers and applies flashback logs to restore blocks to a prior point in time, which is not safe on an open database.
Block change tracking records changed block addresses to speed up RMAN incremental backups and has no role in the Flashback Database mechanism.
Restricted mode is not required for a flashback operation; after FLASHBACK DATABASE the correct step is to open with RESETLOGS, optionally in read-only mode first to verify results.
After FLASHBACK DATABASE completes, ALTER DATABASE OPEN RESETLOGS is mandatory to reset the online redo log sequence and register a new database incarnation; opening without RESETLOGS is rejected by Oracle.
Opening in read-only mode is an optional verification step, not a requirement; the standard and complete procedure is to open with RESETLOGS after flashback.
Concept tested: FLASHBACK DATABASE prerequisites and post-flashback open requirements
Source: https://docs.oracle.com/en/database/oracle/oracle-database/19/bradv/using-flashing-back-database.html
Topics
Community Discussion
No community discussion yet for this question.