Hi,
To find fragmented objects in the oracle Database normally considering size of segment(table) against (size of the segment - avg_row_len ) if the difference between two is more than GB, then could re-organize the table objects and rebuild the index to claim the space.
But SAP provided a script Space_HighWaterMarkFragmentation.sql which is considering various other factors like initial extents, blocks etc.,
Alias BI stands for basis_Info, Alias T stands for Table & Alias S stands for segment.
( BI.INITIAL_GREATER_THAN_HWM = ' ' OR
T.INITIAL_EXTENT > T.BLOCKS * 8192 AND S.BYTES < T.INITIAL_EXTENT + 64 * 1024 * 1024 ) AND
'TABLE' LIKE BI.SEGMENT_TYPE AND
( T.USER_STATS = 'NO' OR BI.EXCLUDE_USER_STATS_SEGMENTS = ' ' )
so, could you pls. explain any one, in what logic & why SAP uses these type of condition to fetch fragmented objects ??..
And also for to find out/maintains statistics of the Tables, does SAP recommends any specific scripts like above,
Pls. Guide me for the Above.
Best Regards,
Siva..