Passing the Connection URL
- Last Updated: November 20, 2019
- 1 minute read
- DataDirect Connectors
- JDBC
- Oracle Service Cloud 5.1
- Documentation
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");