oracle 12c RMAN 引起temp表空间ORA-01652

现象:12c 的库临时表空间爆了,ORA-01652:无法通过128(在表空间TEMP中)扩展temp段,本身临时表空间已经很大
查询临时表空间位置
select * from v$tempfile
新增临时表空间文件
alter tablespace temp add tempfile ‘XXX’ size 20G;
将临时表空间文件设为自增
alter database tempfile ‘XXX’ autoextend on next 100m maxsize 30G;

Oracle临时表空间不足,ORA-01652:无法通过128(在表空间TEMP中)扩展temp段
最终查到是备份引起,11g和12c NBU在备份时差异(BUG)
在这里插入图片描述

select machine,status,count(*)from v$session group by machine,status order by status;

select *
from (select t.sample_time,
s.PARSING_SCHEMA_NAME,
t.sql_id,
t.sql_child_number as sql_child,
round(t.temp_space_allocated / 1024 / 1024 / 1024, 2) || ’ G’ as temp_used,
round(t.temp_space_allocated /
(select sum(decode(d.autoextensible, ‘YES’, d.maxbytes, d.bytes))
from dba_temp_files d),
2) * 100 || ’ %’ as temp_pct,
t.program,
t.module,
s.SQL_TEXT
from v a c t i v e s e s s i o n h i s t o r y t , v active_session_history t, v activesessionhistoryt,vsql s
where t.sample_time > to_date(‘2022-10-10 01:00:00’, ‘yyyy-mm-dd hh24:mi:ss’)
and t.sample_time < to_date(‘2022-10-10 11:20:00’, ‘yyyy-mm-dd hh24:mi:ss’)
and t.temp_space_allocated is not null
and t.sql_id = s.SQL_ID
order by t.temp_space_allocated desc)
where rownum < 500
order by temp_used desc;

https://cdn.modb.pro/db/484698

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值