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

Oracle 12c Container and Pluggable Database Backup and Restore

The document discusses new enhancements to Oracle's BACKUP, RESTORE, and RECOVERY commands introduced with pluggable databases in Oracle 12c. It provides examples of using RMAN to backup an entire container database (CDB) including all pluggable databases (PDBs), backup individual PDBs, or backup specific tablespaces within a PDB. Examples are also given for restoring the entire CDB, individual PDBs, or tablespaces. Finally, examples demonstrate recovering the entire database or individual PDBs.

Uploaded by

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

Oracle 12c Container and Pluggable Database Backup and Restore

The document discusses new enhancements to Oracle's BACKUP, RESTORE, and RECOVERY commands introduced with pluggable databases in Oracle 12c. It provides examples of using RMAN to backup an entire container database (CDB) including all pluggable databases (PDBs), backup individual PDBs, or backup specific tablespaces within a PDB. Examples are also given for restoring the entire CDB, individual PDBs, or tablespaces. Finally, examples demonstrate recovering the entire database or individual PDBs.

Uploaded by

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

Container and Pluggable Database Backup and

Restore
The introduction of this new concept also forced Oracle to introduce some new
enhancements to the already existent BACKUP, RESTORE, and RECOVERY
commands to enable us to be able to make an efficient backup or restore of the complete
CDB. This includes all PDBs or just one of more PDBs, or if you want to be more
specific, you can also just backup or restore one or more tablespaces from a PDB.
Some examples of how to use the RMAN commands when performing a backup on
Oracle 12c are:
RMAN> BACKUP DATABASE; (To backup the CBD + all PDBs)
RMAN> BACKUP DATABASE root; (To backup only the CBD)
RMAN> BACKUP PLUGGABLE DATABASE pdb1,pdb2; (To backup all specified
PDBs)
RMAN> BACKUP TABLESPACE pdb1:example; (To backup a specific tablespace
in a PDB)

Some examples when performing RESTORE operations are:


RMAN> RESTORE DATABASE; (To restore an entire CDB, including all PDBs)
RMAN> RESTORE DATABASE root; (To restore only the root container)
RMAN> RESTORE PLUGGABLE DATABASE pdb1; (To restore a specific PDB)
RMAN> RESTORE TABLESPACE pdb1:example; (To restore a tablespace in a
PDB)

Finally, some example of RECOVERY operations are:


RMAN> RECOVER DATABASE; (Root plus all PDBs)
RMAN> RUN {
SET UNTIL SCN 1428;
RESTORE DATABASE;
RECOVER DATABASE;
ALTER DATABASE OPEN RESETLOGS;
}
RMAN> RUN {
RESTORE PLUGGABLE DATABASE pdb1 TO RESTORE POINT one;
RECOVER PLUGGABLE DATABASE pdb1 TO RESTORE POINT one;
ALTER PLUGGABLE DATABASE pdb1 OPEN RESETLOGS;
}

You might also like