To administrate an existing database instance with Java, you first establish the connection with the Database Manager that corresponds to the software version of the database instance in question. Use the DBM.dbDBM Java method for this.
import com.sap.dbtech.powertoys.*;
…
<lvalue> = DBM.dbDBM (<database_computer>, <database_name>);
Parameter |
Description |
<lvalue> |
Expression of the DBM class (such as a variable) to which a value can be assigned |
<database_computer> |
Name of the database computer |
<database_name> |
Name of the database instance |
See also:
Executing DBM Commands with Java
Example for Displaying the Operational State of a Database Instance