Time for action – connecting to Data Guard broker
You can connect the DGMGRL interface locally by specifying only the username with the password, or just using /
if OS authentication is possible. If you are connecting from a remote machine, you must use Oracle Net Services name to connect the Data Guard broker. Use the following steps to see some examples of broker connections:
To connect from either a primary or a standby database server with OS authentication enabled, you can connect using
/
as follows:[oracle@oracle-primary ~]$ dgmgrl / DGMGRL for Linux: Version 11.2.0.1.0 - 64bit Production Copyright (c) 2000, 2009, Oracle. All rights reserved. Welcome to DGMGRL, type "help" for information. Connected. DGMGRL>
In order to connect to the broker CLI database, authentication is required. Add the following line to the
sqlnet.ora
file to gain authentication:[oracle@oracle-primary admin]$ cat sqlnet.ora|grep SQLNET SQLNET.AUTHENTICATION_SERVICES = (NONE)
Connecting with OS authentication...