 com.sap.dbtech.powertoys.DBM.cmd Method
com.sap.dbtech.powertoys.DBM.cmd Method 
This method of the com.sap.dbtech.powertoys.DBM class is used for executing DBM commands for managing databases in your Java application.
You are connected to the database.
More information: com.sap.dbtech.powertoys.DBM.dbDBM Method.
Most DBM commands require that you are logged on to the database. To log on to the database, use the user_logon DBM command.
More information: Database Manager CLI, user_logon
 Syntax
 Syntax
public String cmd(String dbm_command) throws com.sap.dbtech.rte.comm.RTEException, com.sap.dbtech.powertoys.DBMException;
| Parameter | Description | 
|---|---|
| dbm_command | DBM Command More information: Database Manager CLI, Overview of all DBM Commands | 
The return code of the method contains the return code of the DBM command.
| Classes | Description | 
|---|---|
| com.sap.dbtech.rte.comm.RTEException com.sap.dbtech.powertoys.DBMException | 
In the cmd method, you use the user_logon DBM command to log DBM operator OLEG with password MONDAY on to the database:
 Syntax
 Syntax
String result = session.cmd ("user_logon OLEG,MONDAY");