18C中, rman可以很简单的把CDB中PDB复制到另外一个CDB,仅用一条命令
RMAN> connect target *
connected to target database: CDB181 (DBID=3282107738)
RMAN> connect auxiliary *
connected to auxiliary database: ORCLCDB (DBID=2735672192)
RMAN> DUPLICATE PLUGGABLE DATABASE SALESPDB TO orclCDB
DB_FILE_NAME_CONVERT(‘/home/oracle/18.1/oradata/CDB181/‘, /home/oracle/18.1/base/oradata/ORCLCDB/SALESPDB‘)
FROM ACTIVE DATABASE;