This article mainly tells you how to install patches in DB2. In actual operations, we need to stop all related instances first, $ db2list results include db2inst1 and db2inst2. I believe that if you master this technology, it will be of great help in your future studies or work.
Stop all instances first
$ Db2list results include db2inst1 and db2inst2
Stop both
- Install Fixpak
Upgrade an instance
- $DB2DIR/instance/db2iupdt
Upgrade a DAS instance
- $DB2DIR/instance/dasupdt
Restart an instance
- bind updated Packages
For each instance
- db2 connect to
- db2 BIND $DB2DIR/bnd/@db2ubind.lst GRANT PULIC
- db2 BIND $DB2DIR/bnd/@db2Cli.lst GRANT PULIC
Possible problems
Db2start Error
Solution: kill all processes related to this instance,
- IPClean
- Run db2iupdt
Db2admin start Error
Solution: kill all processes related to the admin server,
- IPClean
- Run dasupdt
The above content is an introduction to patching DB2. I hope you will get some benefits.