Oracle创建表空间1.创建普通表空间
create tablespace oracle_tablespace
datafile "/home/oracle/oradata/orcl/oracle_tablespace.dbf"
size 100m
autoextend on next 10M maxsize 200M
extent management local
uniform size 1m;2.创建undo表空间
CREATE undo tablespace undo_oracle
datafile "/home/oracle/oradata/orcl/undo_oracle.dbf"
size 50m
extent management local;3.创建temporary表空间
CREATE temporary tablespace temporary_oracle
tempfile "/home/oracle/oradata/orcl/temporary_oracle.dbf"
size 50m
autoextend on next 10M maxsize 100M
extent management local
uniform size 1m;
扩展表空间1.扩展数据表空间alter tablespace oracle_tablespace add datafile "/home/oracle/oradata/orcl/oracle_tablespace1.dbf" size 100M;2.扩展undo表空间alter tablespace oracle_tablespace add datafile "/home/oracle/oradata/orcl/undo_tablespace1.dbf" size 100M;3.扩展temporary表空间alter tablespace oracle_tablespace add tempfile "/home/oracle/oradata/orcl/temporary_tablespace1.dbf" size 100M;
删除表空间--删除空的表空间,但是不包含物理文件
drop tablespace tablespace_name;
--删除非空表空间,但是不包含物理文件
drop tablespace tablespace_name including contents;
--删除空表空间,包含物理文件
drop tablespace tablespace_name including datafiles;
--删除非空表空间,包含物理文件
drop tablespace tablespace_name including contents and datafiles;
--如果其他表空间中的表有外键等约束关联到了本表空间中的表的字段,就要加上CASCADE CONSTRAINTS
drop tablespace tablespace_name including contents and datafiles CASCADE CONSTRAINTS;
论Oracle碎片MAXAIO导致Oracle启动hang问题相关资讯 Oracle表空间 Oracle数据文件
- 关于Oracle可传输表空间的总结 (今 20:12)
- Aix下删除Oracle表空间以及对应的 (04月17日)
- Oracle表空间过大时候的处理 (10/27/2015 20:42:50)
| - Oracle删除表空间遇到的问题及解决 (04月17日)
- Oracle使用SQL传输表空间 (03月01日)
- Oracle 设置表空间自增长 (10/09/2015 11:42:07)
|
本文评论 查看全部评论 (0)