Entering content frame

Procedure documentation Logging on to a Database Instance Locate the document in its SAP Library structure

Use

You log on to a database instance as a database user to work interactively with the database instance. Several logon options are available.

Prerequisite

The specified user is a database user (External)..

One Step Logon

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

Example

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>

Two Step Logon

Open an SQLCLI session:

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 have logged on to a database instance and can now enter SQLCLI commands (Page 14) and SQL statements (Page 9).

 

Leaving content frame