简体   繁体   English

在Win 10 64位上使用Oracle Client 32位

[英]Using Oracle client 32 bit on Win 10 64 bit

I am using Windows 10 64 bit and Oracle client 32 bit (It's my company requirement). 我正在使用Windows 10 64位和Oracle客户端32位(这是我公司的要求)。 But when I open some existed program, it display a dialog with error: 但是,当我打开一些现有程序时,它显示一个错误对话框:

Attempt to load oracle client libraries threw badimageformatexception. 尝试加载oracle客户端库时抛出了badimageformatexception。 This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed 在安装了32位Oracle客户端组件的64位模式下运行时,将发生此问题

I had fixed by add Enviroment variables but it's not working. 我已经通过添加环境变量进行了修复,但无法正常工作。 I am searching around Google, but the solution almost about fix on Visual Studio when developing application. 我在Google周围搜索,但是解决方案几乎涉及在开发应用程序时修复Visual Studio。

These program is existed, not run from Visual Studio. 这些程序存在,不能从Visual Studio运行。

How should I do to make application which using Oracle client 32 bit on OS 64 bit? 在OS 64位上如何使用Oracle客户端32位来制作应用程序?

A 32 bit application requires also a 32 bit Oracle Client. 32位应用程序还需要32位Oracle Client。 A 64 bit application (resp. "AnyCPU" on windows 64 bit) requires a 64 bit Oracle Client. 一个64位应用程序(在Windows 64位上为“ AnyCPU”),需要一个64位Oracle Client。

Unless you use the ODP.NET Managed Driver (see here ) there is not way to get rid of it. 除非您使用ODP.NET托管驱动程序(请参阅此处 ),否则无法摆脱它。 One solution is to install both, 32 bit and 64 bit Oracle Client, follow this instruction: BadImageFormatException. 一种解决方案是安装32位和64位Oracle Client,请遵循以下说明: BadImageFormatException。 This will occur when running in 64 bit mode with the 32 bit Oracle client components installed 在安装了32位Oracle客户端组件的64位模式下运行时,会发生这种情况

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

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