OJDBC driver version difference [ojdbc14.jar, the difference between ojdbc5.jar and ojdbc6.jar]


When using the Oracle JDBC driver, did you solve some problems by replacing different versions of the Oracle JDBC driver? The most commonly used ojdbc14.jar has multiple versions, and classes12.jar has multiple versions, do you know?

Connection type:
1. JDBC OCI: oci is the abbreviation of oracle call interface, this driver is similar to the traditional ODBC driver. Because it requires Oracle Call Interface and Net8, it needs to install client software on the machine running the JAVA program using this driver. In fact, it mainly uses the oci and server configuration provided by dll in the orcale client.
2. JDBC Thin: Thin means for thin client. This driver is generally used in JAVA programs running in WEB browsers. It does not communicate through OCI or Net8, but through Java sockets. It is a driver implemented by pure java, so there is no need to install orcale client software on the client machine using JDBC Thin, so it has good portability. in web development.

-------------------------------------------------- ----------------------------- Oracle JDBC driver 8.1.7 version classes111.zip
released with Oracle 8i for JDK 1.1.x classes12.zip applies to JDK 1.2.x only zip file, no jar file.





-------------------------------------------------- ----------------------------- Oracle JDBC driver 9.2.0 version classes111.jar
released with Oracle 9i for JDK 1.1.x classes12.jar is suitable for JDK 1.2 and JDK 1.3 (my project environment is JDK1.6, oracle 10g, windows, no problems have been found with this) ojdbc14.jar is suitable for JDK 1.4 classes111.zip is suitable for JDK 1.1.x classes12. zip is suitable for JDK 1.2.x ***_g.jar Just use javac -g to compile, generate all debugging information, and the rest are the same. New features: 1. The driver of the Thin connection type provides direct support for BFILE, BLOB, and CLOB. Is to call PL/SQL to achieve. 2. Support JDBC 3.0 features 3. ojdbc14.jar supports JDK 1.4 4. ojdbc14.jar supports Savepoint 5. PreparedStatement can be used in different connection pools, which is an important performance improvement The naming adopts ojdbc<jdk ver>.jar format, the previous jar file name remains unchanged




















-------------------------------------------------- -----------------------------
Oracle JDBC driver version 10.2 classes12.jar released with Oracle 10.2 is

available for JDK 1.2 and JDK 1.3.
ojdbc14.jar is suitable for JDK 1.4 and 5.0
***_g.jar is just compiled with javac -g, all debugging information is generated, other is the same

Features :
1. Fully supports JDK 1.5
2. Supports JDBC 3.0


------- -------------------------------------------------- ----------------------
Oracle JDBC driver version 11.1 released with Oracle 11.1

ojdbc5.jar: for jdk5
ojdbc6.jar: for jdk6 (if you use jdk1.5, you can't use this driver)
***_g.jar is just compiled with javac -g to generate all the debugging information, the other is the same




New features:
1. ojdbc6.jar: support JDK6, support JDBC 4.0, new java The .sql.SQLXML type is not supported.
    ojdbc5.jar: Full support for using JDK5 and JDBC 3.0.
2. It is recommended to use the oracle.jdbc.OracleDriver class, and the oracle.jdbc.driver.OracleDriver is not recommended. oracle.jdbc is recommended for every release since 9.0.1.
3. j2se 1.2, 1.3, 1.4 are no longer supported. 11R1 no longer includes these versions of jars and zips, if you still use these versions, you can continue to use 10gR2's jdbc.
4. 11gR1 Thin driver supports AES encryption algorithm, SHA1 hash algorithm, RADIUS, KERBEROS, SSL authentication mechanism.
5. Supports ANYDATE and ANYTYPE types. These two types have been introduced since 9i. Before 11R1, programmers could only operate through PL/SQL.
6. Advanced queue support. The 11R1 provides a high-performance interface to access the AQ.
7. Support database change notification.
8, Thin and OCI database startup and shutdown. 11R1 provides such a method to start and shut down the database.
9. New factory method. Oracle JDBC 11R1 oracle.jdbc.OracleConnection provides factory methods for creating Oracle objects.
Including ARRAY, BFILE, DATE, INTERVALDS, NUMBER, STRUCT, TIME, TIMESTAMP, TIMESTAMP, etc.


-------------------------------------------------- -Generally
speaking, the new version of JDBC driver has strong performance, and many bugs have been found and resolved.
What I encountered was that I used ojdbc14.jar (don't remember which version) to insert 100,000 entries in batches, but only more than 30,000 entries were actually inserted, and the others were lost. After changing ojdbc6.jar, I made a commit to insert 1 million entries in batches. Also OK.

Try to use the same driver as the database version. If there is a bug, try a higher version of the JDBC driver.

If you don't know which version of a jdbc jar package, you can unzip the jar package, and then look for the words "Oracle JDBC Driver version - 10.1.0.2.0" in the META-INF\MANIFEST.MF file to know the version.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326110270&siteId=291194637