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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Error while connecting with oracle database server in TNS name.

Hi All,

 

This is related to power BI issue. Initially the TNS name for my server connection name was “WORLD” in my local system and it is connecting  the same server name in power BI desktop. But when I am changing my TNS name in the TNS file from “WORLD” to “WORLDDEV” and trying to connect it through “WORLDDEV” as server name in power BI desktop, then the following  issue is coming.

TNS-12545: Connect failed because target host or object does not exist.

 

So can anyone suggest me what should be the solution.

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

Please configure your tnsnames.ora file with the proper information for your database. Power BI Desktop and the gateway go off of the net_service_name defined in the tnsnames.ora file. If the net_service_name isn't configured, you can't connect. The default path for tnsnames.ora is [Oracle Home Directory]\Network\Admin\tnsnames.ora. For more information about how to configure tnsnames.ora files, see Oracle: Local naming parameters (tnsnames.ora).

and also please refer to these blog:

http://logic.edchen.org/how-to-resolve-tns-12545-connect-failed-because-target-host-or-object-does-not-exist/

http://www.dba-oracle.com/t_tns_12545_connect_failed_because_target_host_or_object_does_not_exist.htm

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors