Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The Network Adapter could not establish the connection.

 
Irene Db
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic