To Find Out Space Consumed by a Table

Step 1: Analyze the table.

Step 2: run the following query which will tell you average space consumption for one row in the table.
SELECT TABLE_NAME,
NUM_ROWS,
AVG_ROW_LEN
FROM DBA_TABLES
WHERE OWNER = 'SCOTT'

AND TABLE_NAME = 'EMPLOYEES'

Step 3: Multiply estimated number of rows with AVG_ROW_LEN. This is the required space in bytes.

No comments:

Ask Tom HOT ARTICLES

Oracle Technology Network Technical Articles