Oracle database Table Space Expansion method

Source: Internet
Author: User

1. Check the location of the table space on the physical disk, and pay attention to the login using SYSDBA's account.

SELECTfile_id  file_name round/(1024x768 * 1024x768 0   from ORDER by

2. The table space that needs to be expanded is Dw_stg_tbs, the current file allocation sequence number is DW_STG_TBS20.DBF,

So in the next file to add the name starting from 21, we add 20 files at a time, the script is as follows.

The initial allocation space for each file set is 7g, Autoextend on is automatically growing, and Oracle single file size is no more than 32g.

--increase the stage layer table spaceAltertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs21.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs22.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs23.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs24.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs25.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs26.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs27.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs28.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs29.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs30.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs31.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs32.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs33.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs34.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs35.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs36.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs37.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs38.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs39.dbf'Size 7167M Autoextend on ;Altertablespace Dw_stg_tbsAddDataFile'/u01/app/oracle/oradata/crm001/dw_stg_tbs40.dbf'Size 7167M Autoextend on;

3. The above SQL is executed in PL-SQL and the query results are as follows:

4. Query table space size using an SQL statement from another article in this blog [Oracle database storage usage query]

Oracle database Table Space Expansion method

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.