不支持的字符集 (在类路径中添加 orai18n.jar): ZHS16GBK
2021-03-10 08:30
标签:osi pac jdb cep character apach cal loading cte 根据报错信息提示,导入orai18n.jar或者在pom.xml中添加orai18n.jar的依赖 不支持的字符集 (在类路径中添加 orai18n.jar): ZHS16GBK 标签:osi pac jdb cep character apach cal loading cte 原文地址:https://www.cnblogs.com/Courage129/p/14157313.html不支持的字符集 (在类路径中添加 orai18n.jar): ZHS16GBK
报错图示:
报错内容:
Exception in thread "main" java.sql.SQLException: 不支持的字符集 (在类路径中添加 orai18n.jar): ZHS16GBK
at oracle.sql.CharacterSetUnknown.failCharsetUnknown(CharacterSetFactoryThin.java:233)
at oracle.sql.CharacterSetUnknown.convert(CharacterSetFactoryThin.java:194)
at oracle.jdbc.driver.PhysicalConnection.throughDbCharset(PhysicalConnection.java:10402)
at oracle.jdbc.driver.PhysicalConnection.enquoteIdentifier(PhysicalConnection.java:10479)
at oracle.jdbc.driver.OracleStatement.enquoteIdentifier(OracleStatement.java:6452)
at oracle.jdbc.driver.OracleStatement.getColumnIndex(OracleStatement.java:3853)
at oracle.jdbc.driver.InsensitiveScrollableResultSet.findColumn(InsensitiveScrollableResultSet.java:270)
at oracle.jdbc.driver.GeneratedResultSet.getString(GeneratedResultSet.java:596)
at com.courage.apacheDBUtils.DBUtilsTest.main(DBUtilsTest.java:17)
解决方案:
文章标题:不支持的字符集 (在类路径中添加 orai18n.jar): ZHS16GBK
文章链接:http://soscw.com/index.php/essay/62685.html