Created
April 1, 2016 14:49
-
-
Save ryanthames/a565be4a0de7e969c6f88e84f073f875 to your computer and use it in GitHub Desktop.
Oracle - Index Information (https://app.pluralsight.com/library/courses/oracle-performance-tuning-developers/table-of-contents)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select ix.owner, ix.index_name, ix.table_name, | |
ix.distinct_keys, ix.leaf_blocks, | |
s.blocks as segment_blocks, | |
s.bytes / 1048576 as size_in_mb, | |
to_char(ix.last_analyzed, 'YYYY-MM-DD HH24:MI') as last_analyzed | |
from all_indexes ix, dba_segments s | |
where ix.owner = s.owner and ix.index_name = s.segment_name | |
order by ix.table_name, ix.index_name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment