wood burning stoves 2.0*
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
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: 2491
    
    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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Network adapter couldn't establish connection with the database
 
Similar Threads
The Network Adapter could not establish the connection in jdbc connection
SQLException : The Network Adapter could not establish connection
Network could not establish connection in jdbc
Problem connecting to database
Connection problem with oracle