Basic Oracle problems: segment extent block

Source: Internet
Author: User

L relationship between extent and segment

The number of Oracle blocks for each extent is determined by the extent size/DB_BLOCK_SIZE. The extent size is determined by the initial, next, determine parameters such as pctincrease.


The number of extents in each segment is a dynamically scalable value. The maximum value is determined by the maxextents value in the storage clause of the SQL statement that creates or modifies the segment.


Generally, a non-partitioned table is stored as a segment.


Segment contains multiple extent, which can be controlled by some storage parameters.


The number of blocks of an extent depends on the size of the extent when you define the storage parameters, that is, the segment header has a block to store the relevant storage information. The larger the block, the more it stores.

L how to define the block size?

A data block is a part of a data file.
The redo log is called a redo block, not a data block. The size is generally equal to the size of the operating system block. You can use the query statement select max (lebsz) from x $ kccle; to obtain the size of the redo block.

For example:

SQL> conn/as sysdba

Connected.

SQL> select max (lebsz) from x $ kccle;


MAX (LEBSZ)

----------

512

The control file is not called a data block, or a control file block. You can use the select distinct block_size from v $ controlfile statement to obtain the size of a control file.

For example:

SQL> select distinct block_size from v $ controlfile;


BLOCK_SIZE

----------

16384

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.