skip to main content
Getting Started : Quick Start Connect : Connecting to a Database
  
Connecting to a Database
Once the product is installed and the drivers are configured the way you want them, you can connect from your application to your database in either of the following ways:
*Using a connection URL through the JDBC Driver Manager, specifying the connection URL using the DriverManager.getConnection() method
*Using a Java Naming Directory Interface (JNDI) data source
This quick start explains how to create your database connection using a connection URL. See Using the Drivers for information about using data sources.
Use the following steps to load the drivers from your JDBC application.
* 1. Setting the Classpath
* 2. Registering the Drivers
* 3. Passing the Connection URL