Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: i need check fragmentation of index
Watch out though! From the 8.1.6
documentation:
"Validating the structure of an object prevents SELECT, INSERT, UPDATE, and
DELETEstatements from concurrently accessing the object. Therefore, do not
use this clause on thetables, clusters, and indexes of your production
applications during periods of highdatabase activity."
I didn't realize that until users started complaining when I tried this
a while back.
Stephen
>>> mark_at_cool-tools.co.uk 10/26/01 04:10AM
>>>Alex,This script is based around an analyze index .....
validate structure asmentined by
Deepak-------------------------------------------------------setverify offset pagesize 35set linesize 132set pause onset pause
ROWS_PER_KEY format 999.99 heading ' 'col BLKS_GETS_PER_ACCESS format 99,999.99 heading
NAME,'
HEIGHT,'
LF_ROWS,'
LF_ROWS_LEN,'
LF_BLK_LEN,'Number of branch rows = ' ||
BR_ROWS_LEN,'
||DEL_LF_ROWS_LEN,'
NAME
dummy_col_0
dummy_col_1
dummy_col_2
9,999,990 heading ' 'col DEL_LF_ROWS format 9,999,990 heading ' 'col BR_ROWS
9,999,990 heading ' 'col DISTINCT_KEYS format 9,999,990 heading ' 'col
9,999,990 heading ' 'col ROWS_PER_KEY format 9,999,990 heading ' 'col HEIGHT format 0 fold_after heading
990 fold_after heading
meg
999.90 heading ' 'col lf_meg_pct format
999.90 heading ' 'col br_meg_pct format
999.90 heading ' 'col uu_meg_pct format
999.90 heading ' 'col bt_meg_pct format
999.90 heading ' 'col btu_meg_pct format
999.90 heading ' 'col btuu_meg_pct format
999.90 heading ' 'col btuub_meg_pct format
Rows........', BR_ROWS, ' ','Leaf Rows Per Block....', LF_BLK_LEN / (LF_ROWS_LEN / LF_ROWS)lf_row_per_blk,'Distinct Keys......', DISTINCT_KEYS, ' ','Branch Block Size......', BR_BLK_LEN,'Max Common Key.....', MOST_REPEATED_KEY,
HEIGHT,'Reads Per Access...', BLKS_GETS_PER_ACCESS,' ' dummy_col_2,'Index Meg................', (BLOCKS * &BLOCK_SIZE_K) / 1024 meg,'Leaf Meg/Pct.............', (LF_BLKS * &BLOCK_SIZE_K) / 1024lf_meg, '
/',
/',
/',
/',
/',
/',
/ (((LF_BLKS + BR_BLKS) * &BLOCK_SIZE_K) /1024)) * 100btuub_meg_pctfrom
index_stats;-------------------------------------------------------HTHMark-----OriginalMessage-----ThapliyalSent: Thursday, October 25, 2001 22:16To: Multiple recipients of list ORACLE-Lhi @lexone of the good ways to check this is to do a analyzeindex .. validate structure and look at the statisticsfrom index_statsDeepak--- Alexander Ordonez <aordonez_at_ccss.sa.cr> wrote:> hi gurus, how check the fragmentation on index...??> ahy idea???> please i need your help!!>>
@lex>------------------------------------------------------------>Lic. Alexander Ordsqez Arroyo> Caja Costarricense del Seguro Social>> Soporte Ticnico - Divisisn de Informatica>> Telefono: 295-2004, San Josi, Costa Rica>>
30173325>>------------------------------------------------------------>The true is out there in WWW>>> --> Please see the official ORACLE-L FAQ:> <A
Lists>-------------------------------------------------------------------->To REMOVE yourself from this mailing list, send an> E-Mail message> to: ListGuru_at_fatcity.com (note EXACT spelling of>
subscribing).__________________________________________________DoYou Yahoo!?Make a great connection at Yahoo! Personals.<A href="">http://personals.yahoo.com--Please see the official ORACLE-L FAQ: <A
Lists--------------------------------------------------------------------ToREMOVE yourself from this mailing list, send an E-Mail messageto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing).-- Please see the official ORACLE-L FAQ: http://www.orafaq.com--
Lists--------------------------------------------------------------------ToREMOVE yourself from this mailing list, send an E-Mail messageto: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and inthe message BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing list you want to be removed from). You mayalso send the HELP command for other information (like subscribing). Received on Fri Oct 26 2001 - 11:05:42 CDT
![]() |
![]() |