remove cdb

Removes one or more CDBs from the shard catalog, but does not destroy it.

Syntax

remove cdb -cdb {cdb_name_list | ALL}
           [-force] 

Options

Table 2-72 GDSCTL remove cdb Options

Option Description
-cdb {cdb_name_list | ALL}

Specify a comma-delimited list of CDB names to remove, or specify ALL to remove all CDBs from the catalog.

-force

Remove one or more specified CDBs, even if they are inaccessible and/or contain PDB shards which may contain chunks. It might result in a lower number of replicas or total unavailability for a certain range of data.

WARNING:

No chunks are moved before removing the CDB which may result in data loss.

WARNING:

Forced removal of a CDB will also cause the removal of all CDBs that are replicas of the CDB being forcibly removed.

Examples

Remove the cdb named cdb1.

GDSCTL> remove cdb -cdb cdb1