DB2 10.5 for Linux, UNIX, and Windows

Removing DB2 database products using the db2_deinstall and doce_deinstall commands (Linux and UNIX)

This task provides steps for removing DB2® database products or DB2 database components using the db2_deinstall and doce_deinstall commands.

Before you begin

Before you remove DB2 database products from your system, ensure that you have performed all steps outlined in Uninstalling your DB2 database product (Linux and UNIX)

About this task

This task applies to DB2 database products that were installed with root user authority. To uninstall DB2 database products that were installed without root user authority, see Uninstalling non-root DB2 database products (Linux and UNIX).

The db2_deinstall command removes DB2 database products from your system.

The doce_deinstall command removes the DB2 Information Center that is in the same install path as the doce_deinstall tool.

Restrictions

Procedure

To remove DB2 database products, features or the DB2 Information Center from a specific path:

  1. Log in with root user authority.
  2. Access the path where the DB2 database products are located. To locate the path of the DB2 database product to remove, see Listing DB2 database products installed on your system (Linux and UNIX).
  3. Run one of the following commands:
    • To remove a feature from an installed DB2 database product in the current location, run the db2_deinstall -F command from the DB2DIR/install directory.
    • To remove all installed DB2 database products in the current location, run the db2_deinstall -a command from the DB2DIR/install directory.
    • To remove a DB2 database product using a response file, run the db2_deinstall -r response_file command from the DB2DIR/install directory. You can use a sample response file to uninstall the product. For example, doce_deinstall -r db2un.rsp
    • To remove the DB2 Information Center in the current location, run the doce_deinstall -a from the DB2DIR/install directory.
    • To remove the DB2 Information Center using a response file, run the doce_deinstall -r response_file from the DB2DIR/install directory. You can use the sample response file to uninstall the Information Center. For example, doce_deinstall -r doceun.rsp
    where DB2DIR is the location that you specified when you installed your DB2 database product.