General process of DB2 General Upgrade Method

Source: Internet
Author: User
Tags db2 connect db2 connect to

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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.