楼主: Alex螺丝钉

Oracle是否需要保证同一个事务的改变向量顺序写出呢?

[复制链接]
论坛徽章:
0
11#
 楼主| 发表于 2015-10-22 19:36 | 只看该作者

使用道具 举报

回复
论坛徽章:
0
12#
 楼主| 发表于 2015-10-22 19:37 | 只看该作者

使用道具 举报

回复
论坛徽章:
0
13#
 楼主| 发表于 2015-10-22 19:38 | 只看该作者

使用道具 举报

回复
论坛徽章:
0
14#
 楼主| 发表于 2015-10-22 19:39 | 只看该作者

使用道具 举报

回复
论坛徽章:
0
15#
 楼主| 发表于 2015-10-22 19:40 | 只看该作者

使用道具 举报

回复
论坛徽章:
0
16#
 楼主| 发表于 2015-10-22 19:49 | 只看该作者
就这么多了。

使用道具 举报

回复
论坛徽章:
47
蒙奇·D·路飞
日期:2017-03-27 08:04:23马上有车
日期:2014-02-18 16:41:112014年新春福章
日期:2014-02-18 16:41:11一汽
日期:2013-09-01 20:46:27复活蛋
日期:2013-03-13 07:55:232013年新春福章
日期:2013-02-25 14:51:24ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
17#
发表于 2015-10-22 23:48 | 只看该作者
> 在private strand出现之前,redo record在pga生成,然后被server process从PGA复制到logbuffer中的shared strand ...
> 在private strand出现后,private strand在shared pool中创建

You're right. I should emphasize that I was only referring to the case with private strands. When Oracle does not use private strands, documentation clearly says
"The database processes copy redo entries from the user memory space to the redo log buffer in the SGA."
http://docs.oracle.com/database/121/CNCPT/memory.htm#CNCPT1225

> 我认为一个redo record应该使用的是连续的“buffer”,不可能出现楼主说的那种情况

I agree that a redo record is continuous (i.e. its change vectors occupy a contiguous area of memory in redo log buffer). But he (楼主) shows that a transaction, not the redo records of a transaction, has change vectors scattered in multiple log buffers. That's reasonable. If he truly meant redo records instead of transactions in the picture, he would sure be wrong.

使用道具 举报

回复
论坛徽章:
0
18#
 楼主| 发表于 2015-10-23 19:18 | 只看该作者
Yong Huang 发表于 2015-10-22 23:48
> 在private strand出现之前,redo record在pga生成,然后被server process从PGA复制到logbuffer中的shared ...

谢谢版主的热心解答,想想,死扣这个东西也没啥意义。

使用道具 举报

回复
论坛徽章:
0
19#
 楼主| 发表于 2015-10-23 19:19 | 只看该作者
anlinew 发表于 2015-10-21 09:32
这种内部实现机制,因为没法看到源代码,只能靠猜测
如果实在想搞明白,可以尝试dtrace试试看
还有个办法 ...

谢谢版主,我也不想搞明白这个东西了~~

使用道具 举报

回复
论坛徽章:
0
20#
 楼主| 发表于 2015-10-23 19:20 | 只看该作者
zergduan 发表于 2015-10-21 13:34
我认为首先redo record (由多个cv组成)是先生成在pga中的,然后才被写入logbuffer中~
并且再写入的过程中 ...

thanks~~

使用道具 举报

回复

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

本版积分规则 发表回复

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