Two Methods for automatic expansion of Oracle 10 Gb tablespace

Source: Internet
Author: User

Automatic expansion of Oracle 10 Gb tablespaceHow is it implemented? This article mainly introduces this part of content, hoping to help you.

Method 1: Management Interface em

Command:

 
 
  1. ALTER TABLESPACE "TBS_NAME"   
  2. ADD DATAFILE 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\ex_data'   
  3. SIZE 10240M AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED ; 

Note: This command modifies the original tablespace.

Data File Name: ex_data

Oracle Directory: C: \ ORACLE \ PRODUCT \ 10.2.0 \ ORADATA \ ORCL

Tablespace name: TBS_NAME

File Size: 10240 MB (do not reuse existing files)

Automatic expansion after the data file is full (AUTOEXTEND): 50 M increments

Maximum file size: Unlimited

Management Interface em: Use em to resize, find the corresponding tablespace, "add data file", and fill in the above content.

Method 2:

 
 
  1. ALTER DATABASE      
  2. DATAFILE 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\ex_data'     
  3. AUTOEXTEND        
  4. ON NEXT  50M 

Note: This method is performed without modifying the original tablespace.

The above are two ways to automatically scale up the Oracle 10g tablespace. We will introduce it here. I hope this introduction will help you gain some benefits!

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.