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

怎样确认一个控制文件是OLD?

[复制链接]
论坛徽章:
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#
发表于 2010-7-1 00:02 | 只看该作者
原帖由 anran_guojianjun 于 2010-6-29 20:43 发表
但后者标识File Type=4 BACKUP CONTROL 。这也许就是ORACLE判定是否
是备份的控制文件的方法。但这个控制文件并不OLD,只是身份不同了。ORACLE同样提示resetlogs.
确如Yong Huang所说ORACLE做了"mark"

至于controlfile sequence number变成0,我没有测出来。


"标识File Type=4 BACKUP CONTROL" is interesting. It could mean two things.

(1) There's a field inside the controlfile. According to
http://www.vijaymukhi.com/oracled.doc
Oracle8 controlfile bytes 56 and 57 are Filetype. Since "Ctrl Seq No" hasn't changed from Oracle8 to Oracle 10gR2, let's assume Filetype hasn't changed either. So I ran od on the actual (current) controlfile and my backup one (junk.ctl). Unfortunately, they both show 0 for those two bytes. It's possible the offset for this field has moved.

or
(2) this field does not exist any more. Instead, the "marker" is derived from something else, "Ctrl Seq No" or something else.

When you use a dump method provided by Oracle, the current controlfile will not dump the real info. I mean, for example, when you use controlf event to dump the current controlfile to trace, the sequence number is a non-zero number. But if you use od to check, it's 0. That's why it's hard to 测出来 controlfile sequence number变成0.

Yong Huang

使用道具 举报

回复
论坛徽章:
2
2010新春纪念徽章
日期:2010-03-01 11:21:02ITPUB9周年纪念徽章
日期:2010-10-08 09:28:51
12#
 楼主| 发表于 2010-7-1 09:46 | 只看该作者

回复 #11 Yong Huang 的帖子

你的这种说法更有说服力,非常感谢。

使用道具 举报

回复
论坛徽章:
2
2010新春纪念徽章
日期:2010-03-01 11:21:02ITPUB9周年纪念徽章
日期:2010-10-08 09:28:51
13#
 楼主| 发表于 2010-7-1 10:40 | 只看该作者
与STOP SCN有点类似,运行时是无穷大。

使用道具 举报

回复

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

本版积分规则 发表回复

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