Oracle OCP IZ0-053 Q241(RMAN Recovery Catalog Keep)

241.You issued the following RMAN command to back up the database:
RMAN> RUN{
ALLOCATE CHANNEL c1 DEVICE TYPE sbt
BACKUP DATABASE
TAG quarterly
KEEP FOREVER
RESTORE POINT FY06Q4;}
Which two statements are true regarding the backup performed? (Choose two.)
A. Archived redo log files are backed up along with data files.
B. Only data files are backed up and a restore point named FY06Q4 is created.
C. Archived log files are backed up along with data files, and the archived log files are deleted.
D. The command creates a restore point named FY06Q4 to match the SCN at which this backup is
consistent.
Answer: AD

验证:
RMAN> register database;


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 03/18/2016 05:21:08
RMAN-06428: recovery catalog is not installed


RMAN> create catalog tablespace rman_ts;


recovery catalog created


RMAN> register database;


RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of register command at 03/18/2016 05:22:10
RMAN-06171: not connected to target database


RMAN> connect target /


connected to target database: INST1 (DBID=193461069)


RMAN> register database;


database registered in recovery catalog
starting full resync of recovery catalog
full resync complete


RMAN> RUN{
2> ALLOCATE CHANNEL c1 DEVICE TYPE disk;
3> BACKUP DATABASE
4> TAG quarterly
5> KEEP FOREVER
6> RESTORE POINT FY06Q4;}


allocated channel: c1
channel c1: SID=147 device type=DISK


Starting backup at 18-MAR-16
current log archived


backup will never be obsolete
archived logs required to recover from this backup will be backed up
channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/inst1/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/inst1/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/inst1/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/inst1/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/inst1/user_data01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/inst1/users01.dbf
channel c1: starting piece 1 at 18-MAR-16
released channel: c1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 03/18/2016 05:22:54
ORA-19811: cannot have files in DB_RECOVERY_FILE_DEST with keep attributes


RMAN> RUN{
2> ALLOCATE CHANNEL c1 DEVICE TYPE disk;
3> BACKUP DATABASE
4> TAG quarterly
5> KEEP FOREVER
6> RESTORE POINT FY06Q4 format '/home/oracle/%U';}


allocated channel: c1
channel c1: SID=147 device type=DISK


Starting backup at 18-MAR-16
current log archived


backup will never be obsolete
archived logs required to recover from this backup will be backed up
channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/inst1/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/inst1/sysaux01.dbf
input datafile file number=00005 name=/u01/app/oracle/oradata/inst1/example01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/inst1/undotbs01.dbf
input datafile file number=00006 name=/u01/app/oracle/oradata/inst1/user_data01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/inst1/users01.dbf
channel c1: starting piece 1 at 18-MAR-16
channel c1: finished piece 1 at 18-MAR-16
piece handle=/home/oracle/0nr0ouj8_1_1 tag=QUARTERLY comment=NONE
channel c1: backup set complete, elapsed time: 00:01:05


backup will never be obsolete
archived logs required to recover from this backup will be backed up
channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
including current SPFILE in backup set
channel c1: starting piece 1 at 18-MAR-16
channel c1: finished piece 1 at 18-MAR-16
piece handle=/home/oracle/0or0oula_1_1 tag=QUARTERLY comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01




current log archived
backup will never be obsolete
archived logs required to recover from this backup will be backed up
channel c1: starting archived log backup set
channel c1: specifying archived log(s) in backup set
input archived log thread=1 sequence=11 RECID=14 STAMP=906787499
channel c1: starting piece 1 at 18-MAR-16
channel c1: finished piece 1 at 18-MAR-16
piece handle=/home/oracle/0pr0oulc_1_1 tag=QUARTERLY comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01


backup will never be obsolete
archived logs required to recover from this backup will be backed up
channel c1: starting full datafile backup set
channel c1: specifying datafile(s) in backup set
including current control file in backup set
channel c1: starting piece 1 at 18-MAR-16
channel c1: finished piece 1 at 18-MAR-16
piece handle=/home/oracle/0qr0oule_1_1 tag=QUARTERLY comment=NONE
channel c1: backup set complete, elapsed time: 00:00:01
Finished backup at 18-MAR-16
released channel: c1

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8520577/viewspace-2059682/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8520577/viewspace-2059682/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值