重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 94|回复: 0
打印 上一主题 下一主题

[Oracle] ORA-01555 for long running queries if "_undo_autotune"=true

[复制链接]
跳转到指定楼层
楼主
发表于 2024-9-1 10:45:16 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
现象:
+ This is Oracle Database 12.1.0.2.

+ The undo_retention is set high enough (i.e: to 50,000 seconds).

+ Despite of having plenty of expired extents in the undo tablespace, the tuned undo retention drops down to around 5318 seconds for no good reason.

+ The failing queries are long running ones but always with duration that is less than the undo retention setting.


原因:
Bug 31113682 - ORA-1555 FOR LONG RUNNING QUERIES IF "_UNDO_AUTOTUNE"=TRUE


<undopressure.out> shows that the tuned undo retention was set to 50,000, but later decreased significantly to 5318 seconds (~= 1.48 hours) because of the undo pressure and because of the NOGUARANTEE configuration.
It is clear that the automatic undo tuning is wrongly calculated leading to unjustifiable ORA-01555 error.

In case calculated tuned_undoretention is of small value whereas undo tablespace have sufficient free space and there are long running transactions, it is possible to be hitting this bug.

处理方法:
The fix for Bug 31113682 is needed especially on 12.1.0.2. This bug is fixed in DB version 23.1.

Here is the patch download link:
https://updates.oracle.com/download/31113682.html

Alternatively, someone may workaround the problem by disabling the automatic undo tuning by setting "_undo_autotune" to false.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-10-10 03:24 , Processed in 0.092269 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表