Hello,
I run the following to find tables/indexes fragmentation and I get the following output. It shows the Max extents and # extents >100. How do I interpret that, do I have to rebuild indexes or what is the correct way, how much should the max extents / #extents be usually? how to go about fixing this ? I hope you can provide inputs .
select a.owner "Owner",
segment_name "Name",
segment_type "Type",
bytes/(1024*1024) "Size (MB)",
max_extents "Max Extents",
extents "# Extents"
from dba_segments a
where segment_type in ('TABLE','INDEX')
and a.owner not in ('SYS','SYSTEM','OUTLN','MDSYS','ORDSYS','CSMIG','AURORA$JIS$UTILITY$','DBSNMP')
and extents > 100
and rownum <= 20
order by 5 desc
Yes, so, what is the ideal number to arrive at. what should the number be ?
if according to the query and extents > 100, is that a problem and they all should be < 100 ? how to detrmine the number ?
Bookmarks