File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Network adapter couldn't establish connection with the database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Network adapter couldn Watch "Network adapter couldn New topic
Author

Network adapter couldn't establish connection with the database

Arun Somasundaram
Ranch Hand

Joined: Jul 25, 2006
Posts: 63
Hi,

I have encountered the below mentioned Exception when I try to run the following code.Here the server is running in a remote system:

SQLException : IO exception network adapter couldn't establish connection with the database





What can be done to resolve this problem?


Arun.V.Somasundaram
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2503
    
    8

Hi Arun,

Your connection string is jdbc:oracle:thin:@orcl:1526:orcl","scott","tiger
Is this correct according to Oracle specs?
is "orcl" the name of the database server?
Can you ping "orcl"?

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Network adapter couldn't establish connection with the database