12
返回列表 发新帖
楼主: 我上面有人

[讨论] 请教高手:append+nologging为何还能正常flashback table?

[复制链接]
论坛徽章:
59
狮子座
日期:2016-03-26 13:35:402013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-02-25 11:06:15ITPUB 11周年纪念徽章
日期:2012-10-09 18:06:20灰彻蛋
日期:2012-04-25 13:19:33紫蛋头
日期:2012-03-14 11:16:09最佳人气徽章
日期:2012-03-13 17:39:18玉石琵琶
日期:2012-02-21 15:04:38鲜花蛋
日期:2011-11-30 14:13:01ITPUB十周年纪念徽章
日期:2011-11-01 16:21:15
11#
发表于 2010-11-11 15:47 | 只看该作者
nologging means you can't redo the changes

so that means you can't roll forward, but you can roll back, right?

actually  晶晶小妹 has really answered your question

使用道具 举报

回复
论坛徽章:
7
授权会员
日期:2010-12-06 19:50:26数据库板块每日发贴之星
日期:2011-09-03 01:01:01迷宫蛋
日期:2011-09-08 16:30:08ITPUB十周年纪念徽章
日期:2011-11-01 16:24:04玉石琵琶
日期:2012-02-21 15:04:38最佳人气徽章
日期:2012-03-13 17:39:18
12#
 楼主| 发表于 2010-11-11 16:16 | 只看该作者

回复 #11 bluemoon0083 的帖子

ls的中国英语说的让人不解啊!

使用道具 举报

回复
论坛徽章:
7
授权会员
日期:2010-12-06 19:50:26数据库板块每日发贴之星
日期:2011-09-03 01:01:01迷宫蛋
日期:2011-09-08 16:30:08ITPUB十周年纪念徽章
日期:2011-11-01 16:24:04玉石琵琶
日期:2012-02-21 15:04:38最佳人气徽章
日期:2012-03-13 17:39:18
13#
 楼主| 发表于 2010-11-13 15:03 | 只看该作者
up

使用道具 举报

回复
论坛徽章:
3
数据库板块每日发贴之星
日期:2010-11-19 01:01:012011新春纪念徽章
日期:2011-01-04 10:24:58数据库板块每日发贴之星
日期:2011-01-16 01:01:01
14#
发表于 2010-11-18 17:21 | 只看该作者
11楼是说
nologging只是不会把变化记入redo log

redo log是用来干吗的? 是用来recover的时候从备份的时间点往前roll forward的。

但是flashback table to scn/timestamp是用undo信息的。所以redo log不会用到。只会用undo撤销掉之前的变化就可以。

insert+append前面有人说了,因为是在HWM之上插入数据,全是空的BLOCK,只用记录这些BLOCK信息即可。 所以,undo的时候只要把这些block清空就可以了。

使用道具 举报

回复
论坛徽章:
7
授权会员
日期:2010-12-06 19:50:26数据库板块每日发贴之星
日期:2011-09-03 01:01:01迷宫蛋
日期:2011-09-08 16:30:08ITPUB十周年纪念徽章
日期:2011-11-01 16:24:04玉石琵琶
日期:2012-02-21 15:04:38最佳人气徽章
日期:2012-03-13 17:39:18
15#
 楼主| 发表于 2010-11-28 21:40 | 只看该作者
up

使用道具 举报

回复
论坛徽章:
9
ITPUB十周年纪念徽章
日期:2011-11-01 16:25:512012新春纪念徽章
日期:2012-01-04 11:56:44ITPUB 11周年纪念徽章
日期:2012-10-09 18:14:482013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:44:08马上有对象
日期:2014-02-18 16:44:08
16#
发表于 2010-11-28 23:24 | 只看该作者
11楼大表哥说明白了.
给个表参考下.
----------------------
It is even more deep then that.  For example:

Table Mode    Insert Mode     ArchiveLog mode      result
-----------   -------------   -----------------    ----------
LOGGING       APPEND          ARCHIVE LOG          redo generated
NOLOGGING     APPEND          ARCHIVE LOG          no redo
LOGGING       no append       ""                   redo generated
NOLOGGING     no append       ""                   redo generated
LOGGING       APPEND          noarchive log mode   no redo
NOLOGGING     APPEND          noarchive log mode   no redo
LOGGING       no append       noarchive log mode   redo generated
NOLOGGING     no append       noarchive log mode   redo generated
----------------------------
参考: http://asktom.oracle.com/pls/ask ... ON_ID:5280714813869

使用道具 举报

回复
论坛徽章:
5
ITPUB9周年纪念徽章
日期:2010-10-08 09:34:022010广州亚运会纪念徽章:高尔夫球
日期:2011-01-18 16:02:54ITPUB十周年纪念徽章
日期:2011-11-01 16:25:22ITPUB 11周年纪念徽章
日期:2012-10-09 18:13:332013年新春福章
日期:2013-02-25 14:51:24
17#
发表于 2010-11-29 14:48 | 只看该作者
原帖由 我上面有人 于 2010-11-9 10:10 发表
flashback table是从undo中获取数据,而append+nologging减少了redo和undo的产生,为何还能正常flashback table呢?

append+nologging插入一批数据后,flashback table成功的将table回退。why?

还望高手指点,不甚感激!



generally, no logs are generated under the mode of insert /*+ append */. why use the keyword nologging?

would you give your detail operation about your question?

使用道具 举报

回复
论坛徽章:
5
ITPUB9周年纪念徽章
日期:2010-10-08 09:34:022010广州亚运会纪念徽章:高尔夫球
日期:2011-01-18 16:02:54ITPUB十周年纪念徽章
日期:2011-11-01 16:25:22ITPUB 11周年纪念徽章
日期:2012-10-09 18:13:332013年新春福章
日期:2013-02-25 14:51:24
18#
发表于 2010-11-29 15:09 | 只看该作者
原帖由 我上面有人 于 2010-11-11 14:46 发表
append+nologging插入数据后flashback table to timestamp成功,why?


now I feel the question seems meaningless.  you insert some record without logging, then flashback table, the question is to when you want to flashback, to the point just before your inserting nologging or  some other time point.

nologging is single operation scale, not all-time scale.

使用道具 举报

回复

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

本版积分规则 发表回复

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