aspose file tools*
The moose likes JDBC 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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The Network Adapter could not establish the connection.