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 2-1 GDSCTL add brokerconfig Options
| Option | Description |
|---|---|
|
|
Specify an Oracle Net connect descriptor or net service name that resolves to a connect descriptor for a database in the broker configuration. |
|
|
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. |
|
|
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. |
|
|
The password for the GSMUSER. If |
|
|
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. |
|
|
Specify this option to store a net service name specified with the |
Usage Notes
-
You must connect to the Global Data Services catalog database as a user with the pool administrator privileges, the GSMUSER database account, using the connect command before running the
add brokerconfigcommand. You should use theCONNECTcommand to connect to the GSMUSER for the database that you are adding the broker configuration for. -
If a GDS pool already has databases or another configuration, an error is returned. If
-regionis specified, it defines only the region of primary database. If there is more than one region in catalog, GDS region property of standbys will be unassigned. The user will have to use modify database to specify GDS region.
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 myreaderfarmExceptions or Error Codes
GDSCTL returns the errors listed below if you use this command incorrectly.
Table 2-2 GDSCTL add brokerconfig Exceptions or Error Codes
| Exception | Description |
|---|---|
|
|
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. |