Q128. Examine these queries and their output:
An online RMAN backup of the CDB was taken an hour before Restore Point R1 was created. You want to recover PDB1 to Restore Point R1. How do you achieve this?
- A. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE POINT R1 by using RMAN while connected to PDB1.
- B. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE POINT R1 by using SQL while connected to PDB1.
- C. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE POINT R1 by using SQL while connected to CDB$ROOT.
- D. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE POINT R1 by using RMAN while connected to CDB$ROOT.
- E. This cannot be done due to the lack of a clean restore point.
Answer: D
Without a clean restore point, the SQL option is unavailable.
RMAN offers the ability to flashback a PDB to a specific restore point directly. In this case, you can:
Connect to CDB$ROOT with RMAN.
Ensure the R1 restore point exists in the RMAN repository.
Execute the command FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE POINT R1.