RE: Tablespace growing like anything and free blocks not reutilized.

From: Warren Puziewicz <>
Date: Fri, 28 May 2010 16:14:50 +0100
Message-ID: <>

Is the ETL code doing INSERT /*+ APPEND */ ? That will always insert above the high water mark, never using existing empty space.

From: [] On Behalf Of Vamshi Damidi Sent: 28 May 2010 16:08
Subject: Tablespace growing like anything and free blocks not reutilized.

Hi All,

I have below problem let me first give you some information.

Environment : DatawareHouse.
Version : Oracle Enterprise all the patches applied. Blocksize : 16k
Tablespace : extent management local uniform 100m segment management auto. Disk : Raid 5 of 1tb space with 8 disks. OS : RHEL 5 .Runnning LVM.

I have above environment and some tables have lob and long columns and millions of rows and some tables are 0 rows tables. We are in testing phase and this is dev env and ppl keep deleting millions of rows and reload them.

When they reload i am expecting that table should use extents also allocated to it but

The extents already allocated are not being used and it looking for new space and tablespace is growing like anything.

when i check the dba free space i get every thing less than 100mb avaliable.

when i perform below actions.

alter table <table name > enable row movement;
alter table < table name > move;
alter table < table name > shrink space;
rebuild all the indexes.

i get around 250gb of space as free in dba_free_space.

so i performed a test case to see whats happenning

One of my table is having clobs which when imported takes 20g of size .

After developers deleted that table i still see the same space occupied in dba_extents which is obvious. and i check the rows which is 0 so i truncated that table and now all the space is released and now its taking only 100m in dba_extents.

But when i developer try to insert into same table its trying to take new extents when truncate is not performed and shrink is not done instead of existing ones already allocated to that.

Masters I need your ideas.

Vamshi .D

This email has been scanned by the MessageLabs Email Security System

DISCLAIMER This message and any attachments contain privileged and confidential information intended for the use of the addressee named above. If you are not the intended recipient of this message, you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. Please note that we cannot guarantee that this message or any attachment is virus free or that it has not been intercepted and amended. The views of the author may not necessarily reflect those of Realtime Worlds Ltd.  

Realtime Worlds Ltd is registered in Scotland, number 225628. Registered Office: 152 West Marketgait, Dundee, DD1 1NJ.

Received on Fri May 28 2010 - 10:14:50 CDT

Original text of this message