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: Delete no rollback

Re: Delete no rollback

From: Henri Rautiainen <joku_at_microsoft.fi>
Date: Wed, 02 Oct 2002 18:42:13 GMT
Message-ID: <96Hm9.437$pb2.25088@read2.inet.fi>


Hi Miko,

If you don't want to delete all the rows in the table, try delete with where clause:
and rownum < 1000
this deletes only first 1000 matching rows of the table. Perhaps your rollback segments allows you to use even bigger rownum. You can then repeat this in loop with commit as long as there are no rows to delete.

H

"Miko" <poncz_at_hotmail.com> kirjoitti
viestissä:3b8c19dd.0210010112.61e0b239_at_posting.google.com...
> Can I make a delete query with no rollback?
> I would like to delete 1,000,000 records from my DB but after running
> the delete query my DB returns an error about the rollback.
> I don't want to increase the rollback because I don't want this query
> to rollback.
> Can anyone help me?
>
> Thanks,
> Miko
Received on Wed Oct 02 2002 - 13:42:13 CDT

Original text of this message

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