Provisioning a Pluggable Database

You can provision a Pluggable Database (PDB) on an existing Container Database (CDB) running in a provisioned database working copy.

After you create a working copy of a gold image, provision that working copy to an Oracle FPP Client or rhpclient-less target, and create a database as a multitenant CDB, you can add a PDB to the CDB using the rhpctl addpdb database command.
  • The following command example creates a PDB called pdb23ai on a CDB called raccdb23ai, which is on a working copy called wc_db23ai:
    $ rhpctl addpdb database -workingcopy wc_db23ai -cdbname raccdb23ai -pdbName pdb23ai
  • Use the rhpctl deletepdb database command to delete a PDB from an existing CDB on a working copy.
    The following command example deletes a PDB called pdb23ai on a CDB called raccdb23ai, which is on a working copy called wc_db23ai:
    $ rhpctl deletepdb database -workingcopy wc_db23ai -cdbname raccdb23ai -pdbName pdb23ai