benh 发表于 2009-02-02 14:27

connect GBK db没有成功

=> db2 create db gbkdb using codeset GBK territory cn
DB20000IThe CREATE DATABASE command completed successfully.

=> db2 connect to gbkdb
SQL0332NCharacter conversion from the source code page "1386" to the target
code page "819" is not supported.SQLSTATE=57017

查看了一下DB2 info Centre, 可能是db manager有问题,也有可能是OS没有提供支持。请问分别怎么看OS和DBM的当前配置? 谢谢

大梦 发表于 2009-02-03 10:08

db2set db2codepage=1386
db2 terminate
db2 connect to gbkdb

lyq管理 发表于 2009-02-05 00:21

在DB2环境中要向二楼那样设置环境变量,当然这环境变量须与你数据库变量一致
页: [1]
查看完整版本: connect GBK db没有成功