首页 > 开发 > 综合 > 正文

解决db2 codepage导致连接不上数据库问题

2024-07-21 02:44:06
字体:
来源:转载
供稿:网友

在客户端机器装上db2客户端,配置好链接远程数据库别名后,连接报错:

SQL0332N  There is no available conversion for
the source code page "1386" to the target code
page "819".  Reason Code "1".  SQLSTATE=57017
 

查相关资料,原来源代码页与目标代码页不兼容,用命令:

db2set db2codepage=1386 -I db2inst

db2 terminate
 
重新连接,一切正常!


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表