Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Network adapter couldn't establish connection with the database

 
Arun Somasundaram
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Jan Cumps
Bartender
Posts: 2588
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic