//重新建立一个新的临时表空间:
(1)>create temporary tablespace temp
tempfile 'D:\oracle\oradata\test\temp01.dbf' size 512M
reuse autoextend on next 100M maxsize 1024M;
(2) >alter database default temporary tablespace temp;//修改用户对应的表空间
(3) >drop tablespace temp2 including contents and datafiles;
对以上操作最好做下控制文件备份方法如下:
1、将控制文件备份为二进制文件
SQL>alter database backup controlfile to 'i:\oracle\backup\control.bkp';
2、将控制文件备份为文本文件(备份到oracle\base\admin\sid\udump目录下的跟踪文件中,将在跟踪文件中生成一个SQL脚本)
SQL>alter database backup controlfile to trace;
3、通过spfile生成pfile文件备份控制文件
SQL>create pfile='/pfile_backup.ora' from spfile='/home/oracle/product/10.2.0/db_1/dbs/spfileSID.ora';
相关阅读: