1、create or replace procedure p_rebuild_all_index (tablespace_name in varchar2)as sqlt varchar(200);begin for idx in (select index_name, tablespace_name, status from user_indexes where tablespace_name=tablespace_name and status='VALID' and tempora
7、N WHEN OTHERS THEN dbms_output.put_line(SQLERRM); end; end loop;end;declare --表空间名称 tablespace_name varchar2(100);begin tablespace_name:='dddd'; p_rebuild_all_index(tablespace_name);end;方法2:定期重建索引(or