ITPub博客

首页 > Linux操作系统 > Linux操作系统 > [原创]奇怪的ORA-25153: 临时表空间为空

[原创]奇怪的ORA-25153: 临时表空间为空

原创 Linux操作系统 作者:sdusun 时间:2019-01-23 22:27:04 0 删除 编辑

环境: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博客 ” ,链接:https://blog.itpub.net/593324/viewspace-376152/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2005-09-13

  • 博文量
    116
  • 访问量
    118268