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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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