For ESE versions earlier than version 8, the agent uses the db2nkill program with instance owner's ID to kill the instance processes owned by the $DB2InstOwner for the instance or database partition.
For ESE version 8, the agent uses the db2gcf
program to kill a DB2 database partition with either the ESE single-partition instance configuration or the ESE multi-partition instance in SMP or MPP configuration. The command is:
su $DB2InstOwner -c "$InstHome/sqllib/bin/db2gcf -k -i