skip to main content
Getting Started : Getting started : Passing the Connection URL
  

Try DataDirect Drivers Now

Passing the Connection URL

After registering the driver, the connection information needs to be passed in the form of a connection URL. The connection URL takes the form:
jdbc:datadirect:oracleservicecloud:loginHost=host;
[property=value[;...]]
where:
LoginHost
is the host name of the Oracle Service Cloud site to which you want to connect, for example, mysite.custhelp.com. This value should not include an internet protocol such as http:// or https://.
property=value
specifies connection property settings. Multiple properties are separated by a semi-colon. For more information on connection properties, see Using Connection Properties.
This example shows how to establish a connection to an Oracle Service Cloud data source and include user ID and password information:
Connection conn = DriverManager.getConnection
("jdbc:datadirect:oracleservicecloud:loginHost=mysite.custhelp.com;
User=test;Password=secret");