Create Table space statement in Oracle!

Source: Internet
Author: User

1 create tablespace db_name

2 datafile 'd: \ oracle \ product \ 10.2.0 \ oradata \ orcl \ db_name _. dbf'size 200 m

3 autoextend on next 10 m maxsize unlimited Logging

4 extent management local autoallocate

5 segment space management auto;

Explanation:

1. create a tablespace named db_name; 2. the tablespace has a data file *. DBF, 200 MB in size; 3. allows automatic expansion of tablespaces (autoextends), increasing by 10 MB (next 10 m) each time without limiting the maximum size; 4. it indicates that the tablespace is managed locally and the range is automatically allocated (autoallocate). You cannot specify the range size. segment space (segment) uses bitmaps (auto) to manage data blocks. Using Auto has better space utilization and efficiency than using manual.

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.