We are just getting into multi-tenant and have a question about RMAN duplicate. We would clone using a backupset of the CDB so no active duplicate.
If I have source:
CDB1
PDB1_PROD
If I want target
CDB2
PDB1_TEST
What duplicate command do I run to duplicate CDB1 to CDB2 while renaming the PDB? We use an RMAN catalog so thinking of connecting to CDB2 and the RMAN catalog and running:
duplicate database CDB1 to CDB2
However, won't that create PDB1_PROD inside of CDB2