## Database Manager Java Classes

### Use

To manage a MaxDB database instance in a Java application, you use the Database Manager Java classes.

### Prerequisites

● You have installed the software component JDBC (see Installation Manual, Software Components).

● You have added the sapdbc.jar path to the CLASSPATH environment variable.

### Features

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
dbrootDBM | Connecting Java applications to the DBM server of a certain software version You require these methods to create a new database instance
dbDBM | Connecting Java application to a database instance using the Database Manager
cmd | Executing DBM commands
cancel | Canceling a DBM command
release | Closing the connection to the Database Manager

Methods of the com.sap.dbtech.powertoys.DBMException Class

See Troubleshooting (Database Manager)

### Example

Example: Displaying the Operational State of the Database Instance

See also:

Database Manager CLI, Overview of all DBM Commands

Database Manager CLI

Database Manager GUI