When you call the Database Manager CLI, you can transfer DBM options and a maximum of one DBM command.
You can enter additional parameters for DBM options. The parameters are explained in the descriptions of the respective DBM option.
You can also enter additional command options for the DBM command. These command options are explained in the description of the respective DBM command.
Input help is also provided for the DBM commands.
For information about the format of the return values for DBM commands, see Reply Format.
>dbmcli [<dbm_options>] [<dbm_command> [command_options]]
If you use DBM
options with parameters, mark the beginning of the following DBM command with
the option –c (Indicate as DBM
Command: -c).
By doing so, you prevent the Database Manager program interpreting the
beginning of the DBM command as a parameter of the previous DBM
option.
Logging on to the Database Manager CLI as operator OLEG with password MONDAY, connecting to the database instance DEMODB, displaying the operational state of the database instance:
>dbmcli –u OLEG,MONDAY –d DEMODB db_state
OK
State
ONLINE
Logging on to the Database Manager CLI as user OLEG with the password MONDAY, connecting to the database instance DEMODB, explicitly starting an SQL session (which should not automatically close 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.)
>dbmcli -u OLEG,MONDAY -d DEMODB –uSQL –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)