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: Table not reusing deleted space

Re: Table not reusing deleted space

From: Dave Hau <davehau123_at_netscape.net>
Date: Wed, 01 Oct 2003 12:29:39 -0800
Message-ID: <F001.005D1B60.20031001122939@fatcity.com>


Hi Leng,

You mentioned that the table is subject to high insert, update and delete activity. Is it possible that the high watermark of the table has in fact been growing, even though the steady state size is around 200K rows? Since deletes don't actually shrink the size of a table (only truncates do), if the high watermark of the table keeps growing, the table size will grow too, even if you later on delete many of the rows. If this is the case, you might want to look into partitioning the table (so that you can drop a partition instead of deleting rows) or regularly rebuilding the table.

HTH, Dave

Leng.Kaing_at_team.telstra.com wrote:
> Hello everyone,
>
> Env: 8.1.7.4, SunOs 5.8 64 Bit
>
> We seem to hitting bug 1262161. The bug seems to imply that tables with triggers behind them do not reuse blocks on the freelist. We have a table that should only use 1G (num_rows * avg_row_len), but is actually using 4.1G and growing in size!! It is subject to high inserts, deletes and updates. But the resultant number of rows is around 200K rows. The insert is just a normal insert, no APPEND hint is used. Updates do not really expand the rows.
>
> We've changed PCTUSED from 40 to 70 to no avail. The table does not seem to reuse the deleted space.
>
> In trying to prove this error in our environment I've created 5 test scenarios but was never able to reproduce the problem. It only exists on our production database. I'm stumped. Has anyone encountered this problem?
>
> Or can someone explain to me why our production database is not reusing the space deleted and placed back on the free list? I should also add that the table in question is a master table of a snapshot.
>
> TIA,
>
> Leng.
>
> ----------------------------------------------------------
> Leng Kaing
> Email: leng.kaing_at_team.telstra.com
> Phone: +61-3-9203-7589
> Mobile: +61-417-371-348
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Dave Hau
  INET: davehau123_at_netscape.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 Wed Oct 01 2003 - 15:29:39 CDT

Original text of this message

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