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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Super User
Super User

@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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
theov
Advocate II
Advocate II

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

v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Greg_Deckler
Super User
Super User

@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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.