12
返回列表 发新帖
楼主: Ashic

[讨论] MySQL有double write,Oracle是如何解决partial write的?

[复制链接]
论坛徽章:
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
11#
发表于 2017-1-14 00:22 | 只看该作者
What I'm thinking is that on partial page write caused by a database crash, Oracle can automatically recover the block simply by applying redo stored in the online logfiles. I have doubt about "如果这个页本身已经发生了损坏,再对其进行重做是没有意义的", which I think should be qualified. Whether this (再对其进行重做) is doable depends on what kind of damage was done. A partial page or block write is unlikely to have damaged the block header beyond reading, because it just causes the front and end portions of the block to be inconsistent. So redo application after the instance is restarted can still continue. The block will be restored to the state of the last checkpoint. If a block is damaged beyond repair, then of course the DBA has to do media recovery. But a sudden database crash or power failure should not cause such damage, unless there's a bug. If I find a better answer, I'll come back and post more comments.

使用道具 举报

回复
论坛徽章:
3
优秀写手
日期:2014-02-20 06:00:12金牛座
日期:2016-01-24 17:24:26秀才
日期:2016-06-24 09:21:04
12#
 楼主| 发表于 2017-1-14 19:55 | 只看该作者
Yong Huang 发表于 2017-1-14 00:22
What I'm thinking is that on partial page write caused by a database crash, Oracle can automatically ...

好的,非常感谢!

使用道具 举报

回复
论坛徽章:
6
奥运纪念徽章
日期:2013-07-18 13:55:122014年新春福章
日期:2014-02-18 16:49:31马上有钱
日期:2014-02-18 16:49:31目光如炬
日期:2016-12-12 01:27:58目光如炬
日期:2016-12-25 22:00:00火眼金睛
日期:2017-01-03 01:13:18
13#
发表于 2017-1-16 10:55 | 只看该作者
学习了,赞Yong Huang 斑竹。

使用道具 举报

回复
论坛徽章:
3
优秀写手
日期:2014-02-20 06:00:12金牛座
日期:2016-01-24 17:24:26秀才
日期:2016-06-24 09:21:04
14#
 楼主| 发表于 2020-11-6 23:21 | 只看该作者
Yong Huang 发表于 2017-1-13 06:13
I gave some thought to this problem. The way you described the porblem, "只有4K的数据完成了写入,此时 ...

我找到一篇好文章 https://mp.weixin.qq.com/s/1uqkVCeC57t07lsDl-8M7w

使用道具 举报

回复
论坛徽章:
3
优秀写手
日期:2014-02-20 06:00:12金牛座
日期:2016-01-24 17:24:26秀才
日期:2016-06-24 09:21:04
15#
 楼主| 发表于 2020-11-6 23:23 | 只看该作者
没想到都3年多了, 我找到一篇roger的好文章 https://mp.weixin.qq.com/s/1uqkVCeC57t07lsDl-8M7w

使用道具 举报

回复

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

本版积分规则 发表回复

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