楼主: ZALBB

[Tips] 10201版本上UNDOTS的一个BUG

[复制链接]
论坛徽章:
77
2015中国数据库技术大会纪念徽章
日期:2015-04-24 16:04:242012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41现任管理团队成员
日期:2011-05-07 01:45:082010广州亚运会纪念徽章:排球
日期:2011-04-20 21:23:27
11#
发表于 2007-2-2 09:33 | 只看该作者
请参考一下METALINK 给的解决方案,其实差不多

CAUSE DETERMINATION
===================
Bug 5387030


CAUSE JUSTIFICATION
===================
In 10.2 the calculation of the tuned undo retention period was modified for non-autoextend undo tablespaces: instead of basing the tuned undo re
tention value on the length of the currently longest running query or the undo_r
etention param, the tuned undo retention is based on how many seconds of undo (a
t the most recent rate of undo generation) can be retained in 85% of the fixed s
ize of the undo tablespace. This change in behavior was made to maximize the uti
lization of the undo tablespace space and so provide better protection against q
ueries potentially failing with ORA-1555 "snapshot too old".
This change in behavior should have no negative impact, so the changes were implemented unconditio
nally (see NOTE below) and the change in behavior will apply even to those custo
mers
who (use non-autoextend undo tablespaces in 10.2 and) are not vulnerable to and/or concerned about ORA-1555's.
If this change in behavior is shown to introduce new problems such as a performance degradation or failing SQL statements
, then these would need be investigated as bugs and possibly resolved by bug fi
xes. But so far I have found no evidence of any such bugs caused by these chang
es.



PROPOSED SOLUTION(S)
====================
1.sql>alter system set undo_retention=900;

2.sql>alter system set "_smu_debug_mode" = 33554432;

3.Monitor the space usage of the tablespace now and let us know the results.

OR


Use autoextensible datafiles



PROPOSED SOLUTION JUSTIFICATION(S)
==================================
The Bug 5387030 may be relevant to your issue and closely matches your scenario.There is currently no patch available for the bug and is currentl
y worked upon by the development


The above mentioned bug is only relevant if you are using fixed size undo a tablespace, if you are
ok to use autoextensible datafiles there is no need to set the parmeter


SOLUTION / ACTION PLAN
======================
-- To implement the solution, please execute the following steps::
Use autoextensible datafiles

使用道具 举报

回复
论坛徽章:
77
2015中国数据库技术大会纪念徽章
日期:2015-04-24 16:04:242012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41现任管理团队成员
日期:2011-05-07 01:45:082010广州亚运会纪念徽章:排球
日期:2011-04-20 21:23:27
12#
发表于 2007-2-2 09:39 | 只看该作者
最初由 Fenng 发布
[B]SELECT tablespace_name, retention FROM dba_tablespaces where tablespace_name='UNDOTBS';

10g 这个所谓的新特性是有一点意思的 [/B]


已经设置 retention :GUARANTEE ,

看ORACLE 官方文挡说:"the database can overwrite unexpired undo when space is low" ,搞不明白,他说的SPACE IS LOW ,难道达到99% 了才算是LOW

Retention Guarantee
To guarantee the success of long-running queries or Oracle Flashback operations, you can enable retention guarantee. If retention guarantee is enabled, the specified minimum undo retention is guaranteed; the database never overwrites unexpired undo data even if it means that transactions fail due to lack of space in the undo tablespace. If retention guarantee is not enabled, the database can overwrite unexpired undo when space is low, thus lowering the undo retention for the system. This option is disabled by default.

使用道具 举报

回复
论坛徽章:
314
行业板块每日发贴之星
日期:2012-07-12 18:47:29双黄蛋
日期:2011-08-12 17:31:04咸鸭蛋
日期:2011-08-18 15:13:51迷宫蛋
日期:2011-08-18 16:58:25紫蛋头
日期:2011-08-31 10:57:28ITPUB十周年纪念徽章
日期:2011-09-27 16:30:47蜘蛛蛋
日期:2011-10-20 15:51:25迷宫蛋
日期:2011-10-29 11:12:59ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41鲜花蛋
日期:2011-11-09 20:33:30
13#
 楼主| 发表于 2007-2-2 11:15 | 只看该作者
最初由 zlc158 发布
[B]

已经设置 retention :GUARANTEE ,

看ORACLE 官方文挡说:"the database can overwrite unexpired undo when space is low" ,搞不明白,他说的SPACE IS LOW ,难道达到99% 了才算是LOW

