1.檢查實(shí)例 db2ilist
對(duì)每個(gè)實(shí)例運(yùn)行下列命令:
su – db2inst1
db2 force applications all
db2 terminate
db2stop
db2 terminate
db2licd -end # 在每個(gè)物理節(jié)點(diǎn)運(yùn)行
exit
其中 db2inst1 表示實(shí)例所有者名稱。
2. 運(yùn)行下列命令:
su - dasusr1
db2admin stop
exit
其中,aname 表示 DAS 所有者名稱。
3. 在 AIX 上,還應(yīng)該在安裝之前運(yùn)行 slibclean 以從內(nèi)存中卸裝未使用 的共享庫(kù):以root用戶
執(zhí)行:/usr/sbin/slibclean
4. 對(duì)于要更新的實(shí)例,確保已清除了所有 DB2 進(jìn)程間通信(IPC)。作為實(shí)例擁有者,在每個(gè)物理節(jié)點(diǎn)上運(yùn)行以下命令:
su – db2inst1
$HOME/sqllib/bin/ipclean或者 ipclean
$ ipclean
ipclean: Removing DB2 engine and client's IPC resources for db2inst1.
5. 要啟動(dòng)安裝,輸入:
su - root
/tdbackup/tools/fixpak.s061108
執(zhí)行 ./installFixPak –y
6. 對(duì)于每個(gè)實(shí)例,發(fā)出下列命令:(重點(diǎn))
以root用戶登陸,/usr/opt/db2_08_01/instance/db2iupdt db2inst1
DBI1070I Program db2iupdt completed successfully.
其中,iname 表示實(shí)例名,INSTHOME 表示適用于操作系統(tǒng)的安裝目錄。
$ db2level
DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL08027"with level identifier "03080106".
Informational tokens are "DB2 v8.1.1.128", "s061108", "U810098", and FixPak"14".
Product is installed at "/usr/opt/db2_08_01".