Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Can't Connect My Access Database to Oracle Backend with Oracle Provider

Posted on 2007-07-24
Medium Priority
Last Modified: 2013-12-25
I downloaded and installed the oracle client software ass well as the data access components. But, I can only seem to connect to my Oracle DB with the Microsoft Provider and ODBC Driver.

As near as I can tell, my connection string is fine. If I use msdaora as the provider everything works flawlessly. But when I use OraOLEDB.Oracle.1 as my provider (or try to get an ODBC connection) I get the error message "Oraoledbpus10.dll: The specified module can not be found."  I can find it. It's right in the BIN folder of the home!

Here's the thing that gets me: I created a UDL and set up all the variables there. I tested the connection and it worked just fine. I try to run it from Access and *BOOM* I get the aforementioned error.

In Access, Im just using

Dim Conn and New ADODB.Connection

Conn.open "my connection string"

Here's my string (I replaced actual values with <value> below)

 Provider=OraOLEDB.Oracle.1;Password=<password>;User ID=<userid>;Data Source=<server>:<port>/<database name>
Question by:jdcollins21

Accepted Solution

PC_Rob earned 2000 total points
ID: 19559448

Try adding the folder where that Oracle DLL lives to your Windows Path:

Right Click My computer, Properties, Advanced Tab, Environment Variables button, Change your PATH statement to include the full path to your dll folder c:\oracle\bin or whatever yours is.



Author Comment

ID: 19559683
I went to include my path and it was already there. I also had a user PATH variable pointing to a folder. I got rid of it and now everything's right as rain. Thank's PC_Rob...you're a gentleman and a scholar.
LVL 65

Expert Comment

ID: 19559689
Have you got a TNSNames entry setup? eg FRED, when u use MSDAORA u could try just using that instead of ODBC

    adoConn.Provider = "MSDAORA"
    adoConn.Open "FRED.WORLD", "userid", "pswd"

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
A Case Study of using the Windows API to provide RS232 communications capability in Access without the use of Active-X controls.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question