.net 如何在 Windows Server 2003 R2 上安装“Oracle 数据访问组件 (ODAC)”?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16046890/
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-03 12:13:37  来源:igfitidea点击:

How to Install "Oracle Data Access Components (ODAC)" on Windows Server 2003 R2?

.netoracle11gwindows-server-2003oracleclientodac

提问by Tohid

I recently installed "32-bit Oracle Data Access Components (ODAC) with Oracle Developer Tools for Visual Studio" on my computer (Windows 7, 64bit). Everything seems fine and I can develop and run my application in Visual Studio 2010 and IIS 7.

我最近在我的计算机(Windows 7,64 位)上安装了“带有 Oracle Developer Tools for Visual Studio 的 32 位 Oracle 数据访问组件 (ODAC)”。一切似乎都很好,我可以在 Visual Studio 2010 和 IIS 7 中开发和运行我的应用程序。

Now, when I deploy my application to the Server, it raises error:

现在,当我将应用程序部署到服务器时,它会引发错误:

Exception: System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleCommand' threw an exception. ---> Oracle.DataAccess.Client.OracleException: The provider is not compatible with the version of Oracle client

异常:System.TypeInitializationException:“Oracle.DataAccess.Client.OracleCommand”的类型初始值设定项引发异常。---> Oracle.DataAccess.Client.OracleException: 提供程序与 Oracle 客户端版本不兼容

Obviously I need to install ODAC on the server, too. My server is:

显然我也需要在服务器上安装 ODAC。我的服务器是:

  • Windows 2003 32 bit R2 (I know, I know!)
  • IIS 6
  • Windows 2003 32 位 R2(我知道,我知道!)
  • IIS 6

So. I downloaded the same installation from Oracle website (ODAC 11.2 Release 5 and Oracle Developer Tools for Visual Studio [11.2.0.3.20]) and installed it on the server. But still getting the same error.

所以。我从 Oracle 网站(ODAC 11.2 第 5 版和 Oracle Developer Tools for Visual Studio [11.2.0.3.20])下载了相同的安装并将其安装在服务器上。但仍然得到同样的错误。

PS: When I was installing, I chose Oracle Data Access Component for Oracle Client 11.2.0.3.20in Oracle Universal Installer. hmmmm. Should I choose "Oracle Server" instead?

PS:我安装的时候在Oracle Universal Installer中选择了Oracle Data Access Component for Oracle Client 11.2.0.3.20。嗯。我应该选择“Oracle Server”吗?

enter image description here

在此处输入图片说明

回答by Tohid

The first option (Oracle Data Access Component for Oracle Client 11.2.0.3.20) worked for me.

第一个选项(Oracle 客户端 11.2.0.3.20 的 Oracle 数据访问组件)对我有用。

回答by Nikhil Gaur

This is an old post but for other users who might face similar problem here is a post for details instruction

这是一篇旧帖子,但对于可能面临类似问题的其他用户,这里是详细说明的帖子

http://www.codewithasp.net/2012/06/step-by-step-instructions-to-install.html

http://www.codewithasp.net/2012/06/step-by-step-instructions-to-install.html