Prayer

在一般中寻求卓越
posts - 1256, comments - 190, trackbacks - 0, articles - 0
  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

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

Posted on 2009-11-04 15:52 Prayer 阅读(363) 评论(0)  编辑 收藏 引用 所属分类: DB2

在客户端机器装上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

后,重新连接,一切正常!


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理