- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Getting Power BI Desktop to work with Oracle ODAC AFTER version 12.2
Power BI Desktop needs the Oracle data providers installed at the machine level. After ODAC 12.2, Oracle removed this option from the install, which means out of the box Oracle 18.x and 19.x ODAC installs are not seen by Power BI Desktop. I've spent the last 24 hours installing and uninstalling various versions of ODAC trying to get them to work with Power BI Desktop.
I'm limiting this to the 64bit install (Because that is what I have) and .NET 4.0, becuase that is what Power BI Desktop needs.
I can now report I have ODAC 19.3 working with Power BI Desktop (May 2021). This is thanks to Google and a lot of digging around. I've put a link to the original article I found that helped me get the data providers installed, as this was not my own work! (Power BI Github comment ), I'm just documenting it here for others.
- You need to match the 32/64 bit version of the Oracle ODAC install to the version of Power BI Desktop you have installed. You can find this by starting up Power BI Desktop and clicking Help->About.
- You will need an account with the Oracle website to download the 64-Bit 19.3 ODAC installer
- Unzip the file into a directory with a short name and no spaces in the path. The Oracle installer hates spaces and deep directories.
- Run the Setup.exe with Administrator privileges. Other than selecting the oracle base directory and possibly changing the path for the install, you shouldn't need to alter any other settings. If youdo not have a thsnames file, it will prompt you to create a first entry for one.
- After the ODAC install completes, start an Administrator Command prompt window and navigate to the ODAC install directory.
- Navigate to odp.net\bin\4
NOTE: Look in c:\windows\microsoft.net\framework64 to see the correct versions for .net there should be a v4.0.xxxx folder use these strings as frameworkversion below. In my case it was 4.0.30319.
You will need to run:
OraProvCfg.exe /action:gac /providerpath:"Oracle.DataAccess.dll"
OraProvCfg /action:config /force /product:odp /component:dbproviderfactory /frameworkversion:v4.0.30319 /providerpath:Oracle.DataAccess.dll
7. One last thing, from the main install directory take a copy of the oraons.dll and copy it into the bin directory.
Having done the above I was able to start Power BI Desktop and connect to an Oracle data source.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks bro!
I was two days trying to put a dashboard to work in a vm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had similar issue after migrating on-premise gateway to a new server, I followed below steps.
Installed Oracle Client for Microsoft Tools https://download.oracle.com/otn_software/odac/Oracle-Client-for-Microsoft-Tools.exe and copied the tnsnames.ora file which solved my issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you have to run these as well?
OraProvCfg.exe /action:gac /providerpath:"Oracle.DataAccess.dll"
OraProvCfg /action:config /force /product:odp /component:dbproviderfactory /frameworkversion:v4.0.30319 /providerpath:Oracle.DataAccess.dll
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'm trying to config but when I run
OraProvCfg /action:config /force /product:odp /component:dbproviderfactory /frameworkversion:v4.0.30319 /providerpath:Oracle.DataAccess.dll
showme this error:
C:\oracle\odp.net\bin\4>OraProvCfg /action:config /force /product:odp /component:dbproviderfactory /frameworkversion:v4.0.30319 /providerpath:Oracle.DataAccess.dll
ERROR: File not found: oracle.dataaccess.dll?
Error: Referencia a objeto no establecida como instancia de un objeto.
Can you help me?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I ran into the same error - what i found I had to do was put quotes around "Oracle.DataAccess.dll", exactly like he did with the first call to OraProvCfg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was still geting the error, even when utilizing quotes. i.e.
OraProvCfg /action:config /force /product:odp /component:dbproviderfactory /frameworkversion:v4.0.30319 /providerpath:"Oracle.DataAccess.dll"
I instead used a variable to define the current path of Oracle.DataAccess.dll and then used that which seemed to work:
set oracle19cprovider="C:\oracle\ora19c64\client\ODP.NET\bin\4"
OraProvCfg.exe /action:gac /providerpath:'%oracle19cprovider%\Oracle.DataAccess.dll'
OraProvCfg /action:config /force /product:odp /component:dbproviderfactory /frameworkversion:v4.0.30319 /providerpath:'%oracle19cprovider%\Oracle.DataAccess.dll'
*Note, your location of Oracle.DataAccess.dll may be different than what I am using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you please let me know the steps to uninstall an older version of ODAC?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To uninstall a version of ODAC. I haven't run this, but it should be close.
OraProvCfg.exe /action:ungac /providerpath:"Oracle.DataAccess.dll"
OraProvCfg /action:unconfig /product:odp /component:dbproviderfactory /frameworkversion:v4.0.30319
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I made a slight change but overall it works well, thank you!
set oracle19cprovider="C:\oracle\ora19c64\client\ODP.NET\bin\4"
OraProvCfg.exe /action:ungac /providerpath:'%oracle19cprovider%\Oracle.DataAccess.dll'
OraProvCfg /action:unconfig /product:odp /component:dbproviderfactory /frameworkversion:v4.0.30319 /providerpath:'%oracle19cprovider%\Oracle.DataAccess.dll'
*Note, your location of Oracle.DataAccess.dll may be different than what I am using.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying this on a laptop w/only Oracle 19c as the client. I did all this, still getting Oracle: ORA-12170: TNS:Connect timeout occurred.
Could this be due to ACL's not on this computer?
My TOAD works though - but it is not using the tnsnames.ora on the laptop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Were you ever able to solve this issue? Could you share your solution if so? I have been stuck here for months now 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check your Windows environment variables. Is the Oracle client you are trying to use the first oracle path in the PATH variable? Do you have TNS_ADMIN defined and pointing to a valid tnsnames.ora directory?
If use go to a command prompt and type tnsping <your oracle tnsnames entry>, does it ping correctly?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After all the hours spent trying to solve this issue it was my companies rolled out version of PBI Desktop. It was right in the article I had read 100 times but skimmed over because I have PBI desktop pushed to my machine. I had to have IT remote in to install.
If you downloaded Power BI Desktop from the Microsoft Store, you might be unable to connect to Oracle databases because of an Oracle driver issue. If you encounter this issue, the error message returned is: Object reference not set. This is an issue with how Oracle driver works in Windows UWP Apps. To address the issue, you have to do the following:
- Download Power BI Desktop from the Download Center instead of Microsoft Store.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I got a brand new laptop with a brand new install of Oracle desktop client.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@dramus Thanks ,
which setup.exe are you talking about?Can you please explain?
- Run the Setup.exe with Administrator privileges. Other than selecting the oracle base directory and possibly changing the path for the install, you shouldn't need to alter any other settings. If youdo not have a thsnames file, it will prompt you to create a first entry for one.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ODAC installer. https://www.oracle.com/database/technologies/dotnet-odacdeploy-downloads.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@dramus Thanks. I have already downloaded. Please see the below screen shot. I am confused about your STEP 4 which setup.exe we need to RUN under which folder?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the top level of the folder that you unzipped the download to, there should be 2 folders and 2 files. The 2 files are setup.ini and setup.exe, you need to run the setup.exe file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@dramus thanks and appreciate your patience, the only contents i see under the exracted files are in the snapshot. I do not see any setup.exe files.
Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Microsoft Fabric Community Conference 2025
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
Subject | Author | Posted | |
---|---|---|---|
05-28-2024 04:07 PM | |||
02-07-2024 12:52 AM | |||
03-06-2024 09:27 AM | |||
05-23-2024 06:03 AM | |||
05-29-2024 01:00 PM |
User | Count |
---|---|
128 | |
81 | |
59 | |
57 | |
43 |
User | Count |
---|---|
184 | |
111 | |
82 | |
66 | |
52 |