This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes IOException while trying to connect to DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "IOException while trying to connect to DB" Watch "IOException while trying to connect to DB" New topic
Author

IOException while trying to connect to DB

Imthiaz Ahmed
Greenhorn

Joined: Mar 03, 2008
Posts: 1
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.


Thanks & Regards,<br />Imthiaz Ahmed
Prabhu Sathya
Greenhorn

Joined: Jul 13, 2006
Posts: 8
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 .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IOException while trying to connect to DB
 
jQuery in Action, 3rd edition