Background documentation Options (DBMCLI) Locate the document in its SAP Library structure

A series of options can be specified for the Database Manager CLI (Database Manager CLI: SAP DB 7.4, Section Structure linkOptions).

To connect to the database instance on the local server, you must enter at least option -d <database_name>. If you do not enter a DBM command in the command line when calling the Database Manager, an interactive Database Manager CLI session is opened.

Example

You want to specify the following user data as options: DBM operator and the name of the database instance on the local server:

dbmcli -u dbmmann,secret -d MK1

The Database Manager is called and a database session is created for the DBM operator dbmmann, password secret with the registered database instance MK1. You can then enter the required DBM commands interactively.

Example

You want to specify the name of the database instance on the local server as an option. You want to start the database instance.

dbmcli -d MK1
user_logon dbmmann,secret
db_online
exit

The Database Manager is called and an interactive database session is created with registered database instance MK1. Details about the DBM operator dbmmann, password secret are made in the interactive DBM command user_logon. Database instance MK1 is started with DBM command db_online.

Example

You want to specify the name of the database instance on the local server as an option. You want to start the database instance. You want this action to be performed in the background.

Create file startMK1with the following contents:
user_logon dbmann,secret
db_online
exit

Execute the command in the background
dbmcli -d MK1 -i startMK1

The Database Manager is called and an interactive database session is created with registered database instance MK1. File startMK1 is processed.