Unix Technical Forum

Reduce or shrink the physical size of a text index

This is a discussion on Reduce or shrink the physical size of a text index within the Oracle Database forums, part of the Database Server Software category; --> For some reason a few of our text indexes have blown out to about 3Gb. I'm still investigating why. ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 04:06 PM
Snewber
 
Posts: n/a
Default Reduce or shrink the physical size of a text index

For some reason a few of our text indexes have blown out to about 3Gb.
I'm still investigating why. Is it possible to reduce the physical size
of the index while keeping it online? Is it even possible to reduce it's
physical size without dropping it?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 04:06 PM
www.twisted-nail.com
 
Posts: n/a
Default Re: Reduce or shrink the physical size of a text index


Snewber je napisal:
> For some reason a few of our text indexes have blown out to about 3Gb.
> I'm still investigating why. Is it possible to reduce the physical size
> of the index while keeping it online? Is it even possible to reduce it's
> physical size without dropping it?


Hi Snewber,

You can rebuild indexes online. Syntax:
alter index INDEX_NAME rebuild online.

Best regards,
Primoz
www.twisted-nail.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 04:07 PM
DA Morgan
 
Posts: n/a
Default Re: Reduce or shrink the physical size of a text index

www.twisted-nail.com wrote:
> Snewber je napisal:
>
>>For some reason a few of our text indexes have blown out to about 3Gb.
>>I'm still investigating why. Is it possible to reduce the physical size
>>of the index while keeping it online? Is it even possible to reduce it's
>>physical size without dropping it?

>
>
> Hi Snewber,
>
> You can rebuild indexes online. Syntax:
> alter index INDEX_NAME rebuild online.
>
> Best regards,
> Primoz
> www.twisted-nail.com


Addendum: For domain indexes you can only rebuild them if they are
not marked IN_PROGRESS.

also:
http://download-west.oracle.com/docs....htm#CCREF0101
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 04:10 PM
Pratap
 
Posts: n/a
Default Re: Reduce or shrink the physical size of a text index

1. May be you sync your index too often. In that case use should
optimize the index from time to time (See API for optimization). You
can do this online and this will reduce the size of the index by
eliminating the duplicate tokens in the $I table

2. Use compress 2 for $I indexes. Don't fire the alter on the $I table
directly. See the docs for how to do this for text indexes

3. See if your stoplist is intact. You may wish to introduce more noice
words in the stoplist by analyzing your data (You won't be able to
search using these words though)

Regards,
Pratap

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 04:12 PM
Snewber
 
Posts: n/a
Default Re: Reduce or shrink the physical size of a text index

Thanks for the information. Unfortunately I was consulted about the text
indexing and so I now have to review all the parameters to fix things
up. I have to review case insensitive options, no indexing of numbers,
the stemming stuff that includes words of 3 to 6 characters and also the
addition of extra stopwords.

Yes it is the syncrhonising that is causing the blow outs. I just
dropped and recreated the indexes and this resulted in their sized
dropping from gigabytes to a few hundred Mb. I have also implemented
index optimisation first to reduce index size.

What do you mean by compress? Guess I'll look into this.

Also, the doco states not to use the alter index ... stuff for context
indexes, but the alter index ... rebuild ... parameter ... seems to be
the only way to reduce the size of the indexes online, although I
couldn't get the parameter syntax to work correctly so I'm not sure if
this would reduce physical size?





Pratap wrote:
> 1. May be you sync your index too often. In that case use should
> optimize the index from time to time (See API for optimization). You
> can do this online and this will reduce the size of the index by
> eliminating the duplicate tokens in the $I table
>
> 2. Use compress 2 for $I indexes. Don't fire the alter on the $I table
> directly. See the docs for how to do this for text indexes
>
> 3. See if your stoplist is intact. You may wish to introduce more noice
> words in the stoplist by analyzing your data (You won't be able to
> search using these words though)
>
> Regards,
> Pratap
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:06 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com