db2 ip address changes

I changed the IP Address of the Machine and now DB2 does not start.

See what db2 has set

 db2set -all

You should see

 DB2SYSTEM=localhost.localdomain

Alter the IP Address

We need to be a priveledged account to do this.

. /db2home/db2inst1/sqllib/db2profile
# db2set -g DB2SYSTEM=svs00db01z.domain.com

db2user

The db2inst1 needs a slight change

As db2inst1

bash cd ~\sqllib\ vi db2nodes.cfg

Update the nodename

now start db2