oracle不支持的字符集orai18n.jar?ZHS16GBK異常問題解決辦法
項目場景:
項目中有使用到oracle數(shù)據(jù)庫來存在數(shù)據(jù)。
問題描述
在使用查詢語句是,oracle會報錯。
java.sql.SQLException: 不支持的字符集 (在類路徑中添加 orai18n.jar): ZHS16GBK
原因分析:
經排查發(fā)現(xiàn)缺少oracle字符集的依賴包導致的。
解決方案:
如果oracle驅動包是database.jdbc,使用以下maven配置
<!-- Oracle 驅動包 --> <dependency> <groupId>com.oracle.database.jdbc</groupId> <artifactId>ojdbc8</artifactId> <version>21.5.0.0</version> <scope>runtime</scope> </dependency> <!-- Additional library required to support Internationalization --> <dependency> <groupId>com.oracle.database.nls</groupId> <artifactId>orai18n</artifactId> <version>21.5.0.0</version> <scope>provided</scope> </dependency>
如果oracle驅動包是oracle.jdbc,使用以下maven配置
<!-- Oracle 驅動包 --> <dependency> <groupId>com.oracle.jdbc</groupId> <artifactId>ojdbc8</artifactId> <version>19.3.0.0</version> </dependency> <!-- Additional library required to support Internationalization --> <dependency> <groupId>cn.easyproject</groupId> <artifactId>orai18n</artifactId> <version>12.1.0.2.0</version> </dependency>
總結
到此這篇關于oracle不支持的字符集orai18n.jar ZHS16GBK異常問題解決辦法的文章就介紹到這了,更多相關oracle不支持的字符集orai18n.jar ZHS16GBK 內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
oracle 存儲過程詳細介紹(創(chuàng)建,刪除存儲過程,參數(shù)傳遞等)
這篇文章主要介紹了oracle 創(chuàng)建,刪除存儲過程,參數(shù)傳遞,創(chuàng)建,刪除存儲函數(shù),存儲過程和函數(shù)的查看,包,系統(tǒng)包等相關資料,需要的朋友可以參考下2014-06-06
Oracle使用MyBatis中RowBounds實現(xiàn)分頁查詢功能
這篇文章主要介紹了Oracle使用MyBatis中RowBounds實現(xiàn)分頁查詢 ,本文通過實例代碼給大家介紹的非常詳細,具有一定的參考借鑒價值,需要的朋友可以參考下2019-07-07
CentOS6.2上安裝Oracle10g報ins_emdb.mk錯誤處理方法
oracle安裝過程報ins_emdb.mk錯誤,此時繼續(xù)點擊“continue”即可,待Oracle完成安裝后,再手工執(zhí)行相應腳本完成鏈接即可2014-09-09
oracle停止數(shù)據(jù)庫后linux完全卸載oracle的詳細步驟
本文介紹了linux完全卸載oracle的詳細步驟,卸載前需使用SQL*PLUS停止數(shù)據(jù)庫和相關服務,詳細步驟看下面說明,大家可以參考使用2014-01-01
在Oracle實例關閉時如何修改spfile的參數(shù)詳解
這篇文章主要給大家介紹了關于在Oracle實例關閉時如何修改spfile參數(shù)的相關資料,文中通過示例代碼介紹的非常詳細,對大家具有一定的參考學習價值,需要的朋友們下面跟著小編來一起學習學習吧。2017-07-07

