Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDBC driver for Java 7

I want to know that which JDBC driver is suitable for Java 7 i.e. Java Version 1.7.0_01 and for Oracle 10g/11g Database?

like image 604
Bahirji Naik Avatar asked Dec 21 '11 12:12

Bahirji Naik


2 Answers

A quick search for "oracle jdbc driver" finds this page on Oracle's website, where you can download the drivers for various versions of Oracle. After selecting a database version, the links take you to a page where you can select the appropriate type of driver to download based on the version of Java you're using - pick the latest one available (even if it only says "for JDK 1.4 and 1.5" or "JDK 1.6").

like image 54
Jon Skeet Avatar answered Oct 04 '22 19:10

Jon Skeet


"Java prides itself on backward compatibility and the older version of the drivers will work on Java 7."

The use of term "backward compatibility" in this case is just wrong, as the driver for Java 1.7 would be compatible with Java 1.6, but not the other way round.

Anyhow, the implementation of new features of Java 1.7 such as java.sql.Connection implementing AutoCloseable (new interface in 1.7), I would expect a suitable Driver.

like image 32
Fatos Avatar answered Oct 04 '22 18:10

Fatos