經常使用參數修改:sql
db2 "update db cfg for bmc using BUFFPAGE 51200"ide
db2 'alter bufferpool ibmdefaultbp size 51200'日誌
db2 "update db cfg for bmc using LOGSECOND 200"索引
db2 "update db cfg for bmc using SORTHEAP 1024"it
db2 "update db cfg for bmc using STMTHEAP 4096"class
db2 update db cfg for bmc using APPLHEAPSZ 1024date
#若是未啓動查查看/home/db2inst/sqllib/db2dump/db2inst.nfy日誌,並修改應用程序的最大數目程序
db2 update db cfg for bmc using MAXAPPLS 1000db
dbm 參數修改:di
db2 update dbm cfg using MON_HEAP_SZ 1000
db2 update dbm cfg using JAVA_HEAP_SZ 4096
db2 update dbm cfg using MAXAGENTS 200
建立索引eg:
db2 "create index stat_ss_type on stat.stat_score_2013(TYPE)"