首页 > 数据库 > Oracle > 1Z0-053 V13.02 Q667
667.What does the DB_FLASHBACK_RETENTION_TARGET parameter configure?
什么是db_flashback_retention_target参数配置?
A. An upper limit on how far you can flash back the database, depending on the information in the redologs
A. 根据在redologs中的信息,你可以闪回数据库多长时间的一个上限
B. An upper limit on how far you can flash back the database, depending on the information in the undotablespace
B. 根据在undo tablespace中的信息,你可以闪回数据库多长时间的一个上限
C. The amount of time for which the flashback data is to be kept in the flash recovery area, provided that there is enough space
C. 只要有足够的空间,该是闪回数据保存在闪回恢复区的时间
D. The amount of time for which the flashback data is guaranteed to be kept in the undo tablespace,provided that there is enough space
D. 只要有足够的空间,该是闪回数据保证存放在undo表空间的时间
Answer: C
参考:http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams061.htm#sthref198
配置闪回数据库:
1、确保数据库处于归档模式;
select log_mode from v$database
2、创建闪回恢复区;
闪回恢复区是存放闪回日志的场所。
DB_RECOVERY_FILE_DEST和DB_RECOVERY_FILE_DEST_SIZE是控制闪回恢复区位置和大小的二个参数。
3、设置闪回保留目标时间;
保留目标时间通过 DB_FLASHBACK_RETENTION_TARGET 参数来控制,单位分钟,默认是1天,即1440分钟。
闪回日志空间以循环的方式重用,DB_FLASHBACK_RETENTION_TARGET 参数指示ORACLE在重写之前保存闪回数据的时间。
这只是一个目标时间,如果闪回恢复区的大小不足,则ORACLE可能无法保持该目标。
4、干净地关闭并加载数据库;
shutdown immediate;
startup mount;
5、启用闪回日志记录;
alter database flashback on;
6、打开数据库;
alter database open;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/81227/viewspace-2107772/ ,如需转载,请注明出处,否则将追究法律责任。