我们都知道在对Oracle数据库做备份时是不会包含临时表空间的,因为临时表空间包含的只是暂时性的数据,不需做还原的。但是在还原后数据字典中仍然存有临时表空间的相关信息,这时我们需要做一次如下语句的动作来重新建立default的临时表空间。这样才能改变在数据字典中记录的信息,保证数据库的正常运行。
SQL> create temporary tablespace temp2 tempfile 'oracleoradatatemp02.dbf' size 100M;
SQL> alter database default temporary tablespace temp2;
SQL> drop tablespace temp including contents and datafiles;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29987/viewspace-51761/,如需转载,请注明出处,否则将追究法律责任。