Search code examples
oraclevbaexcelms-officeoraoledb

error 3706 provider cannot be found. it may not be properly installed


All.

I have used a DLL approach explained on How to securely store Connection String details in VBA

This code is running very well on windows 10 64 bit and MS Office 64 bit. But same copy of the files i am not able to use on Wndows 8.1 Pro and MS Office 64 bit.

DLL generated is converted to host machnines environment by using

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm c:\windows\syswow64\OraConnection.dll /tlb /codebase

But still same error i am facing. About environment variables care has been taken. My Connection string is

"Provider=OraOLEDB.Oracle; Data Source = ;  User ID =; Password=";

Solution

  • In the Succesfull machine i was using Release 12.2.0.1.0 for ODAC 12.2c Release 1 as oracle client.

    But saw a latest version of the oracle client as 64-bit ODAC 12.2c Release 1 (12.2.0.1.0) for Windows x64 which was released on 1st June 2017.

    Installed the same. And my error was resolved. When i observed system environment variables i saw few things added into it. E:\app\client\Admin\product\12.2.0\client_1;E:\app\client\Admin\product\12.2.0\client_1\bin;C:\Users\Admin\Oracle\;

    I dont know actually what they did. But error was resolved.

    Can anybody throw highlight on this?