db2 速度越来越慢
不知道是啥原因,速度是越来越慢。。。什么原因,应该从哪个方面去查啊? 试试对表reorg 试试对表进行reorg 试试对表进行reorg 干了,没效果。 是查询慢还是更改慢?有没有复制在运行
db2 list applications show details
看uow 或者lock状态的有哪些
db2 get snapshot for dbon dbname|grep -i old
找出对应的appl id ,
db2 get snapshot for applicationagentid xxxx
看这些参数
Statement database partition number =
Statement start timestamp =
Statement stop timestamp =
Elapsed time of last completed stmt(sec.ms)=
Total Statement user CPU time =
Total Statement system CPU time =
看是否有事务长期运行占用系统志愿 对表、索引进行reorg,再runstats收集统计信息看看
不行再通过snapshot,db2pd,explain等工具看看
页:
[1]