March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I have connected to our on-prem Oracle database from my Power BI desktop and run serval queries yesterday without issues. However, today when I tried to add another new query I got this ORA-12154 error. I have verified that:
1, I am on our organization's network
2, I have the most up to date tnsora file mapped
3, I have entered the correct credentials for the Oracle instance.
I am wondering why the connection works for my other queries but not for this one. I am pulling the data from the same table and the only difference is the the filters. Any hints would be appreciated!
Thanks
Thanks for the reply from Sahir_Maharaj , please allow me to provide another insight:
Hi @ELIU ,
These errors might occur if the Oracle tnsnames.ora database connect descriptor is misconfigured, the net service name provided is misspelled, or the Oracle database listener is not running or not reachable, such as a firewall blocking the listener or database port. Be sure you are meeting the minimum installation prerequisites.
Ensure that the oracle client is installed correctly and that the strings are correct, verify that the tnsnames.ora file is configured correctly and that you are using the correct net_service_name. also make sure that the net_service_name is the same between the computer that is using Power BI Desktop and the one that is running the Gateway,. Specify the SID using the following format: ServerName/SID.
Refer to:
Manage your data source - Oracle - Power BI | Microsoft Learn
This is the related document, you can view this content:
Solved: New Error ORA-12154 TNS:could not resolve the conn... - Microsoft Fabric Community
Solved: Connect to Oracle Error - ORA-12154: TNS:could not... - Microsoft Fabric Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @ELIU,
Try connecting to the Oracle database using another tool (like SQL*Plus, SQL Developer, or a similar database tool) using the same TNS entry to determine if the issue is specific to Power BI or a more general connectivity issue.
I would also recommend reviewing the Oracle logs or enable Oracle Net tracing to get more detailed error information. This might provide an insight into why the connection is failing.
Hope this helps.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |