Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rodneyc8063_1
Helper V
Helper V

Connect to Oracle Error - ORA-12154: TNS:could not resolve the connect identifier specified

So this is a bit of an odd question

 

I am trying to connect from Power BI desktop to an Oracle database

 

I am able to ping my Oracle database no problem

 

I can connect via my SQL tool TOAD or SQL Developer no problem to the Oracle database

 

When I try to connect to the Oracle database when Power BI asks for the "Server" I put in <servername>:PORT/<servicename> and I can connect no problem

 

BUT

 

When I try to simply put in the <servicename> it doesnt work

 

So for example in my tnsnames file I have the following

 

DEV=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = dev.ca)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = 19DEV)
)
)

 

So when I simply put in "DEV" into the server text box it doesnt work and times out. When I put in DEV/19DEV then it seems to work

 

So I just wanted to clarify and confirm when it says "Server" does it explictly mean exactly the server/servicename?

 

I have some Oracle folks here that are a bit confused as to why they cant just use "DEV" since its defined in their tnsnames.ora file

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@rodneyc8063_1 That is my understanding yes. The official documentation agrees:

In the Oracle database dialog that appears, provide the name of the Server, and select OK. If a SID is required, specify it by using the format: ServerName/SID, where SID is the unique name of the database. If the ServerName/SID format doesn't work, use ServerName/ServiceName, where ServiceName is the alias you use to connect.

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-connect-oracle-database



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
theov
Advocate III
Advocate III

Hello, 

I'd make sure the ora client is installed properly, the string is correct and finally tnsnames.ora is up to date. This video might helps as well:

https://www.youtube.com/watch?v=EpeJrO5tHDc

Anonymous
Not applicable

Hi @rodneyc8063_1,

I think these should more relate to oracle configurations, perhaps you can post this to oracle related forum or contact to the oracle support to know more about these connection string and lister definitions.

Regards,

Xiaoxin Sheng

Greg_Deckler
Community Champion
Community Champion

@rodneyc8063_1 That is my understanding yes. The official documentation agrees:

In the Oracle database dialog that appears, provide the name of the Server, and select OK. If a SID is required, specify it by using the format: ServerName/SID, where SID is the unique name of the database. If the ServerName/SID format doesn't work, use ServerName/ServiceName, where ServiceName is the alias you use to connect.

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-connect-oracle-database



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.