常用参数修改:

db2 "update db cfg for bmc using BUFFPAGE  51200"

db2 'alter bufferpool ibmdefaultbp size 51200'

db2 "update db cfg for bmc using LOGSECOND 200"

db2 "update db cfg for bmc using SORTHEAP 1024"

db2 "update db cfg for bmc using STMTHEAP 4096"

db2 update db cfg for bmc using APPLHEAPSZ 1024


#如果未启动查查看/home/db2inst/sqllib/db2dump/db2inst.nfy日志,并修改应用程序的最大数目

db2 update db cfg for bmc using MAXAPPLS 1000


dbm 参数修改:

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)"