Oracle Logical Structure (1) Table Space Overview

Source: Internet
Author: User
Tags one table reserved rollback

1. Table Space (tablespace)

A table space is a basic logical structure in a database, a collection of data files. A table space can contain multiple data files, but a data file can belong to only one table space.

Query table space:

Sql>select * Form Dba_data_files;

Query table space for idle information:

Sql>select * from Dba_free_space;

Sql>alter tablespace * * * *? Offline

Limit table space Size:

Sql>alter User * * * * Quota ***m on * * *

The temporary tablespace is used by the order BY statement that is sorted for the user. You can specify the default temporary tablespace for the database when you create the database. You can specify a user's default temporary tablespace when creating a user. For example, the following sentence specifies the temp table space for the user.

Sql>create USER * * * * Identified by * * * Temporary tablespace temp;

2, paragraph (Segment)

The segment is the space that the object occupies in the database, although the segment and the database object are one by one corresponding, but the segment is from the database storage point of view. A segment can only belong to one table space, and of course a table space may have multiple segments.

Table spaces and data files are one-to-many relationships on physical storage, and table spaces and segments are one-to-many relationships on logical storage, and segments do not directly relate to data files. A segment can belong to more than one data file, and the paragraph can specify which data file to extend to.

Paragraph can be divided into the following four kinds of basic

Data segment (Segment)

Indexed Segment (Index Segment)

Rollback segment (Rollback Segment)

Temporary segment (Temporary Segment)

3. Interval (Extent)

There are many explanations for the translation of extent, some translations are extended, and some translations are in the area, which I usually translate into intervals. There can be multiple intervals in a segment, the interval is a large storage space reserved for data once, until that interval is filled, and the database continues to request a new reserved storage space, that is, the new interval, up to the maximum interval of the segment (Max Extent) or no available disk space to request. In the oracle8i version, theoretically a segment can be infinite, but multiple intervals have a performance impact on Oracle, and Oracle proposes to distribute the data

In as few intervals as possible, to reduce Oracle's management and head movement.

4. Oracle Data blocks (block)

Oracle's most basic storage unit, which is an integer multiple of the OS data block. Oracle operates on a block-by-unit basis, and an interval can contain multiple blocks (if the interval size is not an integer multiple of the block size, Oracle actually extends to the integer multiple of the block).

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/Oracle/

Related Article

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.