12C rman备份占用大量TEMP ORA-01652: unable to extend temp segment
APPLIES TO:
Oracle Database - Enterprise Edition - Version 12.1.0.2 and laterInformation in this document applies to any platform.
SYMPTOMS
RMAN backup may fail at the end of its completion complaining about the TEMP Tablespace usage being full.
Finished Control File and SPFILE Autobackup at 22-MAR-20
ORA-00604: error occurred at recursive SQL level 1
ORA-01652: unable to extend temp segment by 64 in tablespace TEMP
RMAN-08132: warning: cannot update recovery area reclaimable file list
sql statement: alter system archive log current
ORA-00604: error occurred at recursive SQL level 1
ORA-01652: unable to extend temp segment by 64 in tablespace TEMP
RMAN-08132: warning: cannot update recovery area reclaimable file list
sql statement: alter system archive log current
Even after increasing the Temp tablespace size, the TEMP usage is very High during the backup.
The backup may complete without failing on data files or archivelog files and the Errors may be encountered at the end of the backup.
CHANGES
none
CAUSE
Setting optimizer_mode = ALL_ROWS can cause non-optimized usage Of Temp.
SOLUTION
If the OPTIMIZER_MODE for the database cannot be changed, The RMAN Session can use it with the below change in the backup command / Script:
RMAN> sql "alter session set optimizer_mode=RULE";
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
2020-12-02 不走分区(字段类型不一致)
2019-12-02 卖核桃!!嘻嘻嘻!!来买哦!!