aspose file tools
The moose likes JDBC and Relational Databases and the fly likes The Network Adapter could not establish the connection. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "The Network Adapter could not establish the connection. " Watch "The Network Adapter could not establish the connection. " New topic
Author

The Network Adapter could not establish the connection.

Irene Db
Greenhorn

Joined: Jan 31, 2002
Posts: 13
I am using Oracle db and thin driver.
I got this exception:
SQLException: The Network Adapter could not establish the connection.
What it means?
Thank you.
Iryna.
Javaoops
Ranch Hand

Joined: Jun 21, 2001
Posts: 57
check that your listener.ora and tnsnames.ora files have the correct and matching settings for your database server. AND if the db server is on a different machine, (and you're on tcp/ip network) ensure that your HOSTS file has the machine ip address in there so that the oracle drivers can tell to which machine your connection string is referring.
hope this helps.

Rajan
 
Don't get me started about those stupid light bulbs.
 
subject: The Network Adapter could not establish the connection.