add brokerconfig

Adds an Oracle Data Guard broker configuration to a Global Data Services pool.

Syntax

add brokerconfig -connect connect_identifier
                 [-pwd password]
                 [-gdspool gdspool_name]
                 [-region region_name]
                 [-savename]
                 [-force]

Options

Table 1 GDSCTL add brokerconfig Options

Option Description
-connect connect_identifier Specify an Oracle Net connect descriptor or net service name that resolves to a connect descriptor for a database in the broker configuration.
-force If specified, the existing GDS configuration is deleted. Deletes an existing, running SDB, and should only be used if you want to get rid of the entire SDB.
-gdspool gdspool_name

The pool to which the databases of the Oracle Data Guard broker configuration are to be added.

If the specified Global Data Services pool already contains databases or another configuration, GDSCTL returns an error.

-pwd password The password for the GSMUSER. If -pwd is not specified, then you are prompted for the password.
-region region_name The Global Data Services region to which the databases belong. If you specify a region, then all the databases are added to that region. If you do not specify a region, then all databases are added with a region of UNASSIGNED. If the region is UNASSIGNED, then you must use the modify database command to change the region.
-savename Specify this option to store a net service name specified with the -connect option in the Global Data Services catalog, rather than the connect descriptor mapped to that net service name.

Usage Notes

Examples

Add the Oracle Data Guard broker configuration for the DB1 database to the Global Data Services pool MYREADERFARM and the WEST region.

GDSCTL> add brokerconfig -connect 192.168.1.1:1521:sid -region west -gdspool myreaderfarm

Exceptions or Error Codes

GDSCTL returns the errors listed below if you use this command incorrectly.

Table 2 GDSCTL add brokerconfig Exceptions or Error Codes

Exception Description
ERROR-44866 A pool can only contain one Data Guard broker configuration. If a Global Data Services pool already contains an Oracle Data Guard broker configuration, then GDSCTL returns error 44866 because a database must be added using Oracle Data Guard in this case.