Add tablespace in Oracle

Source: Internet
Author: User

1,
Run the following SQL statement to find the path of the data file that stores the tablespace:

-- Sep 28,200 8
Eleven. Xu

Select
DDF. file_name

From dba_data_files DDF

Where DDF. tablespace_name = 'apps _ ts_tx_data'

2. log on to PL/SQL developer with system/Manager

Create a command window

Run the following SQL statement:

Alter tablespace pai_ts_tx_data add datafile
'/D01/DBA/vis01data/tx_data14.dbf' size 100 m ; (Add 100 m To tablespace _ ts_tx_data)

Note: run the preceding command to add the tx_data **. DBF file. ** replace the number in "No SQL result exists". Generally, add 1 to the maximum number in the SQL query.

 

For example:

Through 1, the following data files are found in the currently performance_ts_tx_data tablespace:

/D01/DBA/vis01data/tx_data1.dbf

/D01/DBA/vis01data/tx_data2.dbf

...

/D01/DBA/vis01data/tx_data14.dbf

Use 2 to add a new tablespace:

/D01/DBA/vis01data/tx_data15.dbf
(The number of the newly added tablespace is generally the number of the previous number plus 1, that is, 15)

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.