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
The X Server is started.
...
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