oracle 重建索引

2025-05-05 05:56:31
推荐回答(2个)
回答1:

1、重新收集统计信息
analyze table 表名 compute statistics for table for all indexes for all indexed columns
analyze index 索引名 compute statistics
2、把表现不同的sql及其执行计划发上来看看

回答2:

看看是不是删除操作导致索引失效了,如果频繁删除、插入的操作建议建立local形式的索引。