Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Mythical space savings of IOTs

Re: Mythical space savings of IOTs

From: Juan Carlos Reyes Pacheco <juancarlosreyesp_at_gmail.com>
Date: Fri, 8 Jul 2005 18:32:06 -0400
Message-ID: <cd4305c10507081532144cb801@mail.gmail.com>


Hi Bill,
hope this help,
If you are fighting to reduce your index size. I have 3 advices useful for me.

I think you can get some small reduction of your index if you use a 16k tablespace, I did, and it reduce very few. But finally it reduced.

I set pctfree to 0, because I don't do updates

I see you use the OPT_CMPR_COUNT, critical when compressing indexes. as the parameter to the COMPRESS

EXECUTE IMMEDIATE(' ANALYZE INDEX '||cOwner||'.'||cIndex||' VALIDATE STRUCTURE ');
 SELECT OPT_CMPR_COUNT INTO nCompression FROM INDEX_STATS WHERE NAME = cIndex;  IF NOT nCompression = 0 THEN
  cReturn := 'ALTER INDEX '||cOwner||'.'||cIndex||' REBUILD COMPRESS '||nCompression||' PCTFREE 3 NOLOGGING;';  ELSE
  cReturn := 'ALTER INDEX '||cOwner||'.'||cIndex||' REBUILD PCTFREE 3 NOLOGGING;';
 END IF;

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Jul 08 2005 - 17:34:22 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US