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
spool c:\rebuild.sql
select 'alter index '||owner||'.'||index_name||' rebuild;' from dba_indexes where status ='INVALID';
spool off
@c:\rebuild.sql
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29989552/viewspace-2072220/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29989552/viewspace-2072220/