百分求解:控制文件自动备份问题,今天下班前结帖

xiaoxiao1984 2008-12-30 02:41:34
In Recovery Manager (RMAN), you have set control file autobackup to ON by using the following command: CONFIGURE CONTROLFILE AUTOBACKUP ON; Which two events would cause the control file to be backed up automatically? (Choose two)
A. A tablespace is taken offline.
B. The database instance is restarted.
C. A new data file is added to an existing tablespace.
D. A successful backup is recorded in the RMAN repository.
E. The RMAN connection is disconnected from the target database

答案是CD

A为什么不对?很困惑,各位大大来解释一下吧,偶实在想不起来什么情况下做表空间离线会不备份控制文件
下班前结帖
...全文
156 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
wiler 2008-12-30
  • 打赏
  • 举报
回复
CONTROL FILES
Every Oracle database has a control file containing the operating system filenames of all other files that constitute the database. This important file also contains consistency information that is used during recovery, such as the:

Database name
Timestamp of database creation
Names of the database's datafiles and online and archived redo log files
Checkpoint, a record indicating the point in the redo log where all database changes prior to this point have been saved in the datafiles
Recovery Manager(RMAN) backup meta-data
Users can multiplex the control file, allowing Oracle to write multiple copies of the control file to protect it against disaster. If the operating system supports disk mirroring, the control file can also be mirrored, allowing the O/S to write a copy of the control file to multiple disks. Every time a user mounts an Oracle database, its control file is used to identify the datafiles and online redo log files that must be opened for database operation. If the physical makeup of the database changes, such as a new datafile or redo log file is created, Oracle then modifies the database's control file to reflect the change. The control file should be backed up whenever the structure of the database changes. Structural changes can include adding, dropping, or altering datafiles or tablespaces and adding or dropping online redo logs

这是oracle网站原文,所以选A应该也是对的呀,唉
xiaoxiao1984 2008-12-30
  • 打赏
  • 举报
回复
下班结贴啦

虽然不知道答案是不是正确的,如果题目确实只能选择两项的话,CD是毫无疑问的必选
A选项还是存有疑问的

没准哪天突然碰到这样的情况呢,呼呼,散分了
wiler 2008-12-30
  • 打赏
  • 举报
回复
只能证明答案是错的
确实有这种情况
wiler 2008-12-30
  • 打赏
  • 举报
回复
alter database backup controlfile to trace 和rman的自动备份效果还是有点区别的:
they contain no records of archived redo logs, offline ranges for datafiles, and RMAN backups and copies

帮你在oracle.com.cn上找到了这个信息,我没有测试过,呵呵
所以A是不能选的
又是违规昵称 2008-12-30
  • 打赏
  • 举报
回复
难道表空间offline了控制文件不会记录变化吗?

如果是的,那就好理解了
xiaoxiao1984 2008-12-30
  • 打赏
  • 举报
回复
摘自alert.log

Control autobackup written to DISK device
handle 'D:\ORACLE\ORADATA\MAOMAO\CF_MAOMAO_AUTO_C-2681070064-20081230-00'
Completed: alter tablespace users offline

hoho,确实备份了阿
当然不排除存在某种情况下的表空间离线却不备份控制文件的

temp tablespace 不能进行离线操作,排除

read only tablespace 进行离线操作,检查后也是备份了控制文件

其他的想不出啥特别的情况了

苦恼ing

wiler 2008-12-30
  • 打赏
  • 举报
回复
ORACLE control file记录的信息:

1:oracle需要的其他文件的目录
2:实例数据库和在线重做日志文件的位置
3:已经发生checkpoint的有关信息:db name,time of create database,history of archieve redo log
4:rman 信息

Oracle checkpoint的执行条件
checkpoint是一个数据库事件,它将已修改的数据从高速缓存刷新到磁盘,并更新控制文件和数据文件。
我们知道了checkpoint会刷新脏数据,但什么时候会发生checkpoint呢?以下几种情况会触发checkpoint。
1.当发生日志组切换的时候
2.当符合LOG_CHECKPOINT_TIMEOUT,LOG_CHECKPOINT_INTERVAL,fast_start_io_target,fast_start_mttr_target参数设置的时候
3.当运行ALTER SYSTEM SWITCH LOGFILE的时候
4.当运行ALTER SYSTEM CHECKPOINT的时候
5.当运行alter tablespace XXX begin backup,end backup的时候
6.当运行alter tablespace ,datafile offline的时候;

我也觉得应该选A,LZ测试一下,结果是否备份了呢
西北刘五 2008-12-30
  • 打赏
  • 举报
回复
过来混分,随便说说,我感觉这是alter tablespace 和 alter database的区别,我们使用前者alter tablespace x offline时,整个空间的段都冻结了,不会出现结构改变,所以online时直接就可以了,但使用alter database datafile x offline时,只是部分冻结,其他有可能变动,所以online是必须提前介质恢复一下,既然对结构没有变动,控制文件也没变化,就不用备份了,至于操作记录,应该是进入日志文件了,不知道对不对,仅当参考。
范佩西_11 2008-12-30
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 xiaoxiao1984 的回复:]
C必选,增加新数据文件,修改数据库结构
D必选,因为做备份必定需要在控制文件中记录备份的metadata信息

A我觉得正常的表空间离线,那么必定修改了表空间的状态(记录在控制文件中)
实在想不起来什么情况下表空间离线会不需要备份
[/Quote]再顶一下,今天高手们都逛街去了吗,呵呵
xiaoxiao1984 2008-12-30
  • 打赏
  • 举报
回复
C必选,增加新数据文件,修改数据库结构
D必选,因为做备份必定需要在控制文件中记录备份的metadata信息

A我觉得正常的表空间离线,那么必定修改了表空间的状态(记录在控制文件中)
实在想不起来什么情况下表空间离线会不需要备份
范佩西_11 2008-12-30
  • 打赏
  • 举报
回复
偶菜的,先说说
C肯定选,毫无争议。
B,E肯定不选也无争议
D只是一个陈述。不知道为什么这个也对。
至于A
表空间离线对数据库结构未发生改变。控制文件自动备份是数据库结构发生改变时才触发自动备份。我的理解。
如果要我选只选C
可是题目要求Choose two
看来只能选C,D了

2,668

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 认证与考试
社区管理员
  • 认证与考试社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