DGMGRL Command Usage Notes
The items in this list describe usage notes specific to DGMGRL.
-
The
DG_BROKER_STARTdynamic initialization parameter is set toTRUE. -
To enable broker operations that require restarting databases that are not configured within Clusterware, Oracle Net Services must be configured with a static service on the host that contains the database. By default, broker assumes a static service with the name
<db_unique_name>_DGMGRL.<db_domain>. If the static service name is different, theStaticConnectIdentifierbroker property for the database must be updated to the connect identifier that references the configured static service. Specifically, thelistener.orafile must contain static configuration information about the instance. TheGLOBAL_DBNAMEattribute must be set to<db_unique_name>_DGMGRL.<db_domain>. This is not required if the database is managed by Oracle Clusterware or Oracle Restart for single instance databases. See Prerequisites for additional information. - DGMGRL will automatically shut down and restart a database instance, if the
following are true:
- The instance-name is the SID (this applies to Cloud Control as well as DGMGRL).
- he broker must be able to connect to the database using the same credentials
given in the last
CONNECTcommand, even if the lastCONNECTcommand was used to connect to another database.
-
The connect identifier used while creating the configuration or adding a database, must be resolvable from any of the hosts in the configuration.
-
You must have
SYSDGorSYSDBAprivileges to use the Oracle Data Guard command-line interface. If you do not includeAS SYSDGorAS SYSDBAon theCONNECTcommand, DGMGRL first attempts anAS SYSDGconnection; if that fails, it then attempts anAS SYSDBAconnection. Note that although most commands can be executed with eitherSYSDGorSYSDBAprivileges, some commands that create or significantly modify configuration members can be executed only withSYSDBAprivileges. -
If you specify more than one option on the command, you can specify the options in any order.
-
A semicolon is required at the end of each DGMGRL command.
-
Characters specified in a DGMGRL command string value are interpreted as lowercase characters, unless enclosed in double (") or single (') quotation marks. For example, database and DatAbaSe are equivalent, but "database" and "DatAbaSe" are not.
-
You can use the backslash (\) to escape a single quotation mark ('), a double quotation mark ("), and the backslash character (\) itself if these characters appear in a character string.
Command Examples
Example 10-1 Connecting to a Database Instance on a Local System
This example demonstrates how to connect to a database instance on the local system.
% dgmgrl
.
.
.
Welcome to DGMGRL, type "help" for information.
DGMGRL> CONNECT sysdg;
Password: password
Connected to "North_Sales"
Connected as SYSDG.Example 10-2 Connecting to a Database Instance on a Remote System
This example demonstrates how to connect to a database instance on a remote system.
DGMGRL> CONNECT sysdg@remote-stby;
Password: password
Connected to "remote-stdby"
Connected as SYSDG.Example 10-3 Connecting Using the AS Option
This example demonstrates how to connect to a database instance using the CONNECT AS option:
DGMGRL> CONNECT sys@remote-stby AS SYSDBA;
Password: password
Connected to "remote-stdby"
Connect as SYSDBA.