skip to main content
Using the driver : Connecting from an application : Connecting using the DriverManager
  

Try DataDirect Drivers Now

Connecting using the DriverManager

You can connect to an Oracle Sales Cloud instance using the JDBC DriverManager with the DriverManager.getConnection() method. As the following example shows, this method specifies a string containing a connection URL.
Connection conn = DriverManager.getConnection
("jdbc:datadirect:oraclesalescloud://mysite.custhelp.com;User=123@abccorp.com;Password=secret");
* Setting the class path
* Passing the connection URL
* Testing the connection