I just migrated from XP to Win 7. I am guessing this error has to do with switching operating systems. I wrote a .net application that basically massages a large amount of d
Do the following test:
Open a Command Prompt and type: tnsping instance_name
where instance_name is the name of the instance you want to connect (if it's a XE database, use "tnsping xe"
If it returns ok, follow steps of Der Wolf's answer. If doesn't return ok, follow steps of Annjawn's answer.
It solved for me in both cases.
;C:\oracle\product\10.2.0\client_1\binIt only worked for me after I changed the 'Platform target' to 'x64' (considering I'm using Oracle 12c 64 bits)
To do that, I did:
Right click on the project name (at the Solution Explorer panel locate, in general, at the left)
Clicked on 'Build' (in the new opened window)
Changed the 'Platform target' from 'Any CPU' to 'x64'
That solved the problem.
If you can't change compile use x64, try uninstall x64 version of odac and install 32bit version. Then, don't forget to add install directory like C:\oracle and also the child directory C:\oracle\bin to the PATH environment variable. This worked out for me in .net 4 application.
I had the same issue after installing the 64 bit Oracle client on Windows 7 64 bit. The solution that worked for me:
cd \oracle\product\11.2.0\client_64\BINc:\Windows\system32\regsvr32.exe OraOLEDB11.dllMy team would stumble upon this issue every now and then in random machines that we would try to install our platform in (we use oracle drivers 12c ver 12.2.0.4 but we came across this bug with other versions as well)
After quite a bit of experimentation we realized what was wrong:
Said machines would have apps that were using the machine-wide oracle drivers silently locking them and preventing the oracle driver-installer from working its magic when would attempt to upgrade/reinstall said oracle-drivers. The sneakiest "app" would be websites running in IIS and the like because these apps essentially auto-start on reboot. To counter this we do the following:
If this doesn't work then rinse repeat until the OLE DB drivers work. Hope this helps someone out there struggling to figure out what's going on.