Unable to load DLL “OraOps10.dll”

走远了吗. 提交于 2019-12-21 01:21:13

问题


I am running into peculiar issue. I am developing a windows based application which connects to Oracle database.

For initial testings, I have created installer and tested on different machines that I have. Each machine has Oracle Client installed and I did not see any problem in running application.

But when I share this installer with customer, he is getting error "Unable to load DLL OraOps10.dll". When asked he mentioned and has shown the Oracle Client installed on his machine and he is able to run other C# applications which connects to Oracle databases.

I do not understand why my application only getting above error. I even tried suggestions shared at https://forums.oracle.com/forums/thread.jspa?threadID=67364 but still no luck.

I even tried copying executables & DLLs manually on customer's machine. But still facing same issue.

So please help me on what else i can do.

Thanks & Best Regards
Sudhakar Chavali

P.S:

I am using Windows XP operating system and customer is also using same operating system. Both machines are of type 32 bit OS only.

This is the location where customer's oracle client installed: C:\oracle\product\10.2.0\client_1\bin and same is the version in my case too.

We both are using Oracle 10g.


回答1:


The ODP.NET drivers basically consist of two parts. The .NET part and the native OCI part. The error message indicates that the .NET part is working but fails to load the native part.

These issue are likely causes:

  • There's a version mismatch between the .NET part and the native part. Note that OraOps10.dll belongs to Oracle 10g. So the .NET part isobviously of version 10, and it is looking for a native part for version 10.

  • There could be a bitness mismatch. If the .NET part is running in 64 bit mode, it'll be looking for the 64 bit native OCI DLLs. On a 64 bit system, the task manager can tell you whether the process is 32 or 64 bit. 32 bit processes are marked with *32.

  • The registry might not contain the correct path to the native DLLs. ODP.NET will retrieve the value of HKEY_LOCAL_MACHINE\Software\Oracle\ODP.NET\2.xxx.x.x\DllPath to locate the OCI DLLs. Note that the registry is split into a 32 and 64 bit part. Depending on the process looking into the registry, it'll get different values.

It's best if you add all the available information to your question. Is it a 64 bit operating system? Is it a 32 or 64 bit process? Which version of the Oracle client was installed? What directory was the Oracle client installed? Can you see the correct registry entries?




回答2:


As for me, I am getting Unable to load DLL "OraOps12.dll" error message.

It is a web application, and I am using Oracle XE. Both the web application (the client app) and the Oracle XE database server is installed on the same machine.

The Oracle XE database server comes with its own Oracle 11 client, but the ASP.NET MVC web app is using Oracle 12 client. Even though I installed Oracle 12 instant client on the machine, the ASP.NET MVC website could not see it, it keeps complaining "Unable to load DLL OraOps12.dll".

What I had to do was edit the registry at HKLM\Software\Oracle\ODP.NET\DllPath to point to the Oracle 12 instant client instead of the Oracle 11 client that gets installed with the Oracle XE.

I will post a more detailed explanation later once I am free.




回答3:


I suspect that either the entire Oracle client was not installed OR an earlier version was installed.

You should have the customer verify that the version of the Oracle client that is installed matches yours and that the entire client, not just the .Net portion, was installed.




回答4:


Can you throw some more light on this issue like whether the target OS is 32 or 64 bit. Try to generate the x86 and 64bit installers and check with your clients machine. If not the Oracle client may not be properly installed in the client pc. These issues are a little bit tricky to handle. Try to look at it in other directions.



来源:https://stackoverflow.com/questions/8683661/unable-to-load-dll-oraops10-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!