oracle 无法加载 DLL“OraOps10.dll”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7671350/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 00:20:53  来源:igfitidea点击:

Unable to load DLL "OraOps10.dll"

c#oraclevisual-studio-2008oracle10g

提问by Chong

Hi dear all my friends,

嗨,亲爱的所有朋友,

I got some oracle problem in my c#.net window based application.I am using oracle 10g express version and vistual studio 2008. I added Oracle.DataAccess dll to my project and declare the oracle connection and institiate it, that application is working properly in server pc but it shows error message in client machine.The error message is "Unable to load DLL 'OraOps10.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)". I got that error at

"OracleConnection oraCnn = new OracleConnection();".

What is OraOps10.dll and how I solve that problem? Do I need to install some oracle client application in client? Please give me the right way.

我在我的基于 c#.net 窗口的应用程序中遇到了一些 oracle 问题。我使用的是 oracle 10g express 版本和vistual studio 2008。我将 Oracle.DataAccess dll 添加到我的项目中并声明了 oracle 连接并启动它,该应用程序在服务器 pc 但它在客户端机器中显示错误消息。错误消息是“无法加载 DLL 'OraOps10.dll':找不到指定的模块。(来自 HRESULT 的异常:0x8007007E)”。我在

OracleConnection oraCnn = new OracleConnection();”处遇到了那个错误。

什么是 OraOps10.dll 以及我如何解决该问题?我需要在客户端安装一些 oracle 客户端应用程序吗?请给我正确的方法。

Thanks.

谢谢。

Regards,

问候,

Chong

采纳答案by Simon Mourier

You need to install the whole Oracle Client, which includes native libraries, not just Oracle.DataAccess.dll which is a managed .NET wrapper on it. See here for more information: ODAC 11.2 Release 3 (11.2.0.2.1) with Xcopy Deployment

您需要安装整个 Oracle 客户端,其中包括本机库,而不仅仅是 Oracle.DataAccess.dll,后者是一个托管的 .NET 包装器。有关更多信息,请参见此处:带有 Xcopy 部署的 ODAC 11.2 第 3 版 (11.2.0.2.1)