快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

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://6mz.cn/article/ppdjso.html

其他资讯