12C rman备份占用大量TEMP ORA-01652: unable to extend temp segment

APPLIES TO:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information 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

 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";

 

posted @   阿西吧li  阅读(251)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
历史上的今天:
2020-12-02 不走分区(字段类型不一致)
2019-12-02 卖核桃!!嘻嘻嘻!!来买哦!!
点击右上角即可分享
微信分享提示