Your JDBC url is
malformed
A correct url for Oracle JDBC driver should look
like :
jdbc:oracle:oci8:@db
where 'db' is your database
name
-----Message d'origine-----Hi!,
De : Gaurav Kishore <[EMAIL PROTECTED]>
À : [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date : mercredi 2 juin 1999 07:30
Objet : JDBC via Servlet!I am trying to run a servlet on Apache JServ on Unix. The servlet tries to connect to Oracle 7.x (which is on a different server) using JDBC drivers.
I have the following code in the servlet :
con = DriverManager.getConnection("jdbc:oracle:xxx.yyy.com:dbname","username","pwd");
Do I need to mention the port no. of the database server also, because though the code is compiling without an error but while running the servlet I am getting "Internal Server Error".
Any help is appreciated.
Thanks in advance
Gaurav
