This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IOException while trying to connect to DB  RSS feed

 
Imthiaz Ahmed
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm getting the following IOException while trying to connect to the DB from my web application using connection pooling.
Io exception: The Network Adapter could not establish the connection

But, am able to connect to the same DB from my Eclipse using the same following oracle thin driver statement.
jdbc racle:thin:@<server>:1521:<instance name>

I've also tried replacing the server name with ip and also with fully qualified dns name. But nothing worked. Please help.
 
Prabhu Sathya
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Check whether the Database server is not running on MTS Mode. If yes,then you have to pass the jdbc URL to use dedicated connection explicitly .
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!