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>
Logging on to the Database Manager CLI as user OLEG with the password MONDAY, conntecting to the database instance DEMODB, explicitly starting an SQL session (which is not automatically closed again after executing the DBM command), displaying the content of the users database system table without explicitly specifying a database user: (The default value is used for the database user, that is, the database system administrator’s data.)
· 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 -u OLEG,MONDAY -d DEMODB -uSQL 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. Since you do not specify a database user, the Database Manager default value is used.
>dbmcli -u OLEG,MONDAY -d DEMODB -uDBS –c db_execute SELECT * FROM users
OK
END
'OLEG';'';'OLEG';'ADMIN';'MULTIPLE';(null);(null);(null);'DEFAULT';'20050602';'0
0104503';'20050602';'00104503';'20050602';'00104503';'DEMODB';'p59963.dhcp.ber.s
ap.corp';0;'NO';(null)
'DBADMIN';'';'DBSERVICE';'DBA';'MULTIPLE';(null);(null);(null);'DEFAULT';'200506
02';'00104508';'20050602';'00104508';'20050602';'00104508';'DEMODB';'p59963.dhcp
.ber.sap.corp';6;'YES';(null)
'DBADMIN';'';'DBADMIN';'SYSDBA';'MULTIPLE';(null);(null);(null);'DEFAULT';'20050
602';'00104503';'20050613';'00164610';'20050602';'00104503';'DEMODB';'p59963.dhc
p.ber.sap.corp';10;'NO';(null)
'DBADMIN';'';'MONA';'DBA';'MULTIPLE';(null);(null);(null);'DEFAULT';'20050602';'
00104523';'20050602';'00104523';'20050602';'00104523';'DEMODB';'p59963.dhcp.ber.
sap.corp';24;'NO';(null)