Created on 01.19.2011ORA-25153: Temporary Tablespace is Empty. 为何我的temp文件会丢失?
环境:
Oracle版本:
Oracle 9i Release 2 9.2.0.6
OS版本:
Windows Server 2003 Enterprise
摘要:
今天当我执行一条简单的带排序的sql时,提示ORA-25153: Temporary Tablespace is Empty,这让我很奇怪。我立即搜索temp表空间和temp数据文件,表空间存在,但数据文件不在。物理文件确实也是没有的。我的temp数据文件怎 么会丢失呢?

SQL> select * from t_logging order by time_stamp;

select * from t_logging order by time_stamp

ORA-25153: Temporary Tablespace is Empty

错误出现。

SQL> select * from v$tempfile;

no rows selected

找不到temp数据文件。

SQL> select tablespace_name from dba_tablespaces where tablespace_name like ‘TEMP’;

TABLESPACE_NAME
——————————
TEMP

但temp表空间可以找到。

SQL> alter tablespace temp add tempfile ‘F:\ORADATA\RBCDNOZ\TEMP01.dbf’ size 1024M;

Tablespace altered

尝试添加个临时文件。

SQL> select name from v$tempfile;

NAME
——————————————————————————–
F:\ORADATA\RBCDNOZ\TEMP01.DBF

问题解决。只是不明白,临时数据文件是怎么丢的。

相关文章:

  • 2022-12-23
  • 2021-06-11
  • 2021-11-09
  • 2022-01-31
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-10
  • 2022-12-23
  • 2022-01-03
  • 2021-04-13
  • 2022-01-25
  • 2022-12-23
相关资源
相似解决方案