how to use tns entries with macromedia drivers for Oracle

北战南征 提交于 2019-11-28 08:38:20

问题


We are currently forced to use macromedia drivers on ColdFusion in order to connect to Oracle databases. The jdbc connection url is like:

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

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

Does anyone know how the jdbc url should be to make use of the TNSNames entry?

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

Is it possible to do the same with macromedia drivers? what you be the correct url?


回答1:


We just figured out that the following syntax works:

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


来源:https://stackoverflow.com/questions/9402546/how-to-use-tns-entries-with-macromedia-drivers-for-oracle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!