If you use a DBM option with optional parameters, you have to separate these parameters logically from the subsequent DBM command. To do so, you insert the DBM option –c. The Database Manager CLI interprets all entries following –c as a DBM command.
-c <dbm_command>
Calling the Database Manager CLI, logging on as operator DBM with password DBM to the HOTELDB database instance, displaying the contents of the usersdatabase system table without explicitly specifying a 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 DBM option –uDBS. The system displays an error message.
dbmcli -d HOTELDB -u DBM,DBM -uDBS db_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 database user.
dbmcli -d HOTELDB -u DBM,DBM -uDBS –c db_execute SELECT * FROM users
OK
...