Your connection string should be in the form:
 
 Connection conn = DriverManager.getConnection(
"jdbc:oracle:oci8:@"[database_server_name:port number:database_name]",
"[userId]", "[password]");
 
Cheers!
Mark
-----Original Message-----
From: pallav [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 12:20 AM

Hi..I have a servlet which needs to access an Oracle Database using JDBC..i installed the driver for it...and it works for local applications...my url string is jdbc:oracle:oci8:@
if i use that in the servlet i dont get any connection...what url should i use? i'm using oracle Personal Edition 8.1.7..do i need to setup some kind of listener from oracle??
thanx for any help..
pallav.

Reply via email to