文章詳情頁
DB2數(shù)據(jù)庫代碼頁不兼容的問題的另類解決
瀏覽:37日期:2023-11-09 17:36:32
例如:
當(dāng)發(fā)出命令:db2 connect to db_name 后系統(tǒng)返回
SQL0332N There is no available conversion for the source code page '819' to the target code page '1386'. Reason Code '1'. SQLSTATE=57017
DB2 要求源代碼頁與目標(biāo)代碼頁是互相兼容的, 在上邊的例子中,源代碼頁為819與目標(biāo)代碼頁為1386不兼容導(dǎo)致了數(shù)據(jù)庫連接失敗。
解決方法如下:
在發(fā)出db2 connect 命令失敗的機(jī)器上,在DB2 命令窗口中執(zhí)行如下命令后重新進(jìn)行連接:
->
db2set db2codepage=1386 –I instance_name
db2 terminate
標(biāo)簽:
DB2
數(shù)據(jù)庫
排行榜
