Oracle FAQ Your Portal to the Oracle Knowledge Grid

Home -> Community -> Mailing Lists -> Oracle-L -> Re: online index rebuilds

Re: online index rebuilds

From: Tanel Põder <>
Date: Mon, 30 Jan 2006 13:58:20 -0600
Message-ID: <055c01c625d7$8a877f90$c6bc21c8@porgand>


Thinking about why full table scan is required for online index rebuild... Maybe the potential index block splits are the reason why index FFS can't be used for online index rebuild? Consistent reads should overcome this issue though, but maybe there is something we don't know...

Btw, with offline index rebuild the decision whether to go with FTS or index FFS is also cost based (at least 10.2). If I have only single-column table indexed then the offline rebuild may do an FTS instead of fasf full index scan. (also, even in the case of fast full index scan, rows have to be sorted anyway, because index fast full scan doesn't guarantee an ordered result).


  Any other differences besides: 1) does not lock the table; 2) does a full table scan instead of full index scan; ?     -----Original Message-----
    From: []On Behalf Of Joseph Amalraj     Sent: Tuesday, January 24, 2006 9:48 AM     To: Bobak, Mark;; ORACLE-L     Subject: RE: ORA-01652: unable to extend temp segment


    Had read the article, but I am interested as to why Oracle is doing a full table scan instead of full index scan for online index rebuilds.

    "Bobak, Mark" <> wrote:       Well, my name is not Tanel, but I'll jump in here and point you to MetaLink Doc ID 272762.1.

      Mark J. Bobak 
      Senior Oracle Architect 
      ProQuest Information & Learning 
      "There are 10 types of people in the world:  Those who understand binary, and those who don't." 

      From: [] On Behalf Of Joseph Amalraj
      Sent: Tuesday, January 24, 2006 9:59 AM
      To: ORACLE-L
      Subject: Re: ORA-01652: unable to extend temp segment

      Thanks Tanel, 

      Is there any reason why Oracle does full table scans for online rebuilds and not for offline.


      Joseph Amalraj

      Tanel Põder <> wrote:
        Online rebuilds don't use existing index for creating new. They do full table scan on the table.

        However, in both cases, old index segment is kept until new one is ready to use and switch to it is done. Also the journal IOTs used for online rebuilds are stored in the target tablespace, so if you've got lots of transaction s going on while you are rebuilding the index onl ine, you need additional space in target tablespace.


  This e-mail is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. Any review, dissemination, copying, printing or other use of this e-mail by persons or entities other than the addressee is prohibited. If you have received this e-mail in error, please contact the sender immediately and delete the material.

  This email has been scanned for all viruses by the MessageLabs Email Security System. Any questions please call 972-721-8257 or email your request to
Received on Mon Jan 30 2006 - 13:58:20 CST

Original text of this message