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: deletion of data from a large table

RE: deletion of data from a large table

From: <MHately_at_etech-uk.com>
Date: Thu, 26 Jul 2001 04:35:44 -0700
Message-ID: <F001.00355C81.20010726044258@fatcity.com>

Hi folks,

Rick Cale was correct in saying that a truncate would release the storage by default.
The only other option is to drop and recreate the table.

Oracle will only release allocated storage when it is specifically asked to. The overhead on having a process monitoring which space it can drop would be prohibitive and needless. ( Imagine an example where an interface table is constantly filled and emptied - do you really want the storage to be constantly allocated and deallocated? ).

Coalescing the tablespace will group adjacent free extents together but will have no effect on allocated blocks.

Regards,
Mike Hately,
Oracle DBA

|--------+------------------------------>

|        |          "Ramasamy, Baskar"  |
|        |          <Baskar.Ramasamy_at_cal|
|        |          anais.com>          |
|        |                              |
|        |          07/26/01 01:17 PM   |
|        |          Please respond to   |
|        |          ORACLE-L            |
|        |                              |

|--------+------------------------------>
>-----------------------------------------------------------------| | | | To: Multiple recipients of list ORACLE-L | | <ORACLE-L_at_fatcity.com> | | cc: (bcc: Mike Hately/ETECH) | | Subject: RE: deletion of data from a large table | >-----------------------------------------------------------------|

Rukmini,

Try to do coalesce on the tablespace on which the table is sitting in after deleting rows.

alter tablespace <TSNAME> coalesce;

Baskar

-----Original Message-----
Sent: 26 July 2001 12:41
To: Multiple recipients of list ORACLE-L

Hi All,

   I have deleted 3 lakhs records from a large table. But there is no effect on tablespace i.e. before I delete the data freespace in TS is 100MB , after deletion also it is showing 100MB. What could be the reason ? How to get the freespace after deleting the data ?
Thanks
rukmini

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Rukmini Devi
  INET: rukmini_at_indbrain.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: Ramasamy, Baskar
  INET: Baskar.Ramasamy_at_calanais.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: 
  INET: MHately_at_etech-uk.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).
Received on Thu Jul 26 2001 - 06:35:44 CDT

Original text of this message

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