Let's talk about IOT and mappingtable.

Source: Internet
Author: User
As a trainer for many years, when students have completed Chapter 10th or 11g related chapters of 1Z0-043, they often don't know What IOT and mappingtable are doing. Let me say a few words about these two things: 1) when you create an IOT table

As a trainer for many years, when students have completed Chapter 10th or 11g related chapters of 1Z0-043, they often don't know What IOT and mappingtable are doing. Let me say a few words about these two things: 1) when you create an IOT table

As a trainer for many years, when students have completed Chapter 10th or 11g related chapters of 1Z0-043, they often don't know What IOT and mappingtable are doing. Let me say a few words about these two things:

1) when you create an IOT table and want to create a bitmap index for one of the above columns (of course, other columns with non-primary keys) (note that it is not a common B-tree ),, you must create a mappingtable. ---- Required. Have you noticed the error message when mappingtable is not found?
2) Check user_objects and find the object_id of IOT. Use this object_id:

Select * from dba_tables where table_name like '% object_id %' just found ';

Find the table with the mapping word, which is the mappingtable.

3) Note that Mappingtable is a heaptable used to store the logic rowid of IOT. Each row of the Mappingtable stores the logicalrowid recorded in the corresponding IOT table. Therefore, this mappingtable maintains the row location relationship of the IOT table.

4) Why?
Because the rowid stored in the bitmap index entries must use physicalrowid, IOT cannot provide stable physicalrowid, so bitmapindex can only record the physicalrowid of the mappingtable. The execution plan accessed through the bitmap index is probably to first access the mappingtable Based on the mappingtablephysicalrowid recorded in the bitmapindex, and then access the IOT table through the logicalrowid in the mappingtable.


A metaphor: The curve saves the nation.

This article is from the blog "botang tangbo Oji store". Please keep this source

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.