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


例如:

  当发出命令: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


« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3