Duplicating a PDB into Another CDB
In Oracle Database 12c , it is possible to use the DUPLICATE command at the PDB level. However, there is a limitation: a new CDB must also be created as part of the duplication process. Otherwise, the operation fails with an error. [oracle @cdb2 ~] $ rman target sys/sys @cdb1 auxiliary sys/sys @cdb2 connected to target database: cdb1 ( DBID = 4178530773 ) connected to auxiliary database: cdb2 ( DBID = 839691519 ) RMAN > DUPLICATE DATABASE TO CDB2 PLUGGABLE DATABASE pdb12c; RMAN - 05500 : the auxiliary database must be not mounted when issuing a DUPLICATE command Starting with Oracle Database 18c , a PDB can be duplicated into an existing CDB . This is a new capability in Oracle Database 18c. The following example demonstrates how to perform this operation. In this example, the PDB18C PDB in CDB1 is duplicated into CDB2. During the duplication process, changes may occur in the source PDB ( CDB1 ). At the end of the duplication, these changes are applied to the tar...