日期:2014-05-16  浏览次数:20431 次

安装db2 fix pack
1.停数据库
[root@localhost universal]# su - db2inst2        --su到instance ID
[db2inst2@localhost ~]$ db2 force applications all        --断掉所有连接
DB20000I  The FORCE APPLICATION command completed successfully.
DB21024I  This command is asynchronous and may not be effective immediately.

[db2inst2@localhost ~]$ db2 terminate         --断掉自己
DB20000I  The TERMINATE command completed successfully.
[db2inst2@localhost ~]$ db2stop        --停instance
04/20/2011 21:01:34     0   0   SQL1064N  DB2STOP processing was successful.
SQL1064N  DB2STOP processing was successful.
[db2inst2@localhost ~]$ db2licd -end         --停lisence管理器
[db2inst2@localhost ~]$ db2_ps        --确认关停了
Node 0
     UID        PID       PPID    C     STIME     TTY     TIME CMD
[db2inst2@localhost ~]$ db2iauto -off db2inst2        --v9的fp1,fp2需要关闭自动运行(why?)


2.开始升级
[root@localhost universal]# ./installFixPack -b /opt/ibm/db2s/v9.7 

DBI1017I  installFixPack is updating the DB2 product(s) installed in
      location /opt/ibm/db2s/v9.7.


DB2 installation is being initialized.

 Total number of tasks to be performed: 43 
Total estimated time for all tasks to be performed: 1471 

Task #1 start
Description: Stopping DB2 Fault Monitor 
Estimated time 10 second(s) 
Task #1 end 

Task #2 start
Description: Preparing the system 
Estimated time 120 second(s) 
Task #2 end 

Task #3 start
Description: Base Client Support for installation with root privileges 
Estimated time 3 second(s) 
Task #3 end 

Task #4 start
Description: Product Messages - English 
Estimated time 11 second(s) 
Task #4 end 

Task #5 start
Description: Base client support 
Estimated time 102 second(s) 
Task #5 end 

Task #6 start
Description: Java Runtime Support 
Estimated time 94 second(s) 
Task #6 end 

Task #7 start
Description: Java Help (HTML) - English 
Estimated time 7 second(s) 
Task #7 end 

Task #8 start
Description: Base server support for installation with root privileges 
Estimated time 7 second(s) 
Task #8 end 

Task #9 start
Description: Global Secure ToolKit 
Estimated time 27 second(s) 
Task #9 end 

Task #10 start
Description: Java support 
Estimated time 11 second(s) 
Task #10 end 

Task #11 start
Description: SQL procedures 
Estimated time 3 second(s) 
Task #11 end 

Task #12 start
Description: ICU Utilities 
Estimated time 41 second(s) 
Task #12 end 

Task #13 start
Description: Java Common files 
Estimated time 20 second(s) 
Task #13 end 

Task #14 start
Description: Base server support 
Estimated time 231 second(s) 
Task #14 end 

Task #15 start
Description: IBM Software Development Kit (SDK) for Java(TM) 
Estimated time 44 second(s) 
Task #15 end 

Task #16 start
Description: Control Center Help (HTML) - English 
Estimated time 13 second(s) 
Task #16 end 

Task #17 start
Description: Connect support 
Estimated time 3 second(s) 
Task #17 end 

Task #18 start
Description: Communication support - TCP/IP 
Estimated time 3 second(s) 
Task #18 end 

Task #19 start
Description: Parallel Extension 
Estimated time 3 second(s) 
Task #19 end 

Task #20 start
Description: EnterpriseDB code 
Estimated time 3 second(s) 
Task #20 end 

Task #21 start
Description: Replication tools 
Estimated time 19 second(s) 
Task #21 end 

Task #22 start
Description: Relational wrappers common 
Estimated time 3 second(s) 
Task #22 end 

Task #23 start
Description: Control Center 
Estimated time 42 second(s) 
Task #23 end 

Task #24 start
Description: Command Line Processor Plus 
Estimated time 3 second(s) 
Task #24 end 

Task #25 start
Description: DB2 data source support 
Estimated time 7 second(s) 
Task #25 end 

Task #26 start
Description: DB2 LDAP support 
Estimated time 3 second(s) 
Task #26 end 

Task #27 start
Description: DB2 Instance Setup wizard 
Estimated time 8 second(s) 
Task #27 end 

Task #28 start
Description: Spatial Extender client 
Estimated time 3 second(s) 
Task #28 end 

Task #29 start