//启动数据库 startup //创建另一个临时表空间 create temporary tablespace TEMP2 TEMPFILE '/opt/ora10/oradata/XE/temp02.dbf' SIZE 10M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED; //改变缺省临时表空间为刚刚创建的新临时表空间temp2 alter <A title=database href="http://xiexiejiao.cn/database" mce_href="http://xiexiejiao.cn/database">database</A> default temporary tablespace temp2; //删除原来临时表空间 drop tablespace temp including contents and datafiles; //重新创建临时表空间temp create temporary tablespace TEMP TEMPFILE '/opt/ora10/oradata/XE/temp01.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED; //重置缺省临时表空间为新建的temp表空间 alter database default temporary tablespace temp; //删除中转用临时表空间 drop tablespace temp2 including contents and datafiles; //重新指定用户表空间为重建的临时表空间 alter user scott temporary tablespace temp alter tablespace temp permanent; alter tablespace temp coalesce; alter tablespace temp temporary;