IBM DB2 Computer Accessories User Manual


 
98 DB2 Deployment Guide
-p <root directory path>
Specifies the full path to the root directory of the source installation image. This
directory contains setup.exe, and is the root directory of the DB2 installation
DVD.
-o <destination directory path>
Specifies the full path to where the new DB2 pruned image is copied. Make sure
that you have write access to this directory.
The input file for db2iprune contains a full list of removable features and has the
.prn extension. The input file contains three keywords: PROD, LANG, and
COMP.
The PROD keyword identifies the DB2 installation image to be pruned.
The LANG keyword specifies the languages.
The COMP keyword specifies the features.
You can uncomment several COMP or LANG keywords in the same input file to
remove several features or languages.
The db2iprune utility removes the cabinet (.cab) files associated with those
features and languages that have not been commented out in the input file
(.prn file). Once pruned image is installed, the resulting product will only contain
a subset of features and take up a smaller footprint than that of a full DB2 product
image.
For example, if you want to remove the DB2 Configuration assistant, DB2
Control Center, as well as language support for Japanese and Korean, you have
to remove the comments from the following lines in db2client.prn (Example 3-1).
Example 3-1 Entries in the .prn file
COMP = CONFIGURATION_ASSISTANT ** Configuration Assistant
COMP = CONTROL_CENTER ** Control Center
LANG = JP ** Japanese (ja_JP)
LANG = KR ** Korean (ko_KR)
The following steps are for reducing the size of a DB2 product installation image
using the db2iprune utility:
1. Open the input file (.prn file) located in the db2iprune directory on the install
image. Uncomment the features and languages you want to remove from the
DB2 installation image by removing the asterisk(*).
2. Execute the db2iprune command from the command line.
db2iprune –r C:\db2rtcl.prn –p d:\ -o e:\compact_rtcl