Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with jdbc oracle connection

 
Nelluri srinivas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are all fairly old oracle drivers. Check the Oracle JDBC Driver download pge and try a newer one matching your database.

Dave
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic