2.3.3 Test Connections
A test connection is opened and then closed. This test connection does not
affect the current SQLcl connection. The credentials stored with the connection are used for
the test. If no password is stored, the user is prompted for the password. If the
-user
option is used, the provided user is tested instead. A password
will need to be provided when prompted.
Syntax
connmgr|cm test {OPTIONS} {PARAMETERS}
Options
Option | Description |
---|---|
-user, -u | Specify a user name instead of using the one stored with the connection definition. Case-sensitive user names are quoted to preserve case. |
Parameters
Parameter | Description |
---|---|
<name> | The name of the connection. Connection names are case-sensitive. |
Example
To test the connection MyConnection
for user name
SCOTT
:
SQL> CONNMGR TEST MyConnection
SQL> CONNMGR TEST -USER SCOTT MyConnection