View Single Post
Old 25-03-08, 05:26 PM   #4 (permalink)
writetokaruna@yahoo.com
Member
 
Join Date: Mar 2008
Posts: 32
Thanks: 0
Thanked 1 Times in 1 Posts
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 1 writetokaruna@yahoo.com is on a distinguished road
Re: JDBC Question.Plese answer it....

There are three ways of loading jdbc driver

one is:
Class.forName()

2 is:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection con = DriverManager.getConnection ("jdbc:oracle:thin:@127.0.0.1:1521:oracleinstancename","uname","pwd");

3 is:

At Runtime
java -Djdbc.drivers=drivername Programname

Thanks.

Regards,

R.P.Karunakaran
writetokaruna@yahoo.com is offline   Reply With Quote