To manage a MaxDB database instance in a Java application, you use the Database Manager Java classes.
● You have installed the software component JDBC (see Installation Manual, Software Components).
● You have added the sapdbc.jar path to the CLASSPATH environment variable.
The Database Manager Java classes are found in the file <independent_program_path>\runtime\jar\sapdbc.jar.
C:\Program Files\sdb\programs\runtime\jar\sapdbc.jar
Database Manager Java Classes
Class |
Task |
com.sap.dbtech.powertoys.DBM |
Establishing/closing the connection to the database instance Executing DBM commands (commands in the administration tool of the Database Manager) |
com.sap.dbtech.powertoys.DBMException |
Troubleshooting |
Methods of the com.sap.dbtech.powertoys.DBM Class
Method |
Task |
Connecting Java applications to the DBM server of a certain software version
You require these methods to create a new database instance |
|
Connecting Java application to a database instance using the Database Manager |
|
Executing DBM commands |
|
Canceling a DBM command |
|
Closing the connection to the Database Manager |
Methods of the com.sap.dbtech.powertoys.DBMException Class
See Troubleshooting (Database Manager)
Example: Displaying the Operational State of the Database Instance
See also:
Database Manager CLI, Overview of all DBM Commands