You can use a response file to uninstall one or more DB2® products, features, or languages. On Linux® and UNIX® operating systems, you can also use a response file to uninstall the DB2 Information Center. A response file uninstall can also be referred to as a silent uninstall or an unattended uninstall.
A sample uninstall response file, db2un.rsp, is provided. When the DB2 product was installed, as part of the installation the sample uninstall response file is copied to DB2DIR/install, where DB2DIR specifies the path where the DB2 product was installed. You can customize the response file. To activate a keyword in the response file, remove the asterisk (*) to the left of the keyword.
Before uninstalling using a response file, the following considerations, and restrictions, must be considered.
When removing a DB2 product, you must first drop the DB2 instance. For example, if only DB2 ESE is installed, before removing the ESE product you must first drop the instance.
If multiple DB2 products exist within the same DB2 copy, a response file uninstallation of one DB2 product does not affect the components shared by other DB2 products in that copy. For example, DB2COPY1 contains the DB2 products ESE, WSE and PE. Several components are shared among the three products. In this case, uninstalling ESE removes the components that are not shared. In the following figure, the shaded region represents the components to be removed from DB2COPY1:
However, before removing a DB2 product, consider the instance type. For example, ESE, WSE and PE are installed in the same DB2 copy. You want to remove the ESE product. Before removing the ESE product, you can either:
If a DB2 feature is installed by multiple products in the same DB2 copy, a response file uninstallation of the feature removes the feature from all of the products in the DB2 copy.
The following restrictions apply:
After a response file uninstall, check the log file. This file captures all DB2 uninstallation information, including errors.