List all Data Guard associations for given VM cluster

List all Data Guard associations for the specified VM cluster.

Ensure that the database input file has been generated and modified according to the requirements.

The list_dg_associations command supports the following options:

Syntax

exacloudmigration list_dg_associations [-ahV] -i <inputFile> | -s <sourceVmClusterOCID> 

Table 2-33 exacloudmigration list_dg_associations Commands

Command Description
-a, --all Lists Data Guard associations for all databases in the source VM cluster.
-i, --inputFile Specifies the database input file name with complete path.
-s, --sourceVmClusterOCID Specifies the source VM cluster OCID.
-l, --dbNames Specifies a comma-delimited list of database names to list the Data Guard associations.

Examples:

  • To list the Data Guard associations for a database: -l dbname1
  • To list the Data Guard associations for multiple databases: -l dbname1,dbname2,dbname3
-u, --profile Specifies the OCI user profile name (Default profile is DEFAULT).
-h, --help Displays help information about the command and its options.
-V, --version Displays the version of the utility.

Examples:

  • To list all Data Guard associations for all databases:
    /home/opc>./exacloudmigration list_dg_associations -a -i inputs/infra_phxref/vmcluster_vmcluster1/database_inputs
  • To list Data Guard associations for a comma-delimited list of database(s) (ExaDB-D):
    /home/opc>./exacloudmigration list_dg_associations -s ocid1.cloudvmcluster.oc1.phx.anyhq5ftfhjtqccxyzabc -l dbname1,dbname2
  • To list Data Guard associations for a comma-delimited list of database(s) (ExaDB-C@C):
    /home/opc>./exacloudmigration list_dg_associations -s ocid1.vmcluster.oc1.phx.anyhq5ftfhjtqccxyzabc -l dbname1,dbname2