Retention Guarantee
To guarantee the success of long-running queries or Oracle Flashback operations, you can enable retention guarantee. If retention guarantee is enabled, the specified minimum undo retention is guaranteed; the database never overwrites unexpired undo data even if it means that transactions fail due to lack of space in the undo tablespace. If retention guarantee is not enabled, the database can overwrite unexpired undo when space is low, thus lowering the undo retention for the system. This option is disabled by default. [/B]


这里的SPACE IS LOW,我理解是 FREE SPACE IS LOW。
以ORACLE牛哄哄的最优的做法,是优先使用空闲的,过期的,再到非过期的。

ORACLE对固定的回滚尺寸上尽量保留老的快照,想法是好的,可
惜出了BUG,每每都是99%的使用率,搞得大家不爽,就像老二,
时时硬顶着,谁受得了,而且还造成ORA-01555,本来是想尽量避
免,却发而造成该错误,丢!

使用道具 举报

回复
论坛徽章:
77
2015中国数据库技术大会纪念徽章
日期:2015-04-24 16:04:242012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB十周年纪念徽章
日期:2011-11-01 16:19:41现任管理团队成员
日期:2011-05-07 01:45:082010广州亚运会纪念徽章:排球
日期:2011-04-20 21:23:27
14#
发表于 2007-2-2 13:24 | 只看该作者
为了 让自己心脏少承受点压力,决定还是不用ORACLE 的优化了, 修改了tablespace autoexent enable ,

使用道具 举报

回复
论坛徽章:
86
ITPUB元老
日期:2005-02-28 12:57:002012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20咸鸭蛋
日期:2012-05-08 10:27:19版主8段
日期:2012-05-15 15:24:112013年新春福章
日期:2013-02-25 14:51:24
15#
发表于 2007-2-3 19:29 | 只看该作者
一直对oracle的这个问题感觉很不爽,它默认计算最长会保留到4天,搞的我们监控表空间容易报警,ft

使用道具 举报

回复
论坛徽章:
0
16#
发表于 2007-2-8 01:38 | 只看该作者
Cause: Oracle change the automated undo space management algorithm in 10.2 to ignore the undo_retention setting when using fixed size undo tablespace datafiles (i.e. not using autoextend).  The new algorithm is supposed to retain expired extents as long as possible, regardless of undo_retention setting, while still maintaining a pool of 15% free undo space.  However, the implementation is flawed.  

Work Around:  Set the _undo_autotune paramter to false.  May be set using alter system.  ex:  alter system set "_undo_autotune"=false; Note that setting this parameter causes v$undostat to stop reporting properly - no new rows are created - all stats go into the most recent row.

使用道具 举报

回复
论坛徽章:
41
ITPUB元老
日期:2007-04-18 10:10:372012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:232012新春纪念徽章
日期:2012-02-13 15:09:23迷宫蛋
日期:2012-05-09 13:09:18双黄蛋
日期:2013-01-21 12:55:59马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14
17#
发表于 2007-10-31 13:53 | 只看该作者
看来这个问题我得记录一下了,我们就上10g了。

使用道具 举报

回复
论坛徽章:
1
2009日食纪念
日期:2009-07-22 09:30:00
18#
发表于 2007-11-2 10:23 | 只看该作者
ZLBB!还记得深圳易地思的同桌不?今天总算看到你了!:)

使用道具 举报

回复
论坛徽章:
92
2011新春纪念徽章
日期:2011-01-25 15:42:33咸鸭蛋
日期:2012-03-19 10:46:00版主1段
日期:2012-05-15 15:24:11奥运会纪念徽章:排球
日期:2012-08-29 07:02:50奥运会纪念徽章:跳水
日期:2012-09-26 06:44:27ITPUB 11周年纪念徽章
日期:2012-09-28 17:34:42ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:32奥运会纪念徽章:击剑
日期:2012-10-12 07:20:332013年新春福章
日期:2013-02-25 14:51:242012新春纪念徽章
日期:2012-02-13 15:13:20
19#
发表于 2007-12-15 19:14 | 只看该作者
这个undo tune实在是不好,

当业务特别繁忙的时候,oracle开始"auto tune",会导致严重的US enq contention.

dc_rollback_segments的gets还会特别的高; 导致数据库high load and high session

使用道具 举报

回复
论坛徽章:
4
ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:442010新春纪念徽章
日期:2010-03-01 11:19:502011新春纪念徽章
日期:2011-02-18 11:43:362012新春纪念徽章
日期:2012-01-04 11:53:29
20#
发表于 2007-12-17 18:01 | 只看该作者
学习学习。。。

使用道具 举报

回复

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

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表