you can also do the following:

1. create table as and copy just the records you want to keep.
2. Drop the old table
3. rename new table to old table
4. re-create the indexes. if there are alot, issue them as jobs and do it at
the same time.


----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 5:44 PM


> This is one of the cases where a partitioned table can be of great use.
What version of Oracle? Standard or Enterprise Edition?
> With a partitioned table you can say
> alter table ... drop partition ... ;
> to easily get rid of a large chunk of data and release the space.
>
> See
> Oracle9i Database Concepts Release 2 (9.2)
> Part Number A96524-01
> Chapter 11
> Partitioned Tables and Indexes
>
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96524/c12parti
.htm#464767
>
> or
>
> http://tinyurl.com/362ba
>
>
> -----Original Message-----
> Nguyen, David M
>
> I am using delete command to delete million records in several tables to
free up space in tablespace.  I understand delete command does not release
unused spaces as truncate command but I could not use truncate to delete ALL
records in table as I need to keep one month old of records in table.
Please advise a better method I can use to free up spaces.
> Thanks,
> David
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Jacques Kilchoer
>   INET: [EMAIL PROTECTED]
>
> 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: [EMAIL PROTECTED] (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.net
-- 
Author: Ryan
  INET: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to