You must stop all DB2 instances before you remove DB2.
To stop a DB2 instance:
| where DB2DIR | = /usr/lpp/db2_07_01 | on AIX |
|
| = /opt/IBMdb2/V7.1 | on HP-UX, PTX, or Solaris |
. INSTHOME/ sqllib/db2profile (bash, Bourne, or Korn shells) source INSTHOME/sqllib/db2cshrc (C shell)
where INSTHOME is the home directory of the instance.
You might want to save the database manager configuration file, db2systm, the db2nodes.cfg file, or user defined function or fenced stored procedure applications in INSTHOME/sqllib/function.