INDEX CREATE PROGRESS

set lin 600 col sid format 9999 col start_time format a5 heading “Start|time” col elapsed format 9999 heading “Mins|past” col min_remaining format 9999999 heading “Mins|left” col message format a81 select sid      , to_char(start_time,’hh24:mi’) start_time      , elapsed_seconds/60 elapsed      , round(time_remaining/60,2) “min_remaining”      , message from v$session_longops where time_remaining > 0 /

HOW to rebuild indexes

Partitions: set head off pagesize 0 linesize 100 select ‘ALTER INDEX ‘|| a.index_name ||’ rebuild partition ‘ || a.PARTITION_NAME ||’ ONLINE;’ from dba_IND_PARTITIONS a,dba_indexes b where a.index_name=b.index_name and b.table_name=upper(‘&table_name’) and a.status <>’USABLE’; Subpartitions: set head off pagesize 0 linesize 100 select ‘ALTER INDEX ‘ || a.index_owner || ‘.’ || a.index_name || ‘ REBUILD SUBPARTITION ‘…