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  -l  [--dry-run]

exacloudmigration delete_standby Commands

CommandDescription
-i, --inputFileSpecifies the database input file name with complete path.
-l, --dbNames

Specifies a comma-delimited list of databases to perform delete operation.

Examples:

  • To delete a database: -l dbname1
  • To delete multiple databases: -l dbname1,dbname2,dbname3
--dry-runPerforms dry run without deleting the standby databases.
-h, --helpDisplays help information about the command and its options.
-V, --versionDisplays 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-run

    Confirm 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-run

    Confirm 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 dbname1

    Confirm 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,dbname2

    Confirm the name of the database to terminate.