Technical Blog Post
Abstract
监视DB2命令的进度
Body
在DBA常用的命令中,有的命令需要的时间可能比较长。以下总结了常见的命令及监视方法。
DB2命令 | 监视方法 |
---|---|
Crash Recovery |
db2pd -rec -db <dbname> db2pd -util 参照: http 优化: UTIL_HEAP_SZ, adjust parallelism by setting number of redo workers, eg, set to 5 below(the below number 6 = 5 workers + 1 redo master): |
Rollforward |
db2pd -rec -db <dbname> db2 list utilities show detail or db2pd -util 优化: same as Crash Recovery |
Backup and Restore |
db2 list utilities show detail or db2pd -util 优化: UTIL_HEAP_SZ, parallelism, buffer |
Reorg |
db2pd -db <dbname> -reorg 优化: Dropping unnecessary indexes, sortheap & shea |
Rebalance |
db2 list utilities show detail or db2pd -util MON_ |
Application rollback |
db2pd -util db2pd -load -alldbs 优化: Load parallelism and data buff 参照: |
Indexing | 优化: UTIL_HEAP_SZ, SHEAPTHRES |
Runstats |
db2 list utilities show detail or db2pd -util db2pd -db <dbname> -runstats |
Partition Detach | db2 list utilities show detail or db2pd -util |
Load |
db2pd -util db2pd -load -alldbs 优化: Load parallelism and data buff 参照: |
UID
ibm13286575