1、常见不兼容问题
问题:
发出命令: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