This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes problem with jdbc oracle connection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "problem with jdbc oracle connection" Watch "problem with jdbc oracle connection" New topic
Author

problem with jdbc oracle connection

Nelluri srinivas
Greenhorn

Joined: Dec 31, 2005
Posts: 1
hi
i have problem with jdbc connection.iam able to compile the program but iam unable to run it.i have set the classpath to classes102.zip,classes111.zip.and ihave also given correct sid inDriverManager.getConnection.iam getting the following error
1)Exception in thread main java.sql exception.Connection refused<Description=<Tmp=><VSNNum=135286.............
at oracle.jdbc.access.DbError.check.error

2)when i have set classpath to classes111.jar ,classes12.jar iam getting the following error when i run the program
Exception in thread main java.sql exception.IO Exception:the N/w Adapter could not establish the connection
at oracle.jdbc.access.DbError.throw sql exception

plz help me to solve the above problems
bye
srinivas
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

They are all fairly old oracle drivers. Check the Oracle JDBC Driver download pge and try a newer one matching your database.

Dave
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: problem with jdbc oracle connection
 
Similar Threads
when i execute a jar file I get OracleDriver error
jdbc connection !!
Cannot find org.apache.commons.javaflow
JDBC-sql server Run time error
Problems with Jasper Reports