DB2 10.5 for Linux, UNIX, and Windows

Removing non-root DB2 database products using db2_deinstall (Linux and UNIX)

This task provides steps for removing non-root DB2® database products or components using the db2_deinstall command.

Before you begin

You must stop the non-root instance before running the db2_deinstall command.

About this task

Procedure

To uninstall a DB2 database product that was installed by a non-root user:

  1. Log in with the user ID that was used to install the DB2 database product.
  2. Navigate to the $HOME/sqllib/install directory, where $HOME is your home directory.
  3. Run the db2_deinstall command.
    Note:
    • If you run the db2_deinstall command with the -a option, the DB2 database program files are removed, but any configuration files are left behind in a backup directory called sqllib_bk.
    • If you run the db2_deinstall command with the -a -f sqllib option, the entire sqllib subdirectory in your home directory will be removed. If you have any files in sqllib you want to keep, be sure to copy them elsewhere before running db2_deinstall -a -f sqllib.
    • As with root installations, running the db2_deinstall command with the -F option against a non-root installation allows the non-root user to remove specific DB2 features.