Entering content frame

Procedure documentation Logging on to a Database Instance Locate the document in the library structure

Use

To use the SQLCLI interactively (in session mode), log on to a database instance as a database user:

Prerequisite

The specified user is a database user.

One Step Logon

Log on to the database instance:

sqlcli [<options>] -d <database_name> -u <database_user>,<database_user_password>

<options>

Call options for the SQLCLI program

<database_name>

Name of the database instance

<database_user>

Name of the database user

See Database System Concepts, Conventions for User Names and Passwords

<database_user_password>

Password of the database user

Example

One step logon to the database instance DEMODB on the computer PARMA as database user MONA with the password RED:

sqlcli -n PARMA -d DEMODB -u MONA,RED

To log on using a user key <user_key>, enter the following command:

sqlcli [<options>] -U <user_key>

Two Step Logon

Start the SQLCLI:

sqlcli [<options>]

Connect to the database instance:

\c [<options>] -d <database_name> -u <database_user>,<database_user_password>

Note

To disconnect from the database instance, enter the command \di.

Result

You are logged on to the database instance and can now execute commands interactively.

 

Leaving content frame