This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes DriverManager.getConnection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DriverManager.getConnection" Watch "DriverManager.getConnection" New topic
Author

DriverManager.getConnection

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
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

Joined: Aug 22, 2001
Posts: 168
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


"One good thing about music - when it hits, you feel no pain" <P>Bob Marley
 
Consider Paul's rocket mass heater.
 
subject: DriverManager.getConnection