How to add tablespaces in ORACLE

Source: Internet
Author: User

How can I add tablespaces in ORACLE? Many new users who are new to ORACLE databases have mentioned this problem. The following describes how to add a tablespace in ORACLE for your reference.

1. <! -- [Endif] --> execute 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; increase by M to the TABLESPACE of pai_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

Add tablespace in ORACLE:

/D01/dba/vis01data/tx_data15.dbf the number of the newly added tablespace is generally the previous number + 1, that is, 15)
 

Syntax for creating views in Oracle

Statement for creating a tablespace in oracle

Implementation of oracle re-Indexing

Complete Oracle File System Parsing

ORACLE system table and data dictionary View

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.