关于private redolog strands的疑问

[复制链接]
查看11 | 回复5 | 2010-10-8 09:28:52 | 显示全部楼层 |阅读模式
从10g开始引入了 private redolog strands机制。通过该机制,可以避免从pga中将redo entries 拷贝 到 redo buffer中,而是将shared pool的session专属的redo record,flush进redo file。
这种机制可以很大程度避免 redo allocation等待事件的发生!
1.redo copy也能避免吗???

2.这种机制是否是Oracle现在的模式机制。也就是说,从pga拷贝redo entries到redo buffer的这种机制是否不用了???

3.我通过什么手段可以验证一下吗??比如看日志,或者某个parameter。

回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
1.我记得copy latch还是不能避免的,记不太清了,得去查查文档
2.private strand是有限制条件的,传统的模式依然使用
3.select * from v$sgastat where pool='shared pool' and name='private strands'
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
sundog315 发表于 2011-10-17 10:40
1.我记得copy latch还是不能避免的,记不太清了,得去查查文档
2.private strand是有限制条件的,传统的模 ...

1.private strand的使用要符合一些条件吗??什么条件呢??
2.当使用了 private strand的时候,我们怎么才能知道使用了 private strands机制呢?

3.redo copy latch,在什么时候使用??把 redo entries 写进 redo file时吗??
不会吧!? latch: redo copy 应该是pga copy redo buffer的时候用吗???


回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
请各位高手给讲讲!
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
本帖最后由 Yong Huang 于 2011-10-19 14:36 编辑
Fuyuncat has a good article on this topic:
http://www.hellodba.com/reader.php?ID=28&lang=EN
He says the redo copy latch is not used when generating redo entries, but is used when flushing them:
"The transactions using private strand will not request Redo Copy Latch and redo allocation latch of shared strand when generate Redo Entry, just request Redo Copy Latch before flush strand, thus reduced the contentions of those latches, also reduced the CPU workload. "
You can see which transaction uses private strand by checking ktcxbflg in x$ktcxb: "We can identify the transaction used private strands or not by the 13th bit of ktcxbflg in x$ktcxb."
Private redo strands are not used under some conditions, such as when supplemental logging is enabled.
Ref: PRIVATE REDO STRANDS DON'T WORK WHEN SUPPLEMENTAL LOGGING IS ENABLED [Bug 8680790]
Yong Huang
回复

使用道具 举报

千问 | 2010-10-8 09:28:52 | 显示全部楼层
太感谢了!
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行