楼主: bellsz

[精华] 关于SCN的理解,请指正

[复制链接]
论坛徽章:
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
81#
发表于 2009-8-30 22:43 | 只看该作者
原帖由 xuming_11 于 2009-8-28 21:56 发表
看完了,果然是高深,不过我还有一些疑惑,
期望biti_rainy等各路神仙能帮我看看问题关于SCN的疑惑,谢谢
链接如下:
http://www.itpub.net/thread-1209734-1-1.html


I read the thread in that forum. You're asking under what condition you'll have a datafile whose datafile status is online and the file is read write and yet the datafile checkpoint SCN (in controlfile) is lower than the database checkpoint. There's one scenario I can think of. You put a tablespace in backup mode and checkpoint. The datafiles in the tablespace in the backup mode will have the SCN's frozen. Here's my test (in 10.2.0.1, but should be version independent):

alter tablespace ts begin backup;
set numw 12
select file#,status,enabled,d.checkpoint_change# d_ckpt,f.checkpoint_change# f_ckpt from v$database d,v$datafile f order by 4,5;
alter system checkpoint;
select file#,status,enabled,d.checkpoint_change# d_ckpt,f.checkpoint_change# f_ckpt from v$database d,v$datafile f order by 4,5;
select * from v$backup where status = 'ACTIVE';
alter tablespace ts end backup;

Other than this, maybe Metalink Note:209329.1 helps.

Yong Huang

[ 本帖最后由 Yong Huang 于 2009-8-30 08:49 编辑 ]

使用道具 举报

回复
论坛徽章:
11
2011新春纪念徽章
日期:2011-01-04 10:24:02ITPUB 11周年纪念徽章
日期:2012-10-09 18:14:48祖母绿
日期:2012-06-23 10:34:46生肖徽章2007版:兔
日期:2012-03-07 10:15:11蛋疼蛋
日期:2012-03-07 10:09:01迷宫蛋
日期:2012-03-07 10:09:01紫蛋头
日期:2012-03-07 10:09:01茶鸡蛋
日期:2012-03-07 10:09:01ITPUB十周年纪念徽章
日期:2011-11-01 16:25:22生肖徽章2007版:兔
日期:2011-01-20 12:58:49
82#
发表于 2010-5-23 00:08 | 只看该作者
学习了,谢谢。。。

使用道具 举报

回复
论坛徽章:
0
83#
发表于 2010-5-23 17:18 | 只看该作者
收益非浅!谢谢

使用道具 举报

回复
论坛徽章:
214
84#
发表于 2010-5-24 19:53 | 只看该作者
收益非浅

使用道具 举报

回复
论坛徽章:
14
季节之章:冬
日期:2010-01-04 13:39:56季节之章:春
日期:2010-03-22 16:42:29ITPUB知识分享者
日期:2010-06-28 10:02:43季节之章:夏
日期:2010-07-16 09:20:442010世博会纪念徽章
日期:2010-07-22 11:35:022010世博会纪念徽章
日期:2010-08-09 10:41:19ITPUB季度 技术新星
日期:2010-08-31 10:47:25季节之章:秋
日期:2010-12-10 16:23:30ITPUB官方微博粉丝徽章
日期:2011-07-20 17:06:48
85#
发表于 2010-6-9 23:15 | 只看该作者
收益非浅

使用道具 举报

回复

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

本版积分规则 发表回复

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