简体   繁体   English

ODAC 64位+ Visual Studio 2010 + ODAC 32位(在VM中)

[英]ODAC 64bit + Visual Studio 2010 + ODAC 32bit(In VM)

Okay, so I have written a program in my virtual machine using C# and an Oracle DB. 好的,所以我已经使用C#和Oracle DB在虚拟机中编写了一个程序。 Everything works fine in there. 那里一切都很好。 Now I want to use the same program to connecto to the same DB but from another computer, lets say, my host system. 现在,我想使用同一程序从另一台计算机(例如,我的主机系统)连接到同一数据库。 I have installed VS2010 64Bit and ODAC 64bit too, I can see the Oracle Command, Oracle Connection in the Toolbox, but when I try to add an Oracle Connection item i get an error: The provider is not compatible with Oracle Client version . 我也安装了VS2010 64Bit和ODAC 64bit,在工具箱中可以看到Oracle Command,Oracle Connection,但是当我尝试添加Oracle Connection项时出现错误: The provider is not compatible with Oracle Client version This happens even when I try to start a new project. 即使我尝试开始一个新项目,也会发生这种情况。

  1. How can I check my Ora Client version? 如何检查我的Ora客户端版本?
  2. What files to I exactly need to install to get ODP to work on 64bits. 我确切需要安装哪些文件才能使ODP在64位上运行。
  3. Is there any other way I should do it? 我还有其他方法吗?

The files I downloaded are in this link 我下载的文件在此链接中

I guess this is something to do with the bit version (32/64 bit) issue, There is a mismatch in the processor architecture of the components/dlls. 我想这与bit version (32/64 bit)问题有关,组件/ dll的处理器体系结构不匹配。

  1. Check the bit version of the oracle data access dll you have added as project referene 检查您作为项目Referene添加的oracle数据访问dll的位版本
  2. Check the bit version of the oracle client installed in the machine. 检查机器中安装的oracle客户端的位版本。
  3. Check the GAC(Global Assembly Cache) in and remove if there is any Oracle data access dlls.(your application might be loading wrong dll from GAC) 检查GAC(全局程序集缓存)并删除是否有任何Oracle数据访问dll。(您的应用程序可能正在从GAC加载错误的dll)

Fix: 固定:

  1. Uninstall VS2010 64 bit. 卸载VS2010 64位。
  2. (Maybe apply CCleaner to clean registries) (也许将CCleaner应用于清理注册表)
  3. Install VS2010 32 bit. 安装VS2010 32位。
  4. Install ODTwithODAC1120320_32bit 使用ODAC1120320_32bit安装ODT

And that made my project work. 这使我的项目得以开展。 Thank you for your time! 感谢您的时间!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM