Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g2LHc0006551
 for <oracle-l@naude.co.za>; Thu, 21 Mar 2002 12:38:00 -0500
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id JAA64851;
 Thu, 21 Mar 2002 09:41:50 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b70/bab) via UUCP id 0042FF9A; Thu, 21 Mar 2002 09:08:28 -0800
Message-ID: <F001.0042FF9A.20020321090828@fatcity.com>
Date: Thu, 21 Mar 2002 09:08:28 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Jonathan Lewis" <jonathan@jlcomp.demon.co.uk>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Jonathan Lewis" <jonathan@jlcomp.demon.co.uk>
Subject: Re: Rebuilding Index Organised Tables (IOTs)
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 70; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain;	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit


Correct, and apologies, it's too easy to give
the quick and simple answer.

If you want to rebuild the whole thing, without
changing tablespaces, then:

    alter table iot_tab move overflow;

You can't move the overflow with an online move,
of course (except in Oracle 9, I expect).

If you also have LOB columns you may have to
add further details to make those move too, such as

    alter table iot_lob_tab move lob(my_lob) store as my_lob_seg;

which would rebuild the index layer, overflow layer, and
lobsegment layers.


Jonathan Lewis
http://www.jlcomp.demon.co.uk

Next Seminar - UK, April 3rd - 5th
http://www.jlcomp.demon.co.uk/seminar.html

Host to The Co-Operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

Author of:
Practical Oracle 8i: Building Efficient Databases


-----Original Message-----
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
Date: 20 March 2002 22:41


|It seems to me that alter table <iot_table> move --> just rebuilds
the the
|branching part of the index.
|So if this is the case---> export & import or create table <iot> as
... are
|the best way to do the real job.
|
|Corrections and feedback are welcomed.
|
|Waleed
|


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jonathan Lewis
  INET: jonathan@jlcomp.demon.co.uk

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

