Oracle Database 11G R2 table space Management

Source: Internet
Author: User

sql> ALTER DATABASE datafile '/U01/APP/ORACLE/ORADATA/KING/SYSAUX01.DBF ' resize 2048M;


Database altered.


sql> ALTER DATABASE datafile '/U01/APP/ORACLE/ORADATA/KING/SYSTEM01.DBF ' resize 2048M;


Database altered.


sql> ALTER DATABASE tempfile '/U01/APP/ORACLE/ORADATA/KING/TEMP01.DBF ' resize 2048M;


Database altered.


sql> ALTER DATABASE datafile '/U01/APP/ORACLE/ORADATA/KING/UNDOTBS01.DBF ' resize 2048M;


Database altered.


sql> ALTER DATABASE datafile '/U01/APP/ORACLE/ORADATA/KING/USERS01.DBF ' resize 2048M;


Database altered.





sql> ALTER DATABASE datafile '/U01/APP/ORACLE/ORADATA/KING/SYSAUX01.DBF ' autoextend off;


Database altered.


sql> ALTER DATABASE datafile '/U01/APP/ORACLE/ORADATA/KING/SYSTEM01.DBF ' autoextend off;


Database altered.


sql> ALTER DATABASE Tempfile '/U01/APP/ORACLE/ORADATA/KING/TEMP01.DBF ' autoextend off;


Database altered.


sql> ALTER DATABASE datafile '/U01/APP/ORACLE/ORADATA/KING/UNDOTBS01.DBF ' autoextend off;


Database altered.


sql> ALTER DATABASE datafile '/U01/APP/ORACLE/ORADATA/KING/USERS01.DBF ' autoextend off;


Database altered.


CREATE TABLE Space

sql> Create Tablespace TPCC

DataFile '/u01/app/oracle/oradata/king/tpcc01.dbf '

Size 1024M

Extent Management Local

Uniform size 1M;


Tablespace created.


adding tablespace data files

Sql> Alter Tablespace TPCC

Add datafile '/u01/app/oracle/oradata/king/tpcc02.dbf '

Size 1024M;


Tablespace altered.



Move a tablespace data file

sql> alter tablespace TPCC01 offline;


Tablespace altered.


Sql> Host Cp/u01/app/oracle/oradata/king/tpcc02.dbf/u02/app/oracle/oradata/king


Sql> Alter Tablespace TPCC01

Rename datafile '/u01/app/oracle/oradata/king/tpcc02.dbf '

To '/u02/app/oracle/oradata/king/tpcc02.dbf ';


Tablespace altered.



sql> alter tablespace TPCC01 online;


Tablespace altered.



Sql> Host RM-RF/U01/APP/ORACLE/ORADATA/KING/TPCC02.DBF


Delete Table space

Sql> drop tablespace tpcc01 including contents and datafiles;


Tablespace dropped.


Oracle Database 11G R2 table space Management

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.