Perhaps you should consult the documentation that came with your
Oracle JDBC drivers?  I do know that there is an example of this in there.

        There is a method in DriverManager getConnection(url, username,
password), so I believe it would be something like
getConnection("jdbc:oracle:instance", "scott", "tiger").  (I'm not 100% sure
about the jdbc:oracle part, its been a while)


        Randy

-----Original Message-----
From: mike thomas [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 1:20 PM
To: [EMAIL PROTECTED]
Subject: 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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to