Row chaining and migrating

Source: Internet
Author: User

Row chaining and migrating

In two circumstances, the data for a row in a table may be too large to fit into a single data block. in the first case, the row is too large to fit into one data block when it is first inserted. in this case, Oracle stores the data for the row in a chain of data blocks (one or more) reserved for that segment. row chaining most often occurs with large rows,
Such as rows that contain a column of datatype long or long raw. Row chaining in these cases is unavoidable.

However, in the second case, a row that originally fit into one data block is updated so that the overall row length increases, and the block's free space is already completely filled. in this case, Oracle migrates the data for the entire row to a new data block, assuming the entire row can fit in a new block. oracle preserves the original row piece
Of a migrated row to point to the new block containing the migrated row. The rowid of a migrated row does not change.

 

These two concepts are often confused and checked several times.

Record it here today

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.