procedure space_usage(segment_owner IN varchar2, segment_name IN varchar2, segment_type IN varchar2, unformatted_blocks OUT number, unformatted_bytes OUT number, fs1_blocks OUT number, fs1_bytes OUT number, fs2_blocks OUT number, fs2_bytes OUT number, fs3_blocks OUT number, fs3_bytes OUT number, fs4_blocks OUT number, fs4_bytes OUT number, full_blocks OUT number, full_bytes OUT number, partition_name IN varchar2 DEFAULT NULL ); pragma restrict_references(space_usage,WNDS); -- Returns information about space occupation in an object (table, index, -- or cluster). -- Input arguments: -- segment_owner -- schema name of the segment to be analyzed -- segment_name -- object name of the segment to be analyzed -- partition_name -- partition name of the segment to be analyzed -- segment_type -- type of the segment to be analyzed (TABLE, INDEX, or CLUSTER) -- Output arguments: -- unformatted_blocks -- total number of blocks that are unformatted -- unformatted_bytes -- the same as above, expressed in bytes -- fs1_blocks -- number of blocks that have atleast 0 to 25% free space. -- fs1_bytes -- same as above, expressed in bytes -- fs2_blocks -- number of blocks that have atleast 25% to 50% free space. -- fs2_bytes -- same as above, expressed in bytes -- fs3_blocks -- number of blocks that have atleast 50% to 75% free space. -- fs3_bytes -- same as above, expressed in bytes -- fs4_blocks -- number of blocks that have atleast 75% to 100% free space. -- fs4_bytes -- same as above, expressed in bytes -- full_blocks -- total number of blocks that are full in the segment -- full_bytes -- the same as above, expressed in bytes