Oracle--(d) tablespace (tablespace)

Source: Internet
Author: User
Tags one table

Basic Relationship: Database---Table space---data segment---partition---data block


table Space (tablespace)
A tablespace (tablespace) is a logical entity that contains a physical data file that holds all the data available to the database, so the size of the tablespace is also the sum of the size of the data file that contains the data, which is the primary logical storage structure of Oracle.

Tablespace is where the data in the database is stored logically, and a tablespace can contain multiple data files. If the data block configuration pctfree,pctuser,freelist Three configuration if there is a conflict with tablespace configuration, the tablespace will prevail.

A tablespace is a disk area that consists of one or more disk files, and a table space can hold many tables, indexes, or clusters. Each tablespace has a pre-made disk area called the initial interval (initial extent) and then uses the next, until the table space is used, to expand the tablespace, add data files, or enlarge existing data files.

A tablespace is the largest logical structure of an Oracle database, and an Oracle database is logically composed of multiple table spaces, a table space that is subordinate to only one database. There is a tablespace in Oracle called System, which is created automatically when the database is created or installed. Mainly used for storage system data dictionary, process, function, trigger, etc., can also store user's table, index and so on. A tablespace can have multiple data files, but a data file may belong to only one table space.

Table spaces are accessed through v$tablespace.
Sql>desc v$tablespace;
Name Type Nullable Default Comments
--------------------------- ------------ -------- ------- --------
ts# number Y
NAME VARCHAR2 (Y)
Included_in_database_backup VARCHAR2 (3) Y
Bigfile VARCHAR2 (3) Y
flashback_on VARCHAR2 (3) Y
Encrypt_in_backup VARCHAR2 (3) Y
CON_ID number Y






Oracle--(d) tablespace (tablespace)

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.