Re: JDBC connection.
Date: Tue, 07 Nov 2000 17:28:31 GMT
Message-ID: <8u9e3i$ntd$1_at_nnrp1.deja.com>
malini,
I don't know if this is what you're asking, but here's example code to get a jdbc connection. We don't use any Oracle-cartridge stuff.
Getting a connection:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver ());
Connection conn = DriverManager.getConnection(dbURL, dbUser, dbPassword); return conn;
As for configuration, you need to
1) install the jdbc driver. We use oracle-jdbc-111.zip
2) Set your classpath correctly so that it can find the jdbc driver.
Example (note the jdbc zip file in the class path):
java -classpath "D:\J2SDKee1.2.1
\servlet.jar;d:/jrun/lib/jsp.jar;classes/LCMother.jar;classes;classes/or
acle-jdbc-111.zip;." com.neodesic.lcm.UserManager
This, I believe, is all you need.
email me if you have any questions.
bill milbratz
neodesic
evanston il usa
In article <3A07EBB8.9A4DC16D_at_ford.com>,
Malini Gungabissoon <mgungabi_at_ford.com> wrote:
> can anybody please help me out there in configuring my JDBC
connection..
> i have an oracle 8.0.5 as well as an Oracle 8i database, and i've been
> saddled with the responsibility of establishing a connection between
the
> databases and the java programs as developed on the team...
>
> do i need to worry about catridges or is this entirely unnecessary..?
>
> can anybody help me ..
>
> Thanks in anticipation
> Williams
>
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Nov 07 2000 - 18:28:31 CET