Create, modify, and delete Oracle tablespaces

Source: Internet
Author: User

CREATE TABLE Space
Create tablespace myfirstspace datafile '/opt/oracle/app/oracle/product/9.2.0/dbs/myfirstspace.ora ' size 512M Autoextend on NEXT 5M MAXSIZE UNLIMITED default storage (initial 128K NEXT 2M pctincrease 0);
  
Sql>create tablespace Fred
DataFile ' d:\oracle\oradata\orcl\fred01.dbf '
Size 100K reuse; (reuse for handling already existing datafiles)
  
  
To delete a table Space command:
Sql>drop tablespace INDX including contents;
Drop tablespace BLOBS including contents;
Drop tablespace BLOBS include contents and datafiles; (delete content and datafiles)
  
To change the table space size command:
sql> ALTER database datafile ' indx.dbf ' resize 500M;

 
ALTER tablespace spacename ADD datafile ' c:\orant\database\usr02.dbf '
DEFAULT STORAGE (INITIAL 4M NEXT 2 M);

Create, modify, and delete Oracle tablespaces

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.