解决Oracle Temp01.dbf文件过大

版权声明:老虎的博客 https://blog.csdn.net/qq493820798/article/details/83181010

第一步:删除文件
alter database tempfile 'F:\oracle\product\10.1.0\oradata\orcl\TEMP01.DBF' drop;

第二步:建立新文件
alter tablespace temp add tempfile
'F:\oracle\product\10.1.0\oradata\orcl\TEMP01.DBF'
size 2048M reuse autoextend on next 100M;

第三步:
select d.file_name, d.file_id, d.tablespace_name, d.bytes
from dba_temp_files d;

第四步:关闭自动增长
alter database tempfile 'F:\oracle\product\10.1.0\oradata\orcl\TEMP01.DBF' autoextend off;
 

猜你喜欢

转载自blog.csdn.net/qq493820798/article/details/83181010