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: how to handle updates to millions of rows

Re: how to handle updates to millions of rows

From: Eric Parker <eric.parkerthedross_at_virgin.net>
Date: Fri, 27 Aug 2004 19:43:49 +0100
Message-ID: <2p9dn7Fi72lpU1@uni-berlin.de>


"Peter Mueller" <lord.of.board_at_gmx.de> wrote in message news:e3b18ff5.0408270202.7de499a5_at_posting.google.com...
> Unfortunately the merge command is not what I was looking for.
> I just need to find an efficient way to join data from two tables and
> have the original records deleted.
>
> before:
>
> table a (apx. 8.000.000 records)
> table b (apx. 8.000.000 records)
> table a_an_b_joined (0 records)
>
> What I would like to have afterwards:
>
> table a (apx. 1.000.000 records)
> table b (apx. 1.000.000 records)
> table a_an_b_joined (apx. 7.000.000 records + converted currencies)
>
> The procedure has to be run once a month.
> How can I achieve this?
>
> Best regards,
> Peter
>
> DB = ORACLE 9i
>
>

Peter

If you can't go to UNDO or adjust rollback have you considered

Loop
Open cursor
Deal with 10,000 rows (insert, delete, delete) Commit
Close cursor
End Loop

Regards

eric

--
Remove the dross to contact me directly
Received on Fri Aug 27 2004 - 13:43:49 CDT

Original text of this message

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