浅谈解决DB2数据库代码页不兼容的方法

http://www.itjxue.com  2015-08-21 22:21  来源:未知  点击次数: 

例如:

  当发出命令:db2 connect to db_name 后系统返回

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

  DB2 要求源代码页与目标代码页是互相兼容的, 在上边的例子中,源代码页为819与目标代码页为1386不兼容导致了数据库连接失败。

  解决方法如下:

  在发出db2 connect 命令失败的机器上,在DB2 命令窗口中执行如下命令后重新进行连接:

  ->

  db2set db2codepage=1386 –I instance_name

  db2 terminate

(责任编辑:IT教学网)

更多

推荐数据库文章