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: Terry Ball <terry_ball_at_csgsystems.com>
Date: Thu, 26 Jul 2001 08:37:41 -0700
Message-ID: <F001.0035617E.20010726084114@fatcity.com>

Well, I have disabled FK constraints, done a truncate and re-enabled.

Terry

"Miller, Jay" wrote:

> You would need to drop any foreign key constraints pointing to that table
> before truncating and then recreate them after reloading the data.
> If I remember correctly, simply disabling them won't work since Oracle
> treats Truncate Table the same as Drop Table in many ways.
> Other constraints (NOT NULL, etc) won't be affected.
>
> Also, depending on the size of your initial extent and the amount of data
> you have remaining, you might be able to resize the one remaining datafile
> down after you truncate the table. (e.g., if your initial exent is 5 Meg and
> you don't anticipate ever having more than 1 Meg of data, you can RESIZE the
> datafile down to 5 Meg after the truncate).
>
> Jay Miller
>
> -----Original Message-----
> Sent: Thursday, July 26, 2001 8:36 AM
> To: Multiple recipients of list ORACLE-L
>
> This can be done . But what about the constraints ?
>
> ----- Original Message -----
> To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com>
> Sent: Thursday, July 26, 2001 5:41 PM
>
> > I think this is happening because when you DELETE data the High Water
> > Mark(HWM) is not lowered. Essentially
> > you have not gained any freespace. If possible you could export remaining
> > data truncate table then re-import.
> >
> > Correct me if I am wrong here.
> >
> > Rick
> >
> > -----Original Message-----
> > Sent: Thursday, July 26, 2001 7:41 AM
> > 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: Cale, Rick T (Richard)
> > INET: RICHARD.T.CALE_at_saic.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: 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: Miller, Jay
> INET: JayMiller_at_TDWaterhouse.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: Terry Ball
  INET: terry_ball_at_csgsystems.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 - 10:37:41 CDT

Original text of this message

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