ITPub博客

首页 > 数据库 > Oracle > oracle批量重建索引方法

oracle批量重建索引方法

原创 Oracle 作者:orclwujian 时间:2016-03-30 10:57:53 0 删除 编辑
sqlplus / as sysdba
spool c:\rebuild.sql
select 'alter index '||owner||'.'||index_name||' rebuild;' from dba_indexes where status ='INVALID';
spool off
@c:\rebuild.sql

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29989552/viewspace-2072220/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-10-29

  • 博文量
    95
  • 访问量
    322683