Posted on 2008-12-04 14:24
Prayer 閱讀(200)
評論(0) 編輯 收藏 引用 所屬分類:
DB2
產品:DB2 UDB
平臺:Windows 9x/NT/2000, Unix, Linux
版本:5.x/6.x/7.x
問題:如何解決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
|