0% found this document useful (0 votes)
36 views

Flashback Technologies

Uploaded by

bymash2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Flashback Technologies

Uploaded by

bymash2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SQL> select pdb_name, name, pdb_restore_point, clean_pdb_restore_point

2 from v$restore_point natural join dba_pdbs;

PDB_NAME NAME PDB_RESTORE_POINT CLEAN_PDB_RESTORE_POINT

----------- -------- -------------------- -----------------------

PDB1 R1 YES NO

SQL> select property_name, property_value

2 from database_properties where property_name like '%UNDO%';

PROPERTY_NAME PROPERTY_VALUE

------------------------------ --------------

LOCAL_UNDO_ENABLED FALSE

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?

Choices:

1. This cannot be done due to the lack of a clean restore point.


2. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE POINT
R1 by using SQL while connected to CDB$ROOT.
3. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE
POINT R1 by using RMAN while connected to CDB$ROOT. (Correct Answer)
4. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE POINT
R1 by using RMAN while connected to PDB1.
5. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE POINT
R1 by using SQL while connected to PDB1.

Explanation:

To recover PDB1 to Restore Point R1 given the provided conditions and query outputs, you
must consider the following factors:

1. Restore Point Availability:


o The output of the first query shows that PDB1 has a restore point R1 available
(PDB_RESTORE_POINT = YES).
o However, it is not a clean restore point (CLEAN_PDB_RESTORE_POINT = NO).
A clean restore point means the database was in a consistent state at that time,
but it is not strictly necessary for flashback operations.
2. Local Undo Configuration:
o The output of the second query shows that LOCAL_UNDO_ENABLED is set to
FALSE. This means that the PDB does not manage its own undo tablespace and
relies on the CDB's undo tablespace.
3. Using RMAN vs. SQL:
o Flashback operations in an Oracle database can be performed using either
RMAN or SQL commands.
o For pluggable databases (PDBs), it is recommended to use RMAN for more
advanced and robust recovery operations, especially when local undo is not
enabled.

Why the Correct Answer is "Execute FLASHBACK PLUGGABLE


DATABASE PDB1 TO RESTORE POINT R1 by using RMAN while
connected to CDB$ROOT":

 Connected to CDB$ROOT: Flashback operations for a PDB should be performed


while connected to the root container (CDB$ROOT) because RMAN needs to
coordinate with the root container to manage the undo and other necessary resources.
 Using RMAN: RMAN is a more powerful and reliable tool for database recovery
operations. Since the restore point is not clean, using RMAN provides better handling
of potential inconsistencies and ensures that the recovery process is smooth.

Why Other Choices are Incorrect:

1. This cannot be done due to the lack of a clean restore point:


o This is incorrect because flashback operations can still be performed without a
clean restore point. A clean restore point is not a strict requirement.
2. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE
POINT R1 by using SQL while connected to CDB$ROOT:
o While this might work, it is less reliable compared to using RMAN, especially
when LOCAL_UNDO_ENABLED is FALSE.
3. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE
POINT R1 by using RMAN while connected to PDB1:
o This is incorrect because RMAN operations for a PDB should be performed
while connected to the root container (CDB$ROOT), not directly to the PDB.
4. Execute FLASHBACK PLUGGABLE DATABASE PDB1 TO RESTORE
POINT R1 by using SQL while connected to PDB1:
o This is incorrect because the flashback operation should be managed through
the root container (CDB$ROOT) for better coordination and resource
management.

By using RMAN connected to CDB$ROOT, you ensure that the recovery process takes into
account the entire container architecture and handles undo and other resources correctly.

You might also like