Hi All,
I determined Top 50 table which has highest wasted space
using below query
SELECT * FROM
(SELECT
SUBSTR(TABLE_NAME,
1, 21) TABLE_NAME,
NUM_ROWS,
AVG_ROW_LEN
ROWLEN,
BLOCKS,
ROUND((AVG_ROW_LEN + 1) * NUM_ROWS / 1000000, 0) NET_MB,
ROUND(BLOCKS *
(8000 - 23 * INI_TRANS) *
(1 -
PCT_FREE / 100) / 1000000, 0) GROSS_MB,
ROUND((BLOCKS *
(8000 - 23 * INI_TRANS) * (1 - PCT_FREE / 100) -
(AVG_ROW_LEN
+ 1) * NUM_ROWS) / 1000000) "WASTED_MB"
FROM DBA_TABLES
WHERE
NUM_ROWS IS NOT
NULL AND
PARTITIONED = 'NO' AND
(IOT_TYPE !=
'IOT' OR IOT_TYPE IS NULL)
ORDER BY 7 DESC)
WHERE ROWNUM
<=50;
when I used try to reorg the using brspace on the top 50
table but it did not reduce the waste space.
Is it correct way to reorg the table?if any other please let
me know.