To manage an existing database instance using Java, you need to connect to the DBM Server that matches the software version of this database instance. Use the DBM.dbDBM Java method for this.
This method is
similar to the procedure for opening a DBM Server session
(dbmcli -n
<database_server> -d <database_name>).
See also: Connecting to the Database Manager
When executing DBM commands, proceed as described under Executing DBM Commands with Java.
import com.sap.dbtech.powertoys.*;
…
<lvalue> = DBM.dbDBM (<database_server>, <database_name>);
Parameter |
Description |
lvalue |
Expression of the DBM class (such as a variable) to which a value can be assigned |
database_server |
Name of the database computer |
database_name |
Name of the database instance |
See also:
Example for Displaying the Operational State of a Database