• 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!