Stop DB2 on Linux

Just a few useful commands to shutdown DB2 on Linux ready to apply fixpacks.  This relates to a shutdown of the default instance db2inst1, but can be applied to any running instance.

First, shutdown the instance;

su - db2inst1
. /home/db2inst1/sqllib/db2profile
db2 force applications all
db2 terminate
db2stop

Next, shutdown the DB2 administration server;

su - dasusr1
. /home/dasusr1/das/dasprofile
db2admin stop

Finally shutdown the fault management daemon;

db2fmcu -d
db2fm -d

Leave a Reply