Oracle Database 11G R2 表空间管理
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle Database 11G R2 表空间管理相关的知识,希望对你有一定的参考价值。
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.
创建表空间
SQL> create tablespace tpcc
datafile '/u01/app/oracle/oradata/king/tpcc01.dbf'
size 1024M
extent management local
uniform size 1M;
Tablespace created.
增加表空间数据文件
SQL> alter tablespace tpcc
add datafile '/u01/app/oracle/oradata/king/tpcc02.dbf'
size 1024M;
Tablespace altered.
移动表空间数据文件
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
删除表空间
SQL> drop tablespace tpcc01 including contents and datafiles;
Tablespace dropped.
以上是关于Oracle Database 11G R2 表空间管理的主要内容,如果未能解决你的问题,请参考以下文章
Oracle 11g R2 for Win10(64位)的安装步骤
win7 下的Oracle安装问题 求大神 求大神啊!!!Oracle 11g R2 为啥没有找到database control - orcl?
Oracle Database 12c 第 1 版 与Oracle Database 11g 第 2 版 有啥区别 啊!???