Internal maintenance of B * Tree indexes in Oracle Database

Source: Internet
Author: User

In the last week, I reviewed index-related things. In addition to reviewing concept, I also saw a good document on MOS. Share with you.

Document No.: [ID 30405.1]

This article is only concerned with B * tree indexes which are currently the most commonly used. the theory of B * tree indexes is beyond the scope of this article; for more information refer to computer science texts dealing with data structures.

This document only describes the most common B * tree indexes currently. The principle of B * tree Indexing is beyond the scope of this document. For more information, see the data structure principle of the computer.

Format of Index Blocks
~~~~~~~~~~~~~~~~~~~~~~

Index Structure (format ?)

Within a B * tree index, index blocks are either branch blocks, the upper blocks within the B * tree index, or leaf blocks, the lowest level index blocks. branch blocks contain index data that point to lower level index blocks. leaf blocks contain every indexed data value and a corresponding ROWID used to locate the actual row.

In B * tree indexes, there are two types of index blocks: branch block, leaf block, and high level, A low level (low level, at the bottom of the index ). The branch block contains the pointer that locates low-level index blocks (possibly branch blocks or leaf blocks. The leaf block contains each index data value and the corresponding rowid (used to locate the real row ).

The following is the distribution of an index block:


Index Block Format


| ----------------------------------------------------- |
|
| Index Block Header |
|
------------------------------------------------------ |
|
| Space reserved for future updates |
| And inserts of new rows with the |
| Appropriate key values |
|
| ----------------------------------------------------- | <-PCTFREE say 10
|
| Index Key Data |
|
|
|
|
|
|
|
|
|
| ----------------------------------------------------- |


B * tree Index Creation

  • 1
  • 2
  • 3
  • 4
  • Next Page

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.