RMAN backup of a PDB in Oracle 12c Multitenant Database can be performed from the Recovery Manager utility or EM Cloud Control. This procedure shows the steps of performing a PDB backup from RMAN utility.
- Logon to your oracle database server as the oracle software owner.
[root@linux2 larry]# su – oracle
Last login: Thu Jan 3 11:02:25 EDT 2016 on pts/1
[oracle@linux2 ~]$
- Enter the RMAN utility.
[oracle@linux2 ~]$ rman
Recovery Manager: Release 12.1.0.2.0 – Production on Tue Jan 15 12:26:22 2016
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
RMAN>
- You can now either connect to the CDB and issue BACKUP PLUGGABLE DATABASE command or connect directly to PDB and use BACKUP DATABASE
- Connect to your target CDB database with SYSBACKUP privilege.
RMAN> connect target ‘”sys/@cdb1 as sysbackup”‘
target database Password:
connected to target database: CDB1 (DBID=898165058)
RMAN>
- From the CDB issue BACKUP PLUGGABLE DATABASE
- Single PDB backup
RMAN> BACKUP PLUGGABLE DATABASE PDB1;
- Or multiple PDB backup
RMAN> BACKUP PLUGGABLE DATABASE PDB1, PDB2;
- Additionally you can connect directly to the PDB. To do this you must connect as a common user with sysdba or sysbackup privilege, in this example we are using C##DBA.
RMAN> connect target ‘”c##dba/@pdb1 as sysdba”‘
target database Password:
connected to target database: CDB1 (DBID=898165058)
RMAN> backup database;
- This completes backup of PDBs in the Oracle 12c Multitenant Database.
Larry Catt
OCP