Download revision package
DB2 does not require different levels of revision packages to be installed one by one. Higher-Level revision packages contain all the code in the lower-level revision packages, so you can select the most current-Level revision packages for download.
Download location: ftp://ftp.software.ibm.com/ps/products/db2/fixes/
Select the appropriate language environment and product version
In this example, the installation is successful in the following environment:
IBM xSeriers 345 (Inter 32-bit)
RedHat Enterprise Linux 3.0
DB2 V8.1 for Linux
The corresponding download directory is: ftp://ftp.software.ibm.com/ps/products/db2/fixes/english/db2linuxIA32v8/
Preparations
The database should be backed up completely before upgrading the revision package.
First check the current revision package level to confirm whether upgrade is required
$ Db2level
Comment out the automatically started db2 monitoring process, if this process is automatically started with the System
# Vi/etc/inittab
Comment out the relevant line
Restart the system
# Reboot
Log on to the DAS management user and stop the DAS service.
# Su-db2as
$ Db2admin stop
$ Exit
Log on to the instance owner user and stop the instance.
# Su-db2
$ Db2 force applications all
$ Db2 terminate
$ Db2stop
$ Exit
Stop License Service
$ Db2licd end
$ Exit
Check whether there are any running db2-related processes. If other db2 processes run, the upgrade may fail.
# Ps-aux | grep db2
If yes, kill
Kill-s 9 process number
Prepare to install fixPack level 6 and go to the directory for extracting the downloaded file
# Cd FP6_MI00080/
Upgrade
Install fixPack level 6 as root
#./InstallFixPak
Upgrade the instance and the DAS service after the installation is complete.
# Su-db2
$ Cd/opt/IBM/db2/V8.1/instance/
$./Db2iupdt db2
$./Dasupdt db2as
Bind the required package
$ Db2 connect to dlhdb
$ Db2 bind/opt/IBM/db2/V8.1/bnd/db2schema. bnd blocking all grant public sqlerror continue
Upgrade complete
Reference resources:Tips for installing the DB2 Universal Database (DB2 UDB) revision package on UNIX
Http://www-900.ibm.com/developerWorks/cn/dmdd/library/techarticles/pworld/0112kline.shtml