--创建数据表空间 t_space1 为数据表空间名 datafile为数据文件路径
create tablespace t_space1 datafile 'E:\OracleTableSpace\space_1\t_space1.dbf' size 5M autoextend on next 5M maxsize 20M extent management local ;
--删除数据表空间
drop tablespace t_space1 including contents and datafiles;
--创建临时表空间
create temporary tablespace temp_space1 tempfile 'E:\OracleTableSpace\space_1\temp_space1.dbf' size 5M autoextend on next 5M maxsize 10M extent management local;
--删除临时表空间
drop temporary tablespace temp_space1 including contents and datafiles;
--创建用户并指定表空间
create user tdy identified by tdy
default tablespace t_space1
temporary tablespace temp_space1;
--授予权限
grant resource,connect to tdy;
--删除用户命
drop user tdy cascade;
推荐阅读:
[Oracle] 在没有备份的情况下undo损坏怎么办? http://www.linuxidc.com/Linux/2013-06/86143.htm
UNDO表空间失败的处理方法 http://www.linuxidc.com/Linux/2013-05/83974.htm
undo表空间故障和ORA-01548处理 http://www.linuxidc.com/Linux/2013-01/77748.htm
RAC下丢失undo表空间的恢复 http://www.linuxidc.com/Linux/2012-10/71709.htm
UNDO表空间备份恢复 http://www.linuxidc.com/Linux/2012-09/69953.htm
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
