It happens to the best of us, especially, if you are doing a GUI based install on Linux and the X11 connections is dropped due to a VPN timeout: the DB2 install failed. Now what. Manually recovering the failed steps or fresh install. Usually, I opt for the "fresh" install. But before that, you have to remove the remains of the old, failed install.

These are the steps I took. Use at your own risk. This is not the way you usually uninstall DB2, a knowledgable DBA will probably hurt you for that, but it gets the job done.

  1. Disable the fault monitor daemon (db2fmcd) process
    As described in Technote #1224009,"/opt/IBM/DB2/bin/db2fmcu -d" should do the trick
  2. Kill all remaining DB2 processes
  3. Remove /opt/IBM/DB2 via "rm -rf /opt/IBM/DB2"
  4. Remove /var/db2 via "rm -rf /var/db2"
  5. Remove the created DB2 users "userdel -r db2admin" and "userdel -r dasusr1" (-r so their home directories are removed too!)
  6. Clean /tmp of all remains of the failed DB2 install (ln directories, ...)

As said before, use at your own risk, this is NOT the proper way to uninstall DB2!

Thanks to Dave Hay for posting this info on the interwebs.

Comments [0]

No Comments Found


Discussion for this entry is now closed.

This is the Blog of Martin Leyrer, currently employed as an Senior Lab Services Consultant at HCL Digital Solutions.

The postings on this site are my own and do not represent the positions, strategies or opinions of any former, current or future employer of mine.