Cannot load/find oci.dll

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
riwe
Posts: 9
Joined: Fri 20 Nov 2009 14:57

Cannot load/find oci.dll

Post by riwe » Wed 03 Nov 2010 09:02

I have an application with ODAC 7.0. My developer machine runs at win 7 pro x64. First I installed oracle 11g x64. With this installation OraDeveloper Studio worked fine. But the application with ODAC 7.0 didn't find the oci.dll.

So I uninstalled the oracle 11g x64 and installed oracle 11g x32. Now the OraDeveloper studio is unable to load the oci.dll. The message is "Unable to load d:\oracle\product\11.1.0\bin\oci.dll. Please check that you use 64x version of Oracle client with 64x application." But the application with ODAC 7.0 works fine.

Strange that ODAC works and OraDeveloper Studio does not. Do you have any suggestions?

Thank you in advance

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Wed 03 Nov 2010 09:41

Hello,

This is due to the fact that Delphi doesn't support building x64 applications, so ODAC can work only with a x32 dll. OraDeveloper Studio is a .Net application (building in MS Visual Studio) so it can work with a x64 dll.

riwe
Posts: 9
Joined: Fri 20 Nov 2009 14:57

Post by riwe » Wed 03 Nov 2010 10:00

Is there a workaround? I do not need that OraDeveloper Studio try to access a 64 Bit oci.dll. E.g. a 32 bit mode?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Wed 03 Nov 2010 13:43

Hello,

If OraDeveloper Studio is installed on a Windows x64 computer it uses x64 .Net Framework and can't work with x32 dll.
You should use both Oracle clients: x64 to work with OraDeveloper Studio and x32 to work with ODAC.

Post Reply