DB2 10.5 for Linux, UNIX, and Windows

Updating DB2 copies (Windows)

You can update an existing DB2® copy and all instances running on that copy to a new fix pack level. You can also choose to install a new DB2 copy and selectively update instances to run on this new copy after installation.

Before you begin

About this task

Follow these instructions to update your DB2 copies from one fix pack level to another (within the same version level) or to install additional functionality.

Restrictions

Procedure

To update your DB2 copies:

  1. Log on as a user with Local Administrator authority.
  2. Stop all DB2 instances, services and applications.
  3. Run setup.exe to launch the DB2 wizard to install a DB2 copy. You have the following choices:
    • To update an existing DB2 copy and update all the instances running on this DB2 copy, select Work with Existing in the Install a Product panel. Then select the DB2 copy that you want to update with the update action. You cannot install additional functionality with this action.
    • To install a new DB2 copy and selectively update the instances running on an existing DB2 copy to the new copy after installation, select Install New in the Install a Product panel. This option allows you to also install additional functionality.
    • To add functionality to an existing DB2 copy, select Work with Existing in the Install a Product panel. Then select the DB2 copy that you want to update with the Add new function action. This action is only available when the DB2 copy is at the same release level as the install image.
  4. If you installed a new DB2 copy, use the db2iupdt command to update any instances that are running in a different DB2 copy of the same release that you want them to run under the new copy. The following table shows several examples of updating instances:
    Instance DB2 copy Example to update to another copy
    db2inst1 C:\Program Files\IBM\SQLLIB_91\BIN
    cd D:\Program Files\IBM\SQLLIB_91_FP5\BIN 
    db2iupdt db2inst1 /u: user-name,password
    db2inst2 C:\Program Files\IBM\SQLLIB_97\BIN
    cd D:\Program Files\IBM\SQLLIB_97\BIN 
    db2iupdt db2inst2 /u: user-name,password

Results

Once you have installed or updated a DB2 copy, you can always update instances that run in other DB2 copies of the same release, to run on this new DB2 copy by issuing the db2iupdt command.