oracle客户端兼容,Oracle客户端:提供者与Oracle客户端的版本不兼容(Oracle Client: The provider is not compatible with the ver...

Oracle客户端:提供者与Oracle客户端的版本不兼容(Oracle Client: The provider is not compatible with the version of Oracle client)

为什么我们需要在ODP.NET连接的Web服务器上安装Oracle客户端,为什么我们不能只添加Oracle.DataAccess.dll引用并完成所做的工作。

我们有一个要求,我们将记录从Microsoft Dynamics CRM插入到Oracle中。 当我尝试插入时出现错误,因此在开发Web服务器上安装Oracle Client后,错误得到解决。 现在问题是我们需要生产部署的理由,因为我们需要在生产Web服务器上安装Oracle客户端。

问候,拉胡尔

Why we need to install Oracle client on the web-server for ODP.NET connectivity, why can't we add only Oracle.DataAccess.dll reference and do the work done.

We have a requirement where we are inserting the record into oracle from Microsoft Dynamics CRM. When I tried to the insert I got above error, so after installing Oracle Client on the development web-server, error got resolved. Now the problem is we need a justification for Production deployment that why we need to install Oracle Client on production web-server.

Regards, Rahul

原文:https://stackoverflow.com/questions/41998064

更新时间:2019-12-25 23:45

最满意答案

Oracle.DataAccess.dll使用一些非托管dll,因此您不能只添加一个引用。 您需要安装客户端。

管理的ODAC只需要引用的dll,你能用它来代替吗?

Oracle.DataAccess.dll uses a number of unmanaged dlls, so you can't just add a reference to it. You need the client installed.

The managed ODAC only needs the referenced dll, are you able to use this instead ?

2017-02-10

相关问答

除了托管的Oracle.DataAccess.dll之外,还需要将本机 OCI DLL复制到应用程序的目录。 获取这些DLL的最简单方法是通过Oracle 即时客户端 。 请注意使用正确的“位”(32位DLL用于'x86'配置,64位DLL用于'x64'配置,任何位数与目标机器匹配'任何CPU'配置)。 In addition to managed Oracle.DataAccess.dll, you also need to copy the native OCI DLLs to the app

...

在Web配置的元素中添加一个部分,以删除任何现有的Oracle提供者。 (在之前) Add a section in the element in the web config to remove any existing Oracle provider.

...

我正在使用NHibernate 4.0.4,并且已经安装了“Oracle.ManagedDataAccess”nuget包( https://www.nuget.org/packages/Oracle.ManagedDataAccess/ )。 为了配置NHibernate使用Oracle托管驱动程序,只需要修改一下hibernate.cfg.xml文件,并使用NHibernate.Driver.OracleManagedDataClientDriver作为“connection.driver_c

...

我一直在研究这个问题,您只需要从同一个下载的ODP.Net版本中获取所有相应的DLL,并将它们放在与Exe文件相同的文件夹中,因为ODP.Net对于不混合版本号。 我已经解释了如何做到这一点: http : //splinter.com.au/using-the-new-odpnet-to-access-oracle-from-c这是它的要点: 下载ODP.Net 解压文件 解压缩其中的所有JAR 抓住这些刚刚解压缩的dll: oci.dll(从'oci.dll.dbl'重命名) Oracle.D

...

没有列出的: 您的arch是基于ARM的,并且oracle不提供ARM二进制文件。 使用qemu来扫描x86并运行客户端有很长的路要走,但我从来没有厌倦它。 None of the listed ones: Your arch is ARM based, and oracle doesn't provide ARM binaries. There is a long shot, of using qemu to emultate x86 and run the client, but I've n

...

Oracle客户端附带了一个安装程序和许多可执行文件,如sqlplus,tnsping,它是完整且庞大的。 Oracle Instant Client是一个基本的轻量级客户端,可以在没有任何安装的位置解压缩,它只包含能够连接到oracle的通信层。 它可以通过添加例如sqlplus来扩展,sqlplus作为单独的可执行文件提供。 使用Instant Client时,只需将其解压缩到某个位置,将ORACLE_HOME环境变量设置为此位置即可开始使用。 Oracle client comes with

...

Oracle.DataAccess.dll使用一些非托管dll,因此您不能只添加一个引用。 您需要安装客户端。 管理的ODAC只需要引用的dll,你能用它来代替吗? Oracle.DataAccess.dll uses a number of unmanaged dlls, so you can't just add a reference to it. You need the client installed. The managed ODAC only needs the reference

...

此错误主要是由于应用程序的不兼容处理器体系结构( 32bit或64 32bit )和您添加的Oracle ODAC dll作为参考。 它可能在客户端应用程序中工作,但不能在Web应用程序中工作,因为您可能在不兼容的位版本32或64运行Asp.net应用程序。 如果您在IIS托管了该站点,则必须检查IIS配置为运行的位版本。 编辑 如果上述解决方案无法解决您的问题,请检查您的计算机中是否安装了Oracle Client 。 某些数据库操作至少需要Oracle客户端安装(Oracle Express或

...

一些通用点: ODP.NET(即Oracle.DataAccess.dll )需要安装Oracle客户端。 独立DLL不起作用。 Oracle.DataAccess.dll的体系结构(即32位与64位)必须与已安装的Oracle客户端的体系结构和应用程序的体系结构相匹配。 版本(例如2.x或4.x of Oracle.DataAccess.dll )必须与应用程序的.NET编译目标匹配。 如果在目标2.0,3.0或3.5上编译,则必须安装2.x版。 对于编译目标4或更高版本,您必须安装版本4.x

...

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值