Click here to Skip to main content
13,667,388 members
Rate this:
Please Sign up or sign in to vote.
See more:
i am using VS2012 and oracle 11G 64 bit when i am going to connect the database via C# then i am getting following error

Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.

so what should i do for this issue?
i don't want to install 32 bit oracle
Posted 20-Jan-16 21:13pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

"i don't want to install 32 bit oracle"
That isn't what the error message is saying: it says that you have installed 32 bit Oracle components and are trying to use them from a 64 bit application.
Either check the Oracle setup - and possibly re-install - or change your app to 32 bit mode.
Member 10192073 21-Jan-16 3:31am
how we can check that my oracle is 32 bit or not?actually i have installed 64 bit oracle because my operating system was 32 bit then i had to install the window 64 bit and then i installed oracle 11 G 64 bit
OriginalGriff 21-Jan-16 3:45am
If you installed Oracle on a 32bit system, then it wouldn't install a working 64 bit copy - the OS doesn't support it, so it would install a 32 bit version instead. If you later installed a 64bit OS over the top of your 32 bit, then the chances are that you got a mixed up installation going on!
You can check what you have pretty easily:
Look at all the answers - I suspect you have both 32 and 64 bit versions!
Member 10192073 21-Jan-16 7:12am
i found in above link is

A simple way to find this out in Windows is to run SQLPlus from your Oracle homes's bin directory and then check Task Manager. If it is a 32-bit version of SQLPlus, you'll see a process on the Processes tab that looks like this:

sqlplus.exe *32
If it is 64-bit, the process will look like this:


so in processes it looks as sqlplus.exe
it means its 64 version
now what should i do?
OriginalGriff 21-Jan-16 7:20am
Did you look at ALL the answers?
Member 10192073 21-Jan-16 7:27am
in comps.xml

<dep name="oracle.rdbms" ver="" plat="NT_AMD64">
<dep name="oracle.dbjava.jdbc" ver="" plat="NT_AMD64">
Member 10192073 21-Jan-16 7:29am
- <dep_list>
<DEP NAME="" VER="" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.partitioning" VER="" PLAT="NT_AMD64" />
<DEP NAME="oracle.sdo" VER="" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.lbac" VER="" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.numa" VER="" PLAT="ALL_PLATFORMS" />
<DEP NAME="oracle.oraolap" VER="" PLAT="NT_AMD64" />
<DEP NAME="oracle.ntmgmtobjs" VER="" PLAT="NT_AMD64" />
<DEP NAME="" VER="" PLAT="NT_AMD64" />
<DEP NAME="oracle.clrintg.ode_net_2" VER="" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.dv" VER="" PLAT="NT_AMD64" />
<DEP NAME="oracle.rdbms.rat" VER="" PLAT="NT_AMD64" />
Member 10192073 21-Jan-16 7:29am
ya its 64 bit

it shows only
Member 10192073 21-Jan-16 7:19am
actually i want to tell you that first i had 32 bit version of window and then my 64 bit version of oracle was not installing in my computer then i format the system and reinstall 64 bit OS in my computer and then i installed oracle 64 bit in my computer.
it means my OS is 64 bit and my oracle is also 64 now why its showing the error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.180820.1 | Last Updated 21 Jan 2016
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100