应用程序抛出错误但是sqlplus的Oracle连接很好

时间:2016-02-13 20:38:31

标签: oracle oledb

我一直收到这个错误: 未找到Oracle客户端和网络组件。这些组件由Oracle Corporation提供,是Oracle 7.3.3或更高版本客户端软件安装的一部分。

在安装这些组件之前,提供程序无法运行。

当我运行我的应用程序时作为例外。

该应用程序针对的是32位计算机,计算机实际上是64位。

这在昨天和两个月前工作正常,现在它不起作用它不断抛出这个错误。

我已经仔细检查了我的ORACLE_PATH,并确保我存在oci.dll以及ociw32.dll,实际上它们位于Oracle11gcli / bin文件夹和orcle11g / bin文件夹中

我可以使用sqlplus和sqldeveloper进行连接。 当我登录到sqlplus时说64位生产,但我怀疑32/64位架构是问题,因为它工作了3个多月就好了。

tnsnames和listener文件看起来都很好。

我错过了什么?

以下是例外:

System.Data.OleDb.OleDbException (0x80004005): Oracle client and networking components were not found. These components are supplied by Oracle Corporation and are part of the Oracle Version 7.3.3 or later client software installation.

Provider is unable to function until these components are installed.
at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.OleDb.OleDbConnection.Open()

由于

0 个答案:

没有答案