db2 日常维护

来源:互联网 发布:万网域名备案查询 编辑:程序博客网 时间:2024/05/22 02:04

1、工作准备

db2 update monitor switches using bufferpool on lock on sort on statement on table on uow on


db2 get monitor switches



2、表空间利用率及状态

db2 list tablespaces show detail



3、表空间容器状态及利用率



4、排序溢出


overflow=排序溢出/总计排序


5、数据是否需要重组

db2 reorgchk current statistics on table all


6、日志利用率


日志利用率=数据库使用的日志空间/可用于数据库的日志空间


7、锁信息



8、编目告诉缓存命中率


命中率=目录高速缓存查询/(目录高速缓存查询+目录高速缓存插入)



原创粉丝点击