Note:

Restore dropped multitenant PDB using auxiliary instance on the same DBCS server

Introduction

In a multitenant container database (CDB), the metadata for data dictionary tables and view definitions is stored only in the root. However, each pluggable database (PDB) has its own set of data dictionary tables and views for the database objects contained in the PDB.

So, a pluggable database (PDB) cannot be restored as a database. It must be restored as database object using an auxiliary instance. If a pluggable database (PDB)/datafiles are accidentally deleted, corrupted, and so on, the repository/metadata for the PDB still exists and it can be restored and recovered

If a PDB is accidentally/intentionally dropped using the DROP PLUGGABLE DATABASE <PDBNAME> command, this will drop the PDB and remove the metadata from repository. Therefore, a restore of the PDB (including PDB PITR to before the dropped time) will fail with an error such as RMAN-06813: could not translate pluggable database PDBxx.

Architecture

Source and Aux PDB

Objectives

Restore and recover a PDB which was dropped including the datafiles. Since it cannot be restored in the same CDB, we will a create an auxiliary instance and restore the PDB in auxiliary CDB on same instance and also in the source.

Prerequisites

Task 1: Create a new pluggable database

Task 2: Back up the Container Database (CDB)

Task 3: Drop the pluggable database created in Task 1

Task 4: Restore the dropped pluggable database in same source database

Task 5: Create a temporary auxiliary instance

Task 6: Start the auxiliary instance in nomount state

Task 7: Restore controlfile from backup in the IdP instance and mount the database

Task 8: Restore and recover the dropped PDB database in auxiliary instance

Task 9: Add and drop the online redo log file in source database

Task 10: Open database in resetlogs in auxiliary instance

Task 11: Alter the pluggable database in auxiliary instance

Task 13: Clone the pluggable database PDB03 in source

Acknowledgments

More Learning Resources

Explore other labs on docs.oracle.com/learn or access more free learning content on the Oracle Learning YouTube channel. Additionally, visit education.oracle.com/learning-explorer to become an Oracle Learning Explorer.

For product documentation, visit Oracle Help Center.