This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
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