Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Exactly what are "leaf_blocks"??? Script included.
The DBA_INDEXES view has a column called "leaf_blocks." What EXACTLY is
that? Is that the number database blocks occupied by index data? If so
does the following query give the number of unused blocks left in the
current storage allocation for the index? (Assuming compute statistics
has been performed.)
select dba_indexes.index_name,
dba_segments.blocks - dba_indexes.leaf_blocks -1 from dba_segments, dba_indexes
where dba_indexes.index_name = dba_segments.segment_name and dba_indexes.owner = dba_segments.owner and dba_segments.segment_type='INDEX' and dba_indexes.index_name = <whatever>; ----------------------------------
![]() |
![]() |