更改db2 server 主机名步骤如下:
1) Stop the DB2 Administration Server (DAS) and the DB2 Instance
a) db2admin stop
b) db2stop
2) Change the servers hostname
3) Logged in as the DB2 instance owner run "db2set -g DB2SYSTEM=
"
4) Edit db2nodes.cfg
** Linux and UNIX: /sqllib/db2nodes.cfg
** Windows: Program FilesIBMSQLLIBDB2db2nodes.cfg
a) change with
5) Update DB2 Administration Server configuration
a) db2 list admin node directory show detail
b) db2 uncatalog node
c) db2 catalog admin tcpip node remote system
d) db2 update admin cfg using DB2SYSTEM
e) db2 update admin cfg using SMTP_SERVER
6) Start the DB2 Administration Server (DAS) and the DB2 Instance
a) db2admin start
b) db2start
7) Remove the entry from Control Center for the server with old hostname and then execute a server's discover with the new hostname收起