DB2 v9.5 on Win03 x64 主机改名后导致SQL1042C
各位,
好
我按照下述方法修改DB2服务器名称,结果遇到SQL1042C;我的数据库是空的,刚装的,不过里面已经被SAP定义出一个节点,但里面依旧是空。
停止数据库
db2admin stop
db2stop
服务器改名
Change the server's hostname.
生效配置
db2set -g DB2SYSTEM=<new hostname>
更改db2notes配置文件
Documents and Settings\All Users\Application Data\IBM\DB2\<DB2COPY>\DB2\db2nodes.cfg
In the db2nodes.cfg file change <current hostname> to <new hostname>.
执行生效定义,不过印象中,我没有SMTP_SERVER
db2cmd.exe
db2 list admin node directory show detail
db2 update admin cfg using DB2SYSTEM <new hostname>
db2 update admin cfg using SMTP_SERVER <new hostname>
至此,SQL ERROR了。我哪步没做? 我记得IBM官方有说什么USERGROUP的事情,但是没看太懂。