Oracle11gR2 does not assign segment when creating a non-Data Object

Source: Internet
Author: User
The experiment found that oracle11gR2 was used to create tables, indexes, and other objects without data. In order to save space, oracle did not allocate segment, but allocated only when there was a dml operation.

The experiment found that oracle11gR2 was used to create tables, indexes, and other objects without data. In order to save space, oracle did not allocate segment, but allocated only when there was a dml operation.

The experiment found that Oracle11gR2 was used to create tables, indexes, and other objects without data. In order to save space, oracle did not allocate segment, but allocated segment only when there was a dml operation, even if dml is rolled back, the allocated segments are not recycled.

A simple experiment is as follows:
SQL> create table test (a number );

Table created.

SQL> create index ind_test on test ();

Index created.

QL> select segment_name, bytes from dba_segments wheresegment_name = 'test' and owner = 'wxlun ';

No rows selected

SQL> insert into test values (1 );

1 row created.

SQL>
SQL> col SEGMENT_NAME for a22
SQL> select segment_name, bytes from dba_segments wheresegment_name in ('test', 'ind _ test') and owner = 'wxlun ';

SEGMENT_NAME
BYTES
--------------------------------
IND_TEST

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.