-- Created on 2012-5-24 by ADMINISTRATOR
declare
cursor jl is select * from user_indexes a where a.status='UNUSABLE';
begin
for r in jl loop
execute immediate 'alter index '||r.index_name ||' rebuild';
end loop;
end;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26015009/viewspace-730800/
,如需转载,请注明出处,否则将追究法律责任。