Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> JDBC Driver Connection problems

JDBC Driver Connection problems

From: <jove1111_at_my-deja.com>
Date: Thu, 02 Sep 1999 16:30:32 GMT
Message-ID: <7qm8n9$noe$1@nnrp1.deja.com>

  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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US