日期:2014-05-16 浏览次数:20535 次
SQL> select file#,status from v$tempfile; FILE# STATUS ---------- ------- 1 ONLINE 2 ONLINE 3 ONLINE 4 OFFLINE
SQL> select tablespace_name,file_name from dba_temp_files where file_id=4; TABLESPACE_NAME FILE_NAME ------------------------------ ---------------------------------------- NEW_TEMP D:/ORACLE/ORADATA/HSMIS/NEW_TEMP01.DBF
SQL> alter database tempfile 'd:/oracle/oradata/hsmis/new_temp01.dbf' online;
方法一、增大临时文件大小: SQL> alter database tempfile ‘/u01/app/oracle/oradata/orcl/temp01.dbf’ resize100m; Database altered. 方法二、将临时数据文件设为自动扩展: SQL> alter database tempfile ‘/u01/app/oracle/oradata/orcl/temp01.dbf’ autoextend on next 5m maxsize unlimited; select tablespace_name,current_users,total_blocks,used_blocks, free_blocks from v$sort_segment;