1.分析表与索引(analyze 不会重建索引) analyze table tablename compute statistics 等同于 analyze table tablename compute statistics for table for all indexes for all columns for table 的统计信息存在于视图:user_tables .all_tables.dba_tables for all indexes 的统计信息存在于视图: user_in…
在生产环境.我们会发现: ① 索引表空间 I/O 非常高 ② "db file sequential read" 等待事件也比较高 这种迹象表明.整个数据库系统.索引的读写操作比较多.已经成为系统的主要瓶颈 一般的原因.大抵如下: ① 大量SQL均采用索引 ② DML操作导致索引维护工作量暴增 ③ 频繁DML导致很多索引碎片.增加I/O开销 ④ 索引建立策略失误.走索引如同全表扫 如果.一张表字段30个.但索引竟有 50个!? 作为…