免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2301 | 回复: 7
打印 上一主题 下一主题

一道题目不明白,请赐教! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-02 21:24 |只看该作者 |倒序浏览
Which two operations require undo data?(Choose two)
A) commiting a transaction
B) rolling back a transaction
C) recovering from failed transactions
D) recording a transaction to redo log files
E) rolling forward during instance recovery

我觉得除了A、D明显不对以外剩下3答案都是对的,答案是BC。请教一下E为什么不对?

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-11-09 06:20:00
2 [报告]
发表于 2008-11-02 22:17 |只看该作者
没记错的话,roll forward用的是online log.而不是undo.

论坛徽章:
0
3 [报告]
发表于 2008-11-02 22:53 |只看该作者
rolling forward during instance recovery 用的是redo

论坛徽章:
0
4 [报告]
发表于 2008-11-02 23:47 |只看该作者
原帖由 luffy.deng 于 2008-11-2 22:53 发表
rolling forward during instance recovery 用的是redo

正解

论坛徽章:
0
5 [报告]
发表于 2008-11-07 15:49 |只看该作者
B和C
因为undo含有事务的数据,rollback的时候用到,事务恢复也会用到。

[ 本帖最后由 china_yebin 于 2008-11-7 15:52 编辑 ]

论坛徽章:
0
6 [报告]
发表于 2008-11-07 15:52 |只看该作者
c和e

论坛徽章:
0
7 [报告]
发表于 2008-11-10 09:21 |只看该作者

供你参考

如题所问, roll forward 需要的是redolog files ,放上一段 searchoracle.com 上关于roll forward 及roll back的对比描述,作者是: Kenny Smith


Roll forward refers to the process Oracle goes through to apply changes contained in the redo log files (both online and archive). The database clock (as measured by the system change number) is moved forward within the blocks of the datafile that are changed within the redo log vectors. Roll forward occurs during database, tablespace or datafile recovery and during crash recovery.

Rollback is the process of undoing uncommitted database transactions. The blocks copied to the rollback segments during transactions as a copy of the block for other transaction to read. When the instance aborts, the undo information in the redo log files must be applied to the database during the roll forward process of recovery. Therefore, during recovery, the database must roll forward and roll back.

论坛徽章:
0
8 [报告]
发表于 2008-11-10 17:01 |只看该作者
ora-600说过:
实例恢复的过程就是
前滚(redo)
打开
回滚(undo)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP