Home » RDBMS Server » Performance Tuning » Optimal Chunk size for update of 50M record table (Oracle 11g RAC, Linux OEL 6)
Optimal Chunk size for update of 50M record table [message #672106] Wed, 03 October 2018 04:56 Go to previous message
Andrey_R
Messages: 441
Registered: January 2012
Location: Israel
Senior Member
Hi all,

- Large table - 50M records
- Of which I need to update 40M records.
- Production environment, while working
- Cannot prevent accessing the table - transactional data frequently read & updated ( but not the records I am updating )
- Cannot do set the table or the operation to NOLOGGING , and cannot rename/have it offline for no time whatsoever

I know it's the worst conditions possible, but I was challenged to do so numerous time by different customers.


So I tried to update the table at once - but even when setting the UNDO_RETENTION & RETENTION_GUARANTEE parameters to provide more resource for the operation - got problems with the UNDO tablespaces.

Which led me to try to update the table in chunks , every 10k records, or every 50k records e.t.c

Which leads me to the final question I am asking you DBA experts:

How can I calculate the optimal chunk size for an update on a large table in the given scenario ?



Which params do I need to take into account, which considerations do I make ?

Thanks in advance,
Andrey

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A question about how to code a procedure to use dbms_parallel_execute package for a huge insert
Next Topic: how to avoid window sort?
Goto Forum:
  


Current Time: Thu Apr 18 09:28:58 CDT 2024