RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
oracle中重建索引
  
  
    数据库的索引如果有比较频繁的 Delete 操作, 将可能导致索引产生很多碎片,
所以,在有的时候,需要对所有的索引重新 REBUILD,以便合并索引块,减少碎
片,提高查询速度。
SQL> set heading off
SQL> set feedback off
SQL> spool d:index.sql
SQL> SELECT 'alter index ' || index_name || ' rebuild '
||'tablespace INDEXES storage(initial 256K next 256K pctincrease 0);'
FROM all_indexes
WHERE ( tablespace_name != 'INDEXES'
OR next_extent != ( 256 * 1024 )
)
AND owner = USER
SQL>spool off

新闻标题:oracle中重建索引
文章网址:http://scyingshan.cn/article/ppdjso.html