You can use Java programs for the administration of database instances. For administration purposes, the Java package com.sap.dbtech.powertoys provides you with the Java class com.sap.dbtech.powertoys.DBM. This Java package is included in the software of the JDBC driver.
...
1. Connecting to the Database Manager with Java using Java class com.sap.dbtech.powertoys.DBM
2. Execute DBM commands with Java
As a result, you get the return codes of the commands. The return values of the commands are available as a Java variable that you can easily edit and format. Exceptions are generated in error situations. You can catch and handle these exceptions (see Error Treatment for Errors of the Database Manager).
3. Ending the Connection to the Database Manager
Example for Querying the Operational State of a Database Instance
See also:
Documentation for the Database Manager CLI