我有一个已部署的Web服务,并且正在bin文件夹中使用Oracle Instant Client实例。问题是,无论我在测试服务器上使用什么连接字符串,都会出现ORA-12154错误或ORA-12545错误。

这是我尝试过的连接字符串: 通用标签

我尝试在系统中设置TNS_ADMIN变量,但这对我没有任何帮助。当然,在我的机器上一切正常。只是不在部署的服务器上。

有帮助吗?

解决方案

you may have already solved this issue but did you do the following

  1. Download the ODAC xcopy version
  2. Copy the following dll’s from the ODAC folder to either the bin (if web) or location of the exe file

    • oci.dll (Client Code Library)
    • ociw32.dll
    • Oracle.DataAccess.dll
    • orannzsbb11.dll (Security Library)
    • oraocci11.dll (OCCI Library)
    • oraociei11.dll (OCI Instant Client Data shared Library)
    • OraOps11w.dll
  3. I created a blog post that walks though the steps along with a link to a sample application.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top