Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 2.16 KB

terminate_dbcs_system.md

File metadata and controls

46 lines (29 loc) · 2.16 KB

Terminate an existing DBCS System

In this use case, an existing OCI DBCS system deployed earlier is terminated using Oracle DB Operator DBCS controller. Its a 2 Step operation.

In order to terminate an existing DBCS system, the steps will be:

  1. Bind the existing DBCS System to DBCS Controller.
  2. Apply the change to terminate this DBCS System.

NOTE We are assuming that before this step, you have followed the prerequisite steps to create the configmap and the secrets required during the deployment.

This example uses terminate_dbcs_system.yaml to terminated a Single Instance DBCS VMDB using Oracle DB Operator DBCS Controller with:

  • OCID of existing VMDB as ocid1.dbsystem.oc1.phx.anyhqljrabf7htyanr3lnp6wtu5ld7qwszohiteodvwahonr2yymrftarkqa
  • OCI Configmap as oci-cred
  • OCI Secret as oci-privatekey

NOTE: For the details of the parameters to be used in the .yaml file, please refer here.

Use the file: terminate_dbcs_system.yaml for this use case as below:

  1. Deploy the .yaml file:
[root@test-server DBCS]# kubectl apply -f terminate_dbcs_system.yaml
dbcssystem.database.oracle.com/dbcssystem-terminate created
 

[root@test-server DBCS]# kubectl delete -f terminate_dbcs_system.yaml
dbcssystem.database.oracle.com "dbcssystem-terminate" deleted
  1. Check the logs of Oracle DB Operator Pod pod/oracle-database-operator-controller-manager-665874bd57-g2cgw for an update on the terminate operation been accepted.
[root@test-server DBCS]# kubectl logs -f pod/oracle-database-operator-controller-manager-665874bd57-g2cgw -n  oracle-database-operator-system
  1. Check and confirm if the existing OCI DBCS system is NO longer available after sometime because of termination:
[root@test-server DBCS]# kubectl describe dbcssystems.database.oracle.com dbcssystem-terminate

Sample Output

Here is the sample output for terminating an existing DBCS System deployed in OCI using Oracle DB Operator DBCS Controller with minimal parameters.