Oracle 10g jdbc driver knowledge

From oracle8 to oracle10, the driver packages in the JDBC directory are different. After reading the oracle documentation, I learned about their uses. I believe that everyone is sometimes confused, so write it out and share it.

These are the names of the driver packages under oracle10g and their functions, and other versions of oracle are basically similar.

classes12.jar (1,417,089 bytes) - used under JDK 1.2 and JDK 1.3

classes12_g.jar (1,794,418 bytes) - Same as classes12.jar, but the classes in the package are compiled with "javac -g" command, including debug information.

classes12dms.jar (1,424,743 bytes) - Same as classes12.jar, but contains some additional code to support Oracle Dynamic Monitoring Service.

classes12dms_g.jar (1,802,368 bytes) - Same as classes12dms.jar, but the classes in the package were compiled with "javac -g", including debug information.

ojdbc14.jar (1,352,918 bytes) - used under JDK 1.4

ojdbc14_g.jar (1,691,855 bytes) - Same as ojdbc14.jar, but the classes in the package were compiled with "javac -g" and include debug information.

ocrs12.jar (54,030 bytes) - introduces javax.sql.rowset interfaces, such as CachedRowSet and WebRowSet. Can be used under JDK 1.2, 1.3, and 1.4.

orai18n.jar (5,018,093 bytes) - NLS (National Language Support) classes used under JDK 1.2, 1.3 and 1.4. This jar package replaces the old nls_charset jar/zip file.

As for their specific addresses:
there are in the oracle installation directory, the JDBC directory, the official website of oracle, and the official website of sun.
Download address: http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index .html

--------------------------------------------------------------------

When using JDBC programming, it is necessary to connect to the database and import the JAR package. The import method is 
1. Right-click the project to import the jar package, click properties 
2. Select java build path on the left, and select libraries on the right 
3. Select add External jars 
4. Select the one under the path of Oracle, for example,  ojdbc14.jar under 
D:\Oracle\app\oracle\product\10.2.0\server\jdbc\lib  after confirming.



Guess you like

Origin blog.csdn.net/icanlove/article/details/44079751