skip to main content
About the Driver : Using the driver : Connecting from an Application : Connecting Using the JDBC Driver Manager
  

Try DataDirect Drivers Now
Connecting Using the JDBC Driver Manager
One way to connect to a database is through the JDBC Driver Manager using the DriverManager.getConnection() method. This method specifies a string containing a connection URL. This example shows how to establish a connection to an Oracle Service Cloud data source:
Connection conn = DriverManager.getConnection
("jdbc:datadirect:oracleservicecloud:loginHost=mysite.custhelp.com;
User=test;Password=secret");
* Registering the Driver
* Passing Connection URLs