Show TOC

Testing the Connection to the DatabaseLocate this document in the navigation structure

Procedure

Enter the following command on the command line:

java -jar <installation_path>\runtime\jar\sapdbc.jar -d <database_name> -u <database_user_name>,<database_user_password> [-n <database_computer>]

Note

You can display the installation path using the dbm_getpath DBM command:

dbmcli dbm_getpath InstallationPath

For more information, see Database Manager CLI, dbm_getpath.

You can also enter further connection options or test if an SQL statement or a DBM command can be executed (limited reply memory):

java -jar <installation_path>\runtime\jar\sapdbc.jar -d <database_name> -u <database_user_name>,<database_user_password> [-n <database_computer>] [-o <connection_option>] [-c <sql_statement> | -a <dbm_command>]

Result
  • If the system can establish a connection to the database:

    | connect test |

    --------------------------

    | successfully connected |

  • If the system cannot establish a connection to the database:

    <error_message>