Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> JDBC Driver Connection problems
I'm trying to connect to a database from a servlet.
I would like to use :
Class.forName("oracle.jdbc.driver.OracleDriver");
followed by :
"con=DriverManager.getConnection
("jdbc:oracle:thin:@DBNAME:1533", "user","password");
but I can only use "sun.jdbc.odbc.JdbcOdbcDriver"
followed by :
con = DriverManager.getConnection("jdbc:odbc:DB","User", "Password");
why is that?
the error massage is "could not load driver..."
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Thu Sep 02 1999 - 11:30:32 CDT
![]() |
![]() |