DB2 SQL1205N

在做数据库迁移的时候遭遇SQL1205N:
>db2 restore db sundb from . to /db2sys replace existing redirect without rolling forward
SQL1205N The code page "1386" and/or territory code "1" that been specified is not valid.

>db2set
DB2COMM=tcpip
DB2CODEPAGE=1386


解决方法:
先新建一个同名数据库实例,在还原替换掉新建的db2实例:
>db2 create database sundb using codeset GBK territory CN

接着重新执行最上面的恢复语句开始恢复数据库即可。
posted @ 2014-08-26 16:07  Seven_sun  阅读(508)  评论(0编辑  收藏  举报