Oracle驅動classes12.jar 與ojdbc14.jar的區別
簡單的說,如果使用jdk1.2和jdk1.3就使用classes12.jar;如果使用的jdk1.4和jdk1.5的,就選用ojdbc14.jar。更加詳細的Oracle官方有說明。
以下是Oracle JDBC官方文件的說法:
也就是隨便翻譯一下就理解了。
JDBC Thin for All Platforms
classes12.jar (1,600,090 bytes) - for use with JDK 1.2 and JDK 1.3
在低階JDK版本1.2與1.3中使用的驅動,雖然實際上在1.4,1.5中使用大部分情況也是OK的
classes12_g.jar (2,044,594 bytes) - same as classes12.jar, except that classes were compiled with "javac -g" and contain some tracing information.
新增了編譯除錯資訊的classes12.jar
classes12dms.jar (1,607,745 bytes) - same as classes12.jar, except that it contains additional code`to support Oracle Dynamic Monitoring Service.
新增了支援Oracle動態檢測服務的classes12.jar
classes12dms_g.jar (2,052,968 bytes) - same as classes12dms.jar except that classes were compiled with "javac -g" and contain some tracing information.
新增了支援Oracle動態檢測服務與編譯除錯資訊的classes12.jar
ojdbc14.jar (1,545,954 bytes) - classes for use with JDK 1.4 and 1.5
在高階JDK版本1.4與1.5中使用的驅動
下面三個同classes12.jar的情況
ojdbc14_g.jar (1,938,906 bytes) - same as ojdbc14.jar, except that classes were compiled with "javac -g" and contain some tracing information.
ojdbc14dms.jar (1,553,561 bytes) - same as ojdbc14.jar, except that it contains additional code`to support Oracle Dynamic Monitoring Service.
ojdbc14dms_g.jar (1,947,136 bytes) - same as ojdbc14dms.jar, except that classes were compiled with "javac -g" and contain some tracing information.
orai18n.jar (1,645,114 bytes) - NLS classes for use with JDK 1.2, 1.3, 1.4, and 1.5. This jar file replaces the old nls_charset jar/zip files.
ons.jar (48,492 bytes) - for use by the pure Java client-side Oracle Notification Services (ONS) deamon.
demo.tar (604,160 bytes) or demo.zip (529,267 bytes) - contains sample JDBC programs. ......
也就是隨便翻譯一下就理解了。
JDBC Thin for All Platforms
classes12.jar (1,600,090 bytes) - for use with JDK 1.2 and JDK 1.3
在低階JDK版本1.2與1.3中使用的驅動,雖然實際上在1.4,1.5中使用大部分情況也是OK的
classes12_g.jar (2,044,594 bytes) - same as classes12.jar, except that classes were compiled with "javac -g" and contain some tracing information.
新增了編譯除錯資訊的classes12.jar
classes12dms.jar (1,607,745 bytes) - same as classes12.jar, except that it contains additional code`to support Oracle Dynamic Monitoring Service.
新增了支援Oracle動態檢測服務的classes12.jar
classes12dms_g.jar (2,052,968 bytes) - same as classes12dms.jar except that classes were compiled with "javac -g" and contain some tracing information.
新增了支援Oracle動態檢測服務與編譯除錯資訊的classes12.jar
ojdbc14.jar (1,545,954 bytes) - classes for use with JDK 1.4 and 1.5
在高階JDK版本1.4與1.5中使用的驅動
下面三個同classes12.jar的情況
ojdbc14_g.jar (1,938,906 bytes) - same as ojdbc14.jar, except that classes were compiled with "javac -g" and contain some tracing information.
ojdbc14dms.jar (1,553,561 bytes) - same as ojdbc14.jar, except that it contains additional code`to support Oracle Dynamic Monitoring Service.
ojdbc14dms_g.jar (1,947,136 bytes) - same as ojdbc14dms.jar, except that classes were compiled with "javac -g" and contain some tracing information.
orai18n.jar (1,645,114 bytes) - NLS classes for use with JDK 1.2, 1.3, 1.4, and 1.5. This jar file replaces the old nls_charset jar/zip files.
ons.jar (48,492 bytes) - for use by the pure Java client-side Oracle Notification Services (ONS) deamon.
demo.tar (604,160 bytes) or demo.zip (529,267 bytes) - contains sample JDBC programs. ......
驅動包classes12.jar用於JDK 1.2和JDK 1.3,而ojdbc14.jar用於JDK 1.4及以上,所以儘量不要使用classes12.jar;
針對不同的資料庫版本選擇相應版本的驅動包;
將驅動包置入應用啟動的classpath中(jboss的lib或者專案lib)
可通過如下連結下載到對應的驅動包:http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/htdocs/jdbc9201.html
參考:http://hi.baidu.com/ericzhang10086/blog/item/927b4836bd442d42251f14a4.html
http://blog.itpub.net/post/2333/459963?SelectActiveLayout=a
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/14184018/viewspace-698005/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 問題驅動設計與領域驅動設計的區別 - abdullin
- mysql與Oracle的區別MySqlOracle
- 如何理解自動化測試資料驅動與關鍵字驅動的區別?
- oracle ADG與DG的區別Oracle
- Oracle與OpenJDK之間的區別OracleJDK
- oracle invisible index與unusable index的區別OracleIndex
- 圖解韌體、驅動、軟體的區別圖解
- MySQL和Oracle的區別MySqlOracle
- Oracle和MySQL的區別OracleMySql
- MySQL的驅動表與被驅動表MySql
- 特徵融合與特徵互動的區別特徵
- maven打包oracle jdbc驅動MavenOracleJDBC
- 不同於Oracle:SEQUENCE的區別Oracle
- ??與?:的區別
- Oracle中Date和Timestamp的區別Oracle
- Oracle dba角色和sysdba的區別Oracle
- oracle中distinct和group by的區別Oracle
- Oracle 和 mysql的9點區別OracleMySql
- 清除浮動與閉合浮動區別
- 領域驅動設計和Clean架構之間的區別? - stackexchange架構
- 動態IP與靜態IP的主要區別
- 物件導向與函數語言程式設計的區別: 動詞-名詞與名詞-動詞的區別 - simblob物件函數程式設計
- 區塊鏈驅動金融創新的理論與實踐分析區塊鏈
- Dolphinscheduler不重啟載入Oracle驅動Oracle
- 介面自動化與ui自動化區別UI
- 靜態網頁與動態網頁的區別網頁
- 動態分佈與靜態分佈的區別
- 【ASK_ORACLE】Library cache pin 與 library load lock的關係和區別Oracle
- const與static的區別
- HTTP 與 HTTPS 的區別HTTP
- getAttribute() 與 attr() 的區別
- @import與<link> 的區別Import
- Postgresql與MySQL的區別MySql
- HashSet與HashMap的區別HashMap
- HashTable與ConcurrentHashMap的區別HashMap
- maven與ant的區別Maven
- __new()__ 與 __init()__的區別
- @Autowired 與@Resource的區別
- gulp與webpack的區別Web