在ASP.NET上使用Oracle即时客户端。获取ORA-12154或12545错误
我已经部署了一个web服务,并且正在使用bin文件夹中的Oracle Instant Client实例。问题是,无论我在测试服务器上使用什么连接字符串,我都会遇到ORA-12154错误或ORA-12545错误 以下是我尝试过的连接字符串:在ASP.NET上使用Oracle即时客户端。获取ORA-12154或12545错误,asp.net,oracle,ora-12514,instantclient,ora-12545,Asp.net,Oracle,Ora 12514,Instantclient,Ora 12545,我已经部署了一个web服务,并且正在使用bin文件夹中的Oracle Instant Client实例。问题是,无论我在测试服务器上使用什么连接字符串,我都会遇到ORA-12154错误或ORA-12545错误 以下是我尝试过的连接字符串: //This one caused the ORA-12545 error: <add key="oracleConnectString" value="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(P
//This one caused the ORA-12545 error:
<add key="oracleConnectString" value="Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=myhost.mydomain.com)(PORT=1574)))(CONNECT_DATA=(SID=mysid)(SERVER=DEDICATED)));User Id=username;Password=password;" />
//These caused the ORA-12154 errors:
<add key="oracleConnectString" value="Data Source=username/password@//myhost.mydomain.com:1574/mysid;"/>
or
<add key="oracleConnectString" value="Data Source=myhost.mydomain.com:1574/mysid;User Id=username;Password=password;"/>
//这一个导致了ORA-12545错误:
//这些导致了ORA-12154错误:
或
我曾尝试在系统中设置TNS_管理变量,但这对我没有任何帮助。当然,在我的机器上一切正常。只是不在部署的服务器上。您可能已经解决了此问题,但是否执行了以下操作
- oci.dll(客户端代码库)
- ociw32.dll
- Oracle.DataAccess.dll
- orannzsb11.dll(安全库)
- oraocci11.dll(OCCI库)
- oraociei11.dll(OCI即时客户端数据共享库)
- OraOps11w.dll