dbaascli pdb local_clone

The pdb local_clone subcommand of the dbaascli utility creates a new pluggable database (PDB) as a clone of an existing PDB in the same container database (CDB).

Connect to a compute node as the oracle user and execute this command.

$ dbaascli pdb local_clone --pdbname sourcepdbname --target_pdbname targetpdbname --dbname dbname

In the above command:

  • sourcepdbname — specifies the name of the PDB that you want to clone.

  • targetpdbname — specifies the name of the new PDB that you want to create.

  • dbname — specifies the name of the CDB that hosts the PDBs.

The newly cloned PDB inherits administration passwords from the source PDB.

This command is supported only for databases that are not in a Data Guard configuration and use Oracle Database version 12.2.0.1, or later.