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: Does index need rebuilding when table is truncated

RE: Does index need rebuilding when table is truncated

From: Ron Rogers <RROGERS_at_galottery.org>
Date: Thu, 11 Apr 2002 04:33:26 -0800
Message-ID: <F001.0044183C.20020411043326@fatcity.com>


Good point Robert,
 The reason the index space still exists after a lot of deletes is the method the index is stored in the database. very similar to the old organization chart of a large corporation. If you eliminate all of the people between the CEO and the janitor you still have the multiple levels displayed on the chart. The may be vacant and just pointers to the next lower level but the still exist on the chart. Indexes are stored the same way. One block points to the next and so forth from the top to the bottom. Remove all of the data between the two and the "path" from the top to the bottom still exists thus the index storage is still used. If you export the data, truncate the table and import the data the "path becomes top-to-bottom one step and the old index storage area is freed up. The janitor then reports directly to the CEO. Ron
ROR mª¿ªm

>>> Robert_Freeman_at_csx.com 04/09/02 06:33PM >>> There is not a HWM indicator for an index as there is for a table. When a truncate occurs, the blocks are cleared in the index and the extents (beyond the initial extent) are deallocated (assuming you do not
issue the reuse storage clause).

RF

-----Original Message-----
Sent: Tuesday, April 09, 2002 5:52 PM
To: Multiple recipients of list ORACLE-L

Hello,

Lisa, what I was wondering when I read Rick's e-mail was... what about the
HWM for the indexes when someone truncates a table. The table's HWM pointer
gets reset of course, but I can never recall seeing anything about what
happens to the index space.

Thank you,

Paul Sherman
DBA
voice - 781-501-4143 (office)
fax - 781-278-8341 (office)
email - psherman_at_elcom.com

-----Original Message-----
Sent: Tuesday, April 09, 2002 5:33 PM
To: Multiple recipients of list ORACLE-L

Hi Rick,

Nope. Try it. You'll see that the extents clear up just like the extents
in the table do, if you don't specify the REUSE STORAGE clause.

Lisa Koivu
Oracle Database Tank
Fairfield Resorts, Inc.
954-935-4117

> -----Original Message-----
> From: Rick_Cale_at_teamhealth.com [SMTP:Rick_Cale_at_teamhealth.com]

> Sent: Tuesday, April 09, 2002 5:11 PM
> To: Multiple recipients of list ORACLE-L
> Subject: Does index need rebuilding when table is truncated
>
> Hi All,
>
> I know if you delete lots of data using delete the indexes may need
> rebuilding. Is this the case if the table is truncated?
>
> Thanks
> Rick
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: Rick_Cale_at_teamhealth.com
>
> 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_at_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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Koivu, Lisa
  INET: lisa.koivu_at_efairfield.com 

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_at_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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Sherman, Paul R.
  INET: PSherman_at_elcom.com 

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_at_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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: Freeman, Robert 
  INET: Robert_Freeman_at_csx.com 

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_at_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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ron Rogers
  INET: RROGERS_at_galottery.org

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_at_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).
Received on Thu Apr 11 2002 - 07:33:26 CDT

Original text of this message

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