Using the command below I have the indexes that are larger than the tables, however, when reexecuting they always appear ...
the reason?
declare
cursor CTAB is
SELECT SEGMENT_NAME,BYTES FROM user_SEGMENTS WHERE SEGMENT_TYPE='TABLE';
begin
dbms_output.enable(90000);
for CTABDET in CTAB loop
for CINDEX in (select S.SEGMENT_NAME,S.BYTES from user_INDEXES I, user_SEGMENTS S where I.TABLE_NAME=CTABDET.SEGMENT_NAME AND S.SEGMENT_NAME=I.INDEX_NAME) loop
IF CINDEX.BYTES>CTABDET.BYTES THEN
dbms_output.put_line('INDEX '||CINDEX.SEGMENT_NAME||' = '||CINDEX.BYTES/1024/1024||' MAIOR QUE A TABELA '||CTABDET.SEGMENT_NAME||' = '||CTABDET.BYTES/1024/1024);
END IF;
end loop;
end loop;
end;