|
|
Cry How To... Obtain information about an indexGeneral details about the index can also be found by: Analyze index <index-name> compute statistics; To obtain further detail about an index: Analyze index <index-name> validate structure; The command: Validate index <index-name>; Performs the same function. This places detailed information about the index in the table For example, to get the size of an index: validate index <index_name>; This assumes a block size of 8K (i.e. 8192 bytes). It shows the number of bytes allocated to the index and the number of bytes actually used. Note that it does not confirm that each row in the table has an index entry or that each index entry points to a row in the table. To check this: Analyze table <table-name> validate structure cascade; This page represents one page of many pages of notes I made whilst working with Oracle 7 through to 10i. I now no longer work with Oracle databases, but hope that these notes will continue to be of benefit to others. About the author: Brian Cryer is a dedicated software developer and webmaster. For his day job he develops websites and desktop applications as well as providing IT services. He moonlights as a technical author and consultant. |