1er temps, analyser l’index pour connaître sa structure :
analyze index <owner>.<index_name> validate structure;
2ème temps, afficher les statistiques de structure :
select name, height,lf_rows,lf_blks,del_lf_rows from index_stats;
alter index <owner>.<index_name> rebuild [online];
set linesize 200 set pagesize 0 set echo off set head off set trimspool on ttitle off btitle off set verify off set feedback off spool <fichier.sql> select 'analyze index ' || owner || '.' || index_name || ' validate structure;' || chr(10) || 'select name, height,lf_rows,lf_blks,del_lf_rows from index_stats;' from dba_indexes where owner = '<owner>'; spool off @@<fichier.sql>