aspose file tools*
The moose likes JDBC and the fly likes Problem in Oracle.jdbc.       driver.OracleDriver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem in Oracle.jdbc.       driver.OracleDriver" Watch "Problem in Oracle.jdbc.       driver.OracleDriver" New topic
Author

Problem in Oracle.jdbc. driver.OracleDriver

Varsha Pardeshi
Ranch Hand

Joined: Feb 27, 2006
Posts: 30
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

Joined: Sep 16, 2004
Posts: 3636
Post the error that you are getting.

Are you using any application server?


My blood is tested +ve for Java.
Varsha Pardeshi
Ranch Hand

Joined: Feb 27, 2006
Posts: 30
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

Joined: Sep 16, 2004
Posts: 3636
Varsha, replace e.getMessage() with e.printStackTrace() and send the newly generated error message.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61202
    
  66

Moved to the JDBC forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in Oracle.jdbc. driver.OracleDriver