Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Oracle.jdbc. driver.OracleDriver

 
Varsha Pardeshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I m not able to connect to oracle using oracle drive.
Oracle version Oracle 9i

I had wriiten like this:

try
{
Class.forName("Oracle.jdbc.driver.OracleDriver");
url = "jdbc racle:thin:@IPaddressofOracleServer:1521:SID";
con = DriverManager.getConnection(url,"uname","upass");
System.out.print("got connected");
}
catch(Exception e)
{
System.out.println("Unable to execute :"+ e.getMessage());
}

Also i have added the classes12.jar & classes12.zip in the classpath. Still getting the following error

Unable to execute racle.jdbc.driver.OracleDriver

what else setting has to be done for oracle jdbc driver?

If I use jdbc dbc driver it is working finely.

thanks in advance.

Regards,
Varsha
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the error that you are getting.

Are you using any application server?
 
Varsha Pardeshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Chetan Parekh:
Post the error that you are getting.

Are you using any application server?


application server - Tomcat 4.1.31
oracle server - oracle 9i

error:
e.Message()which is catch by Exception e shows the following line

Oracle.jdbc.driver.OracleDriver
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Varsha, replace e.getMessage() with e.printStackTrace() and send the newly generated error message.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the JDBC forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic