Entering content frame

Process documentation Connecting to the Database Instance Locate the document in the library structure

Purpose

Use method java.sql.DriverManager.getConnection to connect a database application with a database instance via JDBC.

You require the following information:

·        Database name

·        Name and password of the database user

·        If the database runs on a remote computer: name of the computer

Prerequisites

The X Server is started.

Process Flow

...

       1.      Define the connection URL. This URL contains the name of the database instance, and, if you are connecting to a remote computer, the name of this computer.

       2.      Specify any other connection options

       3.      Call the method java.sql.DriverManager.getConnection

 

Leaving content frame