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

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

Re: Deletion of Records

From: Lothar Armbruester <lothar.armbruester_at_t-online.de>
Date: Tue, 22 Apr 2003 18:51:58 +0200
Message-ID: <PM0003BBE810C53020@hades.none.local>


priya wrote:
> I have a table 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.

Hello Priya,
one option is to dump out the rows to keep into a flat file, truncate the table and then load the flat file back into the database using SQL*Loader with direct path.

Hope that helps,
Lothar

-- 
Lothar Armbrüster       | la_at_oktagramm.de
Hauptstr. 26            | la_at_heptagramm.de
D-65346 Eltville        | lothar.armbruester_at_t-online.de
Received on Tue Apr 22 2003 - 11:51:58 CDT

Original text of this message

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