Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Issues connecting Oracle to Power BI

Hello all,   I currently have OraClinet 11g installed which I use for connecting AQT to Oracle db's. I now have a need to connect Power BI directly to an Oracle db but when I do I get the error the...
  • v-yingjl's avatar
    v-yingjl
    6 years ago

    Hi Anonymous ,

    These errors might occur if the Oracle client either isn't installed or isn't configured properly. If it's installed, verify that the tnsnames.ora file is properly configured and you're using the proper net_service_name. You also need to make sure that the net_service_name is the same between the machine that uses Power BI Desktop and the machine that runs the gateway. 

    Refer this image:

    You might also encounter a compatibility issue between the Oracle server version and the Oracle Data Access Client version. Typically, you want these versions to match, as some combinations are incompatible. For instance, ODAC 12.x does not support Oracle Server version 9.

    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. To address the issue, do one of these steps:

    • Download Power BI Desktop from the Download Center instead of Microsoft Store.

    • If you want to use the version from Microsoft Store: on your local computer, copy oraons.dll from 12.X.X\client_X to 12.X.X\client_X\bin, where X represents version and directory numbers.

     

    Best Regards,
    Yingjie Li

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.