$ rman target sys/password@PDB1
RMAN> report schema;
using target database control file instead of recovery catalog
Report of database schema for database with db_unique_name SBDB
List of Permanent Datafiles
===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
9 290 SYSTEM NO /u01/app/oracle/oradata/SBDB/pdb1/system01.dbf
10 370 SYSAUX NO /u01/app/oracle/oradata/SBDB/pdb1/sysaux01.dbf
11 100 UNDOTBS1 NO /u01/app/oracle/oradata/SBDB/pdb1/undotbs01.dbf
12 5 USERS NO /u01/app/oracle/oradata/SBDB/pdb1/users01.dbf
List of Temporary Files
=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
3 128 TEMP 32767 /u01/app/oracle/oradata/SBDB/pdb1/temp01.dbf
1.完整的CDB备份
执行以下命令进行CDB备份:
$ rman target sys/password@CDB
RMAN> BACKUP DATABASE PLUS ARCHIVELOG DELETE INPUT;
RMAN> LIST BACKUP OF DATABASE;
执行上述命令查看当前的备份集,会发现对CDB的备份会备份CDBROOT、PDBSEED、ALL PDBS。
SQL> SET LINESIZE 150
SQL> COL NAME FOR A10
SQL> SELECT CON_ID, DBID, GUID, NAME FROM v$pdbs;
CON_ID DBID GUID NAME
---------- ---------- ------------------------------ ------------
2 943290432 B5A0DD07BB5F6DFBE0536D1410AC6EEB PDB$SEED
3 1666453508 B5A10FCFB4980964E0536D1410AC7D46 PDB1
在上面的例子中,该PDB的GUID为“B5A10FCFB4980964E0536D1410AC7D46”