12
返回列表 发新帖
楼主: 星光酷表

[讨论] control_file_record_keep_time参数的意义

[复制链接]
论坛徽章:
0
11#
 楼主| 发表于 2018-2-6 10:46 | 只看该作者
本帖最后由 zergduan 于 2018-2-6 13:45 编辑
zergduan 发表于 2018-2-6 10:30
1. 你这个跟我说的没任何关系,我是说controlfile和datafile不同,controlfile不能指定size,控制文件创 ...

分配给控制文件的裸设备大小是最大的大小,这个是一定的了,
控制文件使用的大小也有类似于表的高水位线(就是以前使用的block的最大值),当控制文件保存的内容超过这个"高水位线"如果设置了control_file_record_keep_time会继续扩展"高水位线",如果设置的较小,会覆盖之前的内容,是这么理解吧?
差不多,你可以这么理解,但是不准确。 并不存在HWM的概念,HWM是在一个已经allocate的空间内部,而不是在空间的边界上~

使用道具 举报

回复
论坛徽章:
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
12#
发表于 2018-2-7 23:14 | 只看该作者
Zergduan clearly explains that the size of the raw device where you place the controlfile is irrelevant; it just sets an upper limit to the growth of the controlfile. Nowadays, though, nobody uses raw devices directly. The most common practice in industry is to use ASM, which is essentially raw devices but has an excellent management layer.

Back to the real question. guocun09's message #8 is the best explanation. There's no high water mark inside the controlfile. The rule is simple. If a new record must be inserted into the controlfile and there's no space and the oldest record is not old enough compared to control_file_record_keep_time, then the controlfile is expanded. If none of the conditions is met, the file is not expanded. Note that the controlfile never shrinks. Suppose it's expanded for the above reasons, due to heavy activity of the database and therefore lots of archive logs and RMAN backups in a short time. Later, when the database becomes quiet for months, the oldest record in the controlfile will never be newer than control_file_record_keep_time and so will always be overwritten by new records. The controlfile becomes stable in size.

使用道具 举报

回复
论坛徽章:
0
13#
 楼主| 发表于 2019-6-14 16:57 | 只看该作者
Yong Huang 发表于 2018-2-7 23:14
Zergduan clearly explains that the size of the raw device where you place the controlfile is irrelev ...

在RMAN恢复中,如果可以停机恢复,catalog start with是否可以完全取代control_file_record_keep_time,不需要在单独设置control_file_record_keep_time的天数

使用道具 举报

回复

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

本版积分规则 发表回复

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