You log on to a database instance as a database user to work interactively with the database instance. Several logon options are available.
The specified user is a database user (External)..
Log on to the database instance:
sqlcli [<options>] -d <database_name> -u <database_user>,<database_user_password>
options |
Call options (Page 13) for the SQLCLI program |
database_name |
Name of database instance |
database_user |
Name of database user See Concepts of the Database System, Conventions for User Names and Passwords (External) |
database_user_password |
Database user’s password |
One step logon to the database instance HOTELDB on the computer PARMA as database user MONA with the password RED:
sqlcli -n PARMA -d HOTELDB -u MONA,RED
To log on using a user key (External)<user_key>, enter the following command:
sqlcli [<options>] -U <user_key>
Open an SQLCLI session:
sqlcli [<options>]
Connect to the database instance:
\c [<options>] -d <database_name> -u <database_user>,<database_user_password>
To disconnect from the database instance, enter the command \di.
You have logged on to a database instance and can now enter SQLCLI commands (Page 14) and SQL statements (Page 9).