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

Home -> Community -> Usenet -> c.d.o.misc -> Re: alter index ... disable ?

Re: alter index ... disable ?

From: Scott Mattes <Scott_at_TheMattesFamily.ws>
Date: Fri, 09 May 2003 22:18:20 GMT
Message-ID: <MOVua.15932$Jf.7599845@news1.news.adelphia.net>


Don't know, just asking, but how about ALTER INDEX UNUSEABLE?

"Malcolm Dew-Jones" <yf110_at_vtn1.victoria.tc.ca> wrote in message news:3ebc2213_at_news.victoria.tc.ca...
> Is there a way to temporarily disable an index so that a group of updates
> do not require the index to be unpdated until some later time?
>
> You can do this with a primary constraint index, but I don't see how to do
> this on other "ordinary" indexes.
>
> I examined the ALTER INDEX command, but it does basically the reverse of
> what I want. It stops _queries_ from using the index, but INSERT's etc
> still update the index.
>
> What I want is to stop updating the index until after a load of data has
> been added. (Obviously queries have to stop using the index, but that's
> ok).
>
> Right now I DROP the index and then CREATE it afterwards, but that means I
> have to know the columns of the index. It's easy enough to know the
> columns, but it would be even easier to simply reference the index by name
> "TURN INDEX xx OFF" and then "TURN INDEX xx BACK ON", and occasional
> changes to the indexes would be easier to manage as nothing would change
> unless you added (or removed) an index, and even then it would still be
> simpler as just the name of the index would be added or removed.
>
> Suggestions welcome.
>
Received on Fri May 09 2003 - 17:18:20 CDT

Original text of this message

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