环境:Win XP + Oracle 9201
大概有半个月没用测试数据库,今天在user:sun 表上创建index的时候,出现“ORA-25153: 临时表空间为空”的错误,是什么原因呢?原来数据库是正常的,也没有做其他操作!为什么需要tempfile reuse呢?
解决方法如下:
SQL> create index t_idx on
2 t(owner,object_type,object_name);
t(owner,object_type,object_name)
*
ERROR 位于第 2 行:
ORA-25153: 临时表空间为空
已用时间: 00: 00: 06.03
SQL> set timing off
SQL> conn / as sysdba
已连接。
SQL> alter user sun
2 temporary tablespace temp;
用户已更改。
SQL> conn sun/sun
已连接。
SQL> create index t_idx on
2 t(owner,object_type,object_name);
t(owner,object_type,object_name)
*
ERROR 位于第 2 行:
ORA-25153: 临时表空间为空
SQL> conn / as sysdba
已连接。
SQL> alter tablespace temp
2 add tempfile 'F:oracleoradatasdusuntemp01.dbf' reuse;
表空间已更改。
SQL> conn sun/sun
已连接。
SQL> create index t_idx on
2 t(owner,object_type,object_name);
索引已创建。
SQL> spool off
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/593324/viewspace-376152/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/593324/viewspace-376152/