In this use case, a PDB is unplugged using Oracle DB Operator On-Prem controller.
To unplug a PDB CRD Resource, a sample .yaml file is available here: config/samples/onpremdb/pdb_unplug.yaml
NOTE: It is assumed that before this step, you have followed the prerequisite steps.
This example uses unplug_pdb.yaml
to unplug a PDB from a target CDB using Oracle DB Operator On-Prem Controller with:
- Pluggable Database CRD Resource Name as
pdb1
- Pluggable Database (PDB) Name as
pdbnew
- Target CDB CRD Resource Name as
cdb-dev
- CDB Name as
goldcdb
- Action to be taken on the PDB as
Unplug
- XML metadata filename as
/tmp/pdbnewclone.xml
NOTE: For the details of the parameters to be used in the .yaml file, please refer config/crd/bases/database.oracle.com_pdbs.yaml
NOTE: Before performing the unplug operation on the PDB CRD Resource, you will first need to perform the Modify Operation on that PDB CRD resource to Close the the PDB. After that you will be able to perform the Unplug operation. Please refer to the use case to modify the PDB state to Close.
Use the file: unplug_pdb.yaml for this use case as below:
- Deploy the .yaml file:
% kubectl apply -f unplug_pdb.yaml
- Monitor the Oracle DB Operator Pod for the progress of the PDB Unplug operation:
NOTE: Check the DB Operator Pod name in your environment.
% kubectl logs -f pod/oracle-database-operator-controller-manager-76cb674c5c-f9wsd -n oracle-database-operator-system
Here is the sample output for a PDB created using Oracle DB Operator On-Prem Controller using file unplug_pdb.yaml