Databases Reference
In-Depth Information
You may optionally connect to a recovery catalog as well. Use the syntax described in Chapter 6 for that purpose.
Issue the following RMAN command to back up the database:
RMAN> backup database;
If you want to back up the archived logs as well, issue the following variation on the command:
RMAN> backup database plus archivelog;
How It Works
As the Solution section shows, you back up a container database the same way you would a normal database. You can
also implement an incremental backup strategy for a container database, the same as you do for your other databases.
When you back up a whole CDB, you're backing up the root of the CDB and all the PDBs that are part of the CDB. You
can use this whole backup of the CDB to recover the whole CDB, or to recover one or more PDBs.
Although the backup of the root and all the PDBs in a container database amounts to backing up the entire CDB,
the approach you choose makes a difference when you need to recover the CDB. Using the method in this recepe
allows you to recover the container database using fewer commands than if you had backed up all the various parts
separately.
Backing up the entire container database isn't your only alternative. As the following recipes show you, you can
also back up individual pluggable databases (PDBs), or even individual tablespaces and data files that are part of a
pluggable database.
Backing Up the Root in a Container Database
Problem
You want to back up only the root of a container database.
Solution
Follow these steps to back up the root of a container database.
1.
Connect to the root as a user with the SYSBACKUP or SYSDBA privilege:
$ rman target sys
target database Password:
connected to target database: CDB (DBID=659628168)
2.
Issue the following command to start the backup of the root:
RMAN> backup database root;
How It Works
RMAN gives you the option to back up the entire CDB or just the root, or the PDBs that are part of a CDB. The root of
a container database contains critical metadata for the whole CDB. Therefore, Oracle recommends that you frequently
back up the root, if you can't back up the whole CDB.
 
Search WWH ::




Custom Search