ORA-25153: 临时表空间为空

SQL> exec dbms_stats.gather_table_stats('SYS', 'bt1', cascade => true);
BEGIN dbms_stats.gather_table_stats('SYS', 'bt1', cascade => true); END;

*
第 1 行出现错误:
ORA-25153: 临时表空间为空
ORA-06512: 在 "SYS.DBMS_STATS", line 20337
ORA-06512: 在 "SYS.DBMS_STATS", line 20360
ORA-06512: 在 line 1


SQL> select tablespace_name,file_name from dba_temp_files;

未选定行

 


SQL> select file_name from dba_data_files;

FILE_NAME
--------------------------------------------------------------------------------
E:\APP\ADMINISTRATOR\ORADATA\ORCL\TEST01.DBF
E:\APP\ADMINISTRATOR\ORADATA\ORCL\USERS01.DBF
E:\APP\ADMINISTRATOR\ORADATA\ORCL\UNDOTBS01.DBF
E:\APP\ADMINISTRATOR\ORADATA\ORCL\SYSAUX01.DBF
E:\APP\ADMINISTRATOR\ORADATA\ORCL\SYSTEM01.DBF


alter tablespace temp add tempfile 'E:\APP\ADMINISTRATOR\ORADATA\ORCL\TEST02.DBF'size  100M autoextend on;


SQL> select tablespace_name,file_name from dba_temp_files;

TABLESPACE_NAME
------------------------------
FILE_NAME
--------------------------------------------------------------------------------
TEMP
E:\APP\ADMINISTRATOR\ORADATA\ORCL\TEST02.DBF

你可能感兴趣的:(sql,File,table,System,360,BT)