Oracle Set table space does not limit ____oracle

Source: Internet
Author: User

Oracle Set table space not Limited

1. View each table space status
SELECT file_name,tablespace_name,autoextensible from Dba_data_files;

2. The table space is infinitely large
alter DATABASE datafile '/U02/ORADATA/RSJDB/USERS01.DBF '  autoextend on MaxSize Unlimited;

3. Table space, table
sql> create tablespace tbs01 datafile ' d:\orcl\tbs01.dbf ' size 1M autoextend on
next 512K maxsize Unli Mited Logging Extent management Local segment space manage
ment auto; 

The table space has been created. 

sql> CREATE TABLE SCOTT.TAB01 (c int) tablespace tbs01; 
Table has been created. 

sql> CREATE TABLE SCOTT.TAB02 (c int) tablespace TBS02; 
Table has been created. 

sql> INSERT INTO SCOTT.TAB01 values (1); 
1 lines have been created. 

sql> INSERT INTO SCOTT.TAB01 values (2); 
1 lines have been created. 

sql> INSERT INTO SCOTT.TAB02 values (1); 
1 lines have been created. 

sql> INSERT INTO SCOTT.TAB02 values (2); 
1 lines have been created. 

sql> commit; 
Submit completed. 

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.