DB2 10.5 for Linux, UNIX, and Windows

Uninstalling a DB2 product, feature, or language using a response file (Windows)

Response files contain values that are used to answer questions during the installation process that you would normally answer. You should use a response file to uninstall a DB2® product, feature, or language if you are uninstalling from multiple machines that have identical DB2 images.

Before you begin

Before you begin the uninstallation, ensure that you have all the required user accounts to perform the uninstallation.

About this task

To silently uninstall DB2 products, features, or languages in a DB2 copy, use the db2unins command with the -u parameter.

If you have DB2 products installed in various installation paths, you must run this command separately from each installation path. Sample response file, db2un.rsp, is in DB2DIR\install, where DB2DIR specifies the path where the DB2 product was installed.

If you have a clustered environment, before uninstalling your DB2 product you must run the db2mscs command, with the -u parameter, from the same server that originally ran the db2mscs command to create the failover infrastructure. For details, see the db2mscs command.

Procedure

To perform an uninstallation:

  1. Customize the db2un.rsp response file. To activate an item in the response file, remove the asterisk (*) to the left of the keyword. Then, replace the current setting to the right of the value with the new setting. The possible settings are listed to the right of the equal sign.
  2. Run the db2unins command. For example, db2unins -u c:\db2un.rsp. The db2unins command is found under the SQLLIB\BIN directory.
  3. Check the messages in the log file when the uninstallation finishes. The default log file location is My Documents\DB2LOG\db2un_timestamp.log.