1Z0-062 · Question #106
Flashback is enabled for your multitenant container database (CDB), which contains two pluggable database (PDBs). A local user was accidently dropped from one of the PDBs. You want to flash back the P
The correct answer is D. 3 and 1. After a FLASHBACK DATABASE operation on a CDB, the database must be opened with RESETLOGS to establish a new redo incarnation, then PDBs must be explicitly opened to allow DML.
Question
08/20/12' , MM/DD/YY')"; Examine following commands: 1. ALTER PLUGGABLE DATABASE ALL OPEN; 2. ALTER DATABASE OPEN; 3. ALTER DATABASE OPEN RESETLOGS; Which command or commands should you execute next to allow updates to the flashback back schema?Options
- AOnly 1
- BOnly 2
- COnly 3
- D3 and 1
- E1 and 2
How the community answered
(36 responses)- A8% (3)
- B6% (2)
- C3% (1)
- D83% (30)
Why each option
After a FLASHBACK DATABASE operation on a CDB, the database must be opened with RESETLOGS to establish a new redo incarnation, then PDBs must be explicitly opened to allow DML.
ALTER PLUGGABLE DATABASE ALL OPEN alone is insufficient because the CDB itself must first be opened with RESETLOGS after a FLASHBACK DATABASE operation before PDBs can be opened.
ALTER DATABASE OPEN without the RESETLOGS clause is not valid after FLASHBACK DATABASE; Oracle requires RESETLOGS because the redo log sequence has changed.
ALTER DATABASE OPEN RESETLOGS alone opens the CDB but leaves all PDBs in MOUNTED state, preventing any user access or DML against the PDB schema.
After FLASHBACK DATABASE, ALTER DATABASE OPEN RESETLOGS (command 3) is mandatory because the operation invalidates the current redo log sequence and requires a new incarnation. In a multitenant CDB, PDBs do not automatically open when the CDB opens, so ALTER PLUGGABLE DATABASE ALL OPEN (command 1) must follow to make the flashed-back PDB accessible for updates.
Commands 1 and 2 bypass the required RESETLOGS clause; ALTER DATABASE OPEN without RESETLOGS is rejected by Oracle after a flashback, making this combination invalid.
Concept tested: Flashback Database open sequence in multitenant CDB
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.