Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Deletion of Records

Re: Deletion of Records

From: Ron Reidy <rereidy_at_indra.com>
Date: Tue, 22 Apr 2003 05:09:17 -0600
Message-ID: <3EA522DD.80406@indra.com>

  1. Copy the rows you want to keep to a temp table.
  2. Truncate the perm table.
  3. Copy the rows from temp back to perm
  4. Drop temp.

priya wrote:
> I have a table under Oracle 9i with 20 million records. I have one primary
> and 4 secondary indexes. If i try to delete certain records (80%) of the
> records. It takes
> days to delete. How to do it fast.
>
> Your help in this regard is appreciated.
>
> Thanks
>
>
>
>
Received on Tue Apr 22 2003 - 06:09:17 CDT

Original text of this message

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