Entering content frame

 Indicate as DBM Command: -c 

Use

If you use a DBM option with optional parameters, you have to separate it logically from subsequent DBM commands. To do so, you insert the DBM option –c. The Database Manager CLI interprets all specifications following –c as a DBM command.

Syntax

-c <DBM_command>

Examples

Call the Database Manager CLI, log on to the database instance HOTELDB as operator DBM with password DBM, display the content of the database system table users without specifying a particular database user.

·        If you do not specify -c between the optional parameters of the DBM option and the DBM command, the DBM command is interpreted as a user name/password combination for the option –uSQL. The system displays an error message.

dbmcli -d HOTELDB -u DBM,DBM -uSQL sql_execute SELECT * FROM users

ERR
-24988,ERR_SQL: sql error
-4008,Unknown user name/password combination

·        You mark the beginning of the DBM command with the option –c. The default value (first DBM operator) is used for the –uSQL option.

dbmcli -d HOTELDB -u DBM,DBM -uSQL –c sql_execute SELECT * FROM users

OK
...

 

 

Leaving content frame