TEMP表空间部分操作
原创
©著作权归作者所有:来自51CTO博客作者clusty的原创作品,请联系作者获取转载授权,否则将追究法律责任
TEMP表空间:仅用于排序操作,不包含任何永久对象,extent推荐采用本地管理。增加数据文件(请先确认原来临时表空间文件的路径和名称):
alter tablespace TEMP add tempfile '/oracle/oracle10g/orcl/TEMP02.dbf' size 1024M autoextend on next 64M maxsize 5G;
重建TEMP表空间1 创建临时表空间TEMP2
create temporary tablespace TEMP2 '/oracle/oracle10g/orcl/TEMP2.dbf' size 512M reuse autoextend on next 64M maxsize 5G;
2 重置默认TEMP表空间
alter database default temporary tablespace TEMP2;
3 删除原来的表空间
drop tablespace TEMP including contents and datafiles;
4 重新创建表空间
create temporary tablespace TEMP '/oracle/oracle10g/orcl/TEMP01.dbf' size 1024M reuse autoextend on next 64M maxsize 5G;
5 重置默认TEMP表空间
alter database default temporary tablespace TEMP;
6 删除临时TMEP2表空间
drop tablespace TEMP2 including contents and datafiles;
7重新指定用户的临时表空间
alter user roll temporary tablespace TEMP;
完成。