DB2 Version 9.7 for Linux, UNIX, and Windows

Reducing the size of your DB2 fix pack installation image

You can use the db2iprune command to reduce the size of the DB2® fix pack installation image.

About this task

The db2iprune is a command line utility that removes the files associated with those features and languages based on an input file. The input file (.prn file) allows you to specify which features and languages you want to remove from the fix pack image. The result is a new, smaller DB2 fix pack image. Reducing the size of a fix pack image is also referred to as pruning the fix pack image.

Before installing a fix pack that has been pruned, you must ensure that the pruned fix pack image contains all the components that are in the DB2 copy. If you prune a component from the fix pack image that is part of the DB2 copy, the fix pack installation will fail. For example, if you installed a DB2 copy with the First Steps component, you must ensure that you have not pruned the First Steps component from that fix pack image.

However, the reverse is permitted. If you did not install a specific component from your DB2 copy, you can successfully install a DB2 fix pack image that includes that specific component. In this case, that component is ignored when the fix pack image is installed. For example, if you installed a DB2 copy without the First Steps component, you can install a DB2 fix pack image that includes the First Steps component.

You can verify what was installed in the DB2 copy so you will know what to prune from the fix pack installation image.
On Linux and UNIX operating systems
Run the db2ls command to get a list of installed products and components.
On Windows operating systems
Run the regedit command and look under the HKEY_LOCAL_MACHINE\SOFTWARE\IBM\DB2\InstalledCopies\DB2 copy name\COMPONENTS to verify what has been installed.

Procedure

To reduce the size of your DB2 fix pack installation image:

  1. Use db2iprune to prune some DB2 components from the product installation image.
  2. Install the pruned DB2 database product installation image.
  3. Use db2iprune to prune the same set of DB2 database components, or a subset of DB2 database components, from the fix pack image. (The same response file can be used.)
  4. Install the pruned DB2 fix pack image.