Oracle临时表空间不足,ORA-01652:无法通过128(在表空间TEMP中)扩展temp段

今天线上环境出现更新数据库失败,看后台报错如下

最终解决办法,通过管理员登录sqlplus后,重新增加temp文件,oracle无需重启。

alter tablespace temp add tempfile '/oracle/app/product/11.2.0/dbhome_1/dbs/temp1' size 2G;

1.查询临时表空间位置 
select * from dba_temp_files;
select * from v$tempfile
2.新增临时表空间文件
alter tablespace temp add tempfile '/oracle/app/product/11.2.0/dbhome_1/dbs/temp1' size 2G;
3.将临时表空间文件设为自增
alter database tempfile ‘/oracle/app/product/11.2.0/dbhome_1/dbs/temp’ autoextend on next 100m maxsize unlimited;

原文地址:https://www.cnblogs.com/lansetuerqi/p/13452415.html