Delete standby
Delete standby database(s).
Ensure that the database input file has been generated and modified according to the requirements.
The delete_standby command supports the following options:
Syntax
exacloudmigration delete_standby [-hV] -i <inputFile> -l <dbNames> [--dry-run]Table 2-32 exacloudmigration delete_standby Commands
| Command | Description |
|---|---|
-i, --inputFile |
Specifies the database input file name with complete path. |
-l, --dbNames |
Specifies a comma-delimited list of databases to perform delete operation.
Examples:
|
--dry-run |
Performs dry run without deleting the standby databases. |
-h, --help |
Displays help information about the command and its options. |
-V, --version |
Displays the version of the utility. |
Examples:
- To validate the database input template file and perform a
--dry-run:/home/opc>./exacloudmigration delete_standby -i inputs/infra_phxref/vmcluster_vmcluster1/database_inputs -l dbname1 --dry-runConfirm the name of the database to terminate.
- To validate a comma-delimited list of dbnames to verify the database input template file and perform a
--dry-run:/home/opc>./exacloudmigration delete_standby -i inputs/infra_phxref/vmcluster_vmcluster1/database_inputs -l dbname1,dbname2 --dry-runConfirm the name of the database to terminate.
- To delete standby for the specified database, following successful validation and dry run:
/home/opc>./exacloudmigration delete_standby -i inputs/infra_phxref/vmcluster_vmcluster1/database_inputs -l dbname1Confirm the name of the database to terminate.
- To delete a comma-delimited list of standby databases, following successful validation and dry run:
/home/opc>./exacloudmigration delete_standby -i inputs/infra_phxref/vmcluster_vmcluster1/database_inputs -l dbname1,dbname2Confirm the name of the database to terminate.