Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DriverManager.getConnection

 
Shreya Menon
Ranch Hand
Posts: 285
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am facing a strange problem with drivermanager.getconnection.
I am trying to connect to the Oracle in my machine and it is not happening.
Previously, say in the last week I was getting the connection and I was working also.
But today no connection is coimg.
Moreover
the error is Network Adapter couldn't establish the connection.
Any idea...
Thanks,
Maya
 
Michael Fitzmaurice
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are u able to connect to the db in question normally (i.e. without going via Java/JDBC)? Can u see the target machine from your machine?
I don't think the problem is with the code using DriverManager.getConnection, I think it is some kind of local network error.


------------------
"One good thing about music - when it hits, you feel no pain"
Bob Marley
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic