It's not a secret anymore!
The moose likes JDBC and Relational Databases 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "DriverManager.getConnection" Watch "DriverManager.getConnection" New topic


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.
the error is Network Adapter couldn't establish the connection.
Any idea...
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
I agree. Here's the link:
subject: DriverManager.getConnection
It's not a secret anymore!