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
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply 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: 2343

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
ITIL foundation
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Network adapter couldn't establish connection with the database
 
Similar Threads
Problem connecting to database
SQLException : The Network Adapter could not establish connection
The Network Adapter could not establish the connection in jdbc connection
Network could not establish connection in jdbc
Connection problem with oracle