How to use tns records with macromedia drivers for Oracle

We are currently forced to use macromedia drivers for ColdFusion to connect to Oracle databases. The jdbc connection url is similar:

jdbc:macromedia:oracle://server:port;sid=service

The flip side of this approach is that it forces us to “hard code” the database server name, as well as the port number and service name.

Does anyone know how the jdbc url should use the TNSNames entry?

For OCI drivers, this is jdbc:oracle:oci:@tnsentry

Is it possible to do the same with macromedia drivers? What will you be the correct URL?

+5
source share
1 answer

We just realized that the following syntax works:

jdbc:macromedia:oracle:TNSNamesFile=C:\\Oracle\\product\\11.2.0\\client_1\\network\\admin\\tnsnames.ora; TNSServerName=tnsentry
+5
source

All Articles