tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kurt, Oliver" <Oliver.K...@opendata.de>
Subject AW: JDBC connecting to Oracle
Date Mon, 26 Feb 2001 15:25:17 GMT
that depends if you use a thick oracle driver or the thin oracle driver.

for the thin-driver the URL is:

jdbc:oracle:thin:@<host>:<port>:<SID>

example:
jdbc:oracle:thin:@s_safedb1:1521:sf01

for the thick-driver:
jdbc:oracle:oci8:@<tns-listener-name>

see@ technet.oracle.com at the documentation for Oracle 8i and JDBC
documentation....

-----Urspr√ľngliche Nachricht-----
Von: mike thomas [mailto:michael.s.thomas@worldnet.att.net]
Gesendet: Montag, 26. Februar 2001 19:20
An: tomcat-user@jakarta.apache.org
Betreff: JDBC connecting to Oracle


Hi all

Does anyone out there know the syntax for
connecting a JSP to an Oracle database using JDBC?
What I am really after is how do I set the
database name, user name and password so that JSP
can set up the connection. So far I have this :-

  Connection con =
DriverManager.getConnection("??");

Apologies if this is off the topic for this group

Thanks

Michael Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-user-help@jakarta.apache.org

Mime
View raw message