RDBPROD: How to Specify Rdb Database at Runtime Using the Oracle JDBC Driver & OCI (Doc ID 393046.1)

Last updated on AUGUST 09, 2016

Applies to:

Oracle Rdb Server on OpenVMS - Version 7.1 and later
Oracle SQL/Services for Rdb on OpenVMS - Version 7.1.6 and later
JDBC - Version 10.1.0 and later
Information in this document applies to any platform.



Goal

Using the Oracle JDBC driver, how can we pass the Rdb database attach statement when calling the driver without having the attach statement defined in the OCI Service?

For example:

where the database is specified on the JDBC connect string so that the OCI service can be "generic".

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms