This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
type 4 is nothing but thin driver ifyou use oracle the same procedure difference use u have to use the following driver Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con=DriverManager.getConnection("jdbcracle:thin:@localhost:1521rcl","scott","tiger");
I used the following piece of code: ============================================================ Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con= DriverManager.getConnection("jdbcracle:thin:@connectionstring:1521rcl","username","password");
============================================================ where connectionstring is the connection string of the Oracle 9i database and username and password are Oracle userid and password.