This article describes how to modify the Host Name of a DB2 database server and how to solve the problem during the use of the DB2 server for your reference.
Product: DB2 UDB
Platform: AIX, Solaris, HP-UX, Linux, Windows
Version: V8 V9.1V9.5
Problem description:
For various reasons, users may need to modify the Host Name of the DB2 database server during the use of the DB2 server. What changes do DB2 need?
Answer:
To modify the Host Name of the DB2 server, perform the following steps on the DB2 database server:
1) Stop the DB2 Management Server DAS )? /SPAN> DB2 instance
A) db2admin stop
On Windows, you can directly run the command to stop the DAS. on Linux and UNIX, you can run the command to get the name of the DAS instance, and then stop the DAS, such
Db2set-all | grep DB2ADMINSERVER
[G] DB2ADMINSERVER = das91
Run the "db2admin stop" command after su-das91"
B) db2stop
If you have multiple instances, you must stop them all. You can use the db2ilist command to list all instances on the host and then stop them one by one.
For Windows, you can