0
点赞
收藏
分享

微信扫一扫

DB2 ERRORCODE=-4220

凌得涂 2022-08-05 阅读 188


问题描述
使用Workbench连接DB2数据库,执行SQL:

select MESSAGE
from test.t1 for read only;

问题现象

An error occurred when executing the SQL command:
select MESSAGE
from SIVIEW.RMBATCHJOB for read only

[jcc][t4][1065][12306][3.72.54] Caught java.io.CharConversionException. See attached Throwable for details. ERRORCODE=-4220, SQLSTATE=null [DB Errorcode=-4220]
1 statement failed.

Execution time: 0.08s

分析过程
查看IBM knowledge centor,初步判断为表中的column字符格式导致:​

解决方案

  1. user需要尝试修改workbench工具,添加对应的字符,以符合该场景。
  2. 使用其他的client端工具诸如DBeaver可解决该问题。

版权声明:本文为博主原创文章,未经博主允许不得转载。

DB2

举报

相关推荐

0 条评论