blogs.conchango.com

welcome to the conchango blogging site
Welcome to blogs.conchango.com Sign in | Join | Help
in Search

SSIS Junkie

Conchango are busy and need talented consultants in and around London. Interested? Email me or send me a message

OLE DB: Cannot connect using Microsoft OLE DB Provider for Oracle

I've had a nasty little problem today and thought it was worth sharing.

I've been trying to use the Microsoft OLE DB Provider for Oracle to connect to some Oracle databases but it was failing with the error:

 

"Test connection failed because of an error in initiialising provider. oracle error occurred, but error message could not be retrieved from Oracle".

 

I was able to connect to Oracle instances just fine from normal Oracle client tools but not when using the Microsoft OLE DB Provider for Oracle - so my natural assumption was that there was a problem with my Microsoft Data Access Components (MDAC) install. I downloaded Component Checker to check out my MDAC install but it reported no problems at all - everything was as it should be.

That's when I stumbled upon this blog post: http://mobeen.spaces.live.com/blog/cns!C7EE59ADAEED6598!153.entry. Here the guy states that the problem isn't in MDAC but its in the Oracle client install which can have an incorrect setting in registry key HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\ORACLE_HOME.

I checked out my registry and sure enough I had the same problem. I made the change, attempted connection again and everything worked. Problem solved!! Praise the lord!

 

Anyone wanna complain to Larry for me? :)

 

-Jamie

 

Published 19 September 2006 23:24 by jamie.thomson
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Strange issue connecting to Oracle « Charlie Maitland’s Blog said:

October 10, 2006 19:57
 

Johannes Braunias said:

Praise the Lord … I've found another URL which helped me (similar problem):

http://www.bauerfoto.com/OracleConnectFix_EnvVariable.html (set environment variable ORACLE_HOME to your ora92 directory!

April 11, 2007 11:59
 

Dibyendu said:

I had been working on this defect from morning and didnt have any idea what the problem was.... until I saw your blog. Great Work !!! Thanks

May 11, 2007 21:15
 

Chris said:

Thank you!!! Been looking for a solution for ages ...

July 6, 2007 09:23
 

Terry said:

Wow - I was working on an issue where it seemed like the only resolution was to use the MS OLE DB provider for oracle, and I couldn't get my stupid test connection to work. This fixed the problem. Just as an FYI (if you're dumb like me and don't know how to edit the registry) go to start-->run and type regedit. This will bring up the registry, you can go to the entry listed in this string. Mine originally said C:\oracle\v9201 and I changed mine to C:\Oracle\v92062 and it worked like a charm. Thanks for posting.

July 3, 2008 17:56

Leave a Comment

(required) 
(optional)
(required) 
Submit

This Blog

Syndication

News

Powered by Community Server (Personal Edition), by Telligent Systems