84.Which two files in the database can be configured for automatic backups by using the autobackup f

84.Which two files in the database can be configured for automatic backups by using the autobackup
feature in Recovery Manager (RMAN)? (Choose two.)
A.data files
B.control files
C.parameter file
D.online redo log files
E.server parameter file
答案:BE
解析:rman自动备份控制文件时,会同时备份当前控制文件和spfile
--查看自动备份是否打开
RMAN> show CONTROLFILE AUTOBACKUP;
RMAN configuration parameters for database with db_unique_name WAHAHA3 are:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
--查看是否有备份信息
RMAN> list backup summary;
specification does not match any backup in the repository
--进行一个表空间备份备份
RMAN> backup tablespace users;


Starting backup at 23-JUL-16
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=37 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00004 name=/u01/oracle/oradata/wahaha3/users01.dbf
channel ORA_DISK_1: starting piece 1 at 23-JUL-16
channel ORA_DISK_1: finished piece 1 at 23-JUL-16
piece handle=/home/oracle/db_recover/WAHAHA3/backupset/2016_07_23/o1_mf_nnndf_TAG20160723T113055_cs5s7hlp_.bkp tag=TAG20160723T113055 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
Finished backup at 23-JUL-16


Starting Control File and SPFILE Autobackup at 23-JUL-16
piece handle=/home/oracle/db_recover/WAHAHA3/autobackup/2016_07_23/o1_mf_s_917955062_cs5s7pxt_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 23-JUL-16
RMAN> 
从这里可以看出,备份了2次,第一次是users01.dbf,第二次是控制文件和spfile文件
RMAN> list backup summary; 
List of Backups
===============
Key     TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
------- -- -- - ----------- --------------- ------- ------- ---------- ---
111     B  F  A DISK        23-JUL-16       1       1       NO         TAG20160723T113055
112     B  F  A DISK        23-JUL-16       1       1       NO         TAG20160723T113102
--这里可以看到有连个备份
RMAN> list backupset 111;

List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
111     Full    85.54M     DISK        00:00:04     23-JUL-16      
        BP Key: 111   Status: AVAILABLE  Compressed: NO  Tag: TAG20160723T113055
        Piece Name: /home/oracle/db_recover/WAHAHA3/backupset/2016_07_23/o1_mf_nnndf_TAG20160723T113055_cs5s7hlp_.bkp
  List of Datafiles in backup set 111
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  4       Full 2654007    23-JUL-16 /u01/oracle/oradata/wahaha3/users01.dbf


RMAN> list backupset 112;

List of Backup Sets
===================

BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
112     Full    9.52M      DISK        00:00:01     23-JUL-16      
        BP Key: 112   Status: AVAILABLE  Compressed: NO  Tag: TAG20160723T113102
        Piece Name: /home/oracle/db_recover/WAHAHA3/autobackup/2016_07_23/o1_mf_s_917955062_cs5s7pxt_.bkp
  Control File Included: Ckp SCN: 2654015      Ckp time: 23-JUL-16
  SPFILE Included: Modification time: 23-JUL-16

  SPFILE db_unique_name: WAHAHA3
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值