Redo undo for temporary Oracle tables

Source: Internet
Author: User

1. A large number of redo records are generated for the insert operation of the Permanent Table, but almost no redo is generated for the temporary table. This makes sense. insert on a temporary table will only generate a small amount of Undo data, and only create logs for the temporary table.

 

2. The redo generated by the update of the Permanent Table is about twice the redo generated by the update of the temporary table. This is also reasonable. About half of update must be saved (that is, the previous image ). For temporary tables, you do not need to save the "Post image" (redo ).

 

3. Delete requires almost the same redo space. This makes sense, because the Undo of Delete is large, and the redo of modified blocks is small. Therefore, the delete operation on the temporary table is almost the same as the delete operation on the permanent table.

 

For the last conclusion, we need to point out some exceptions. For example, if we use a 2000-byte data update column that is completely null, very few undo data will be generated. This update is like insert. On the other hand, if I update a column with 2000 bytes of data to all null, for redo generation, this is like Delete. On average, we can think that the temporary table update is 50% of the latter compared with the Undo/Redo generated by the Permanent Table update.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.