DB2 Version 9.7 for Linux, UNIX, and Windows
Uninstalling > Uninstalling non-root DB2 products (Linux and UNIX) >

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

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

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

Note:

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

  1. Log in with the user ID that was used to install the DB2 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 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.
[ Top of Page | Previous Page | Next Page | Contents ]