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
XaviOV
Helper V
Helper V

Trouble connection to Oracle

Hello,

 

I want to connect to a database, but when I tried to connect I get this message -> Oracle: ORA-12170: TNS: Connection timed out.

 

When I put the server I have put mlxsga I already installed Oracle version 12.2.0, and the Network / Admin file there are two .txt (sqlnet and tsname).


File sqlnet:
SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

File tsname:
MLXSGA =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = xx.xx.xx.xx)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = mlxsga)
)
)


How can I connect to this database??

 

Thanks!!

 

Xavi

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @XaviOV 

 

The problem is that the Oracle service is running on a IP address, and the host is configured with another IP address.

You can reference the sovled question:oracle - ORA-12170: TNS:Connect timeout occurred - Stack Overflow

How to Resolve ORA-12170: TNS:Connect timeout occurred - Ed Chen Logic

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @XaviOV 

 

The problem is that the Oracle service is running on a IP address, and the host is configured with another IP address.

You can reference the sovled question:oracle - ORA-12170: TNS:Connect timeout occurred - Stack Overflow

How to Resolve ORA-12170: TNS:Connect timeout occurred - Ed Chen Logic

If it doesn’t solve your problem, please feel free to ask me.

 

Best Regards

Janey Guo

 

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

amitchandak
Super User
Super User

@XaviOV , Make sure the driver is installed, mentioned on this page

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

 

And path of driver is added to windows environment variable

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.