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:

If I want target

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