怎么理解RMAN backup database plus archivelog delete all input命令

发布时间:2021-11-05 17:03:05 作者:柒染
来源:亿速云 阅读:443

本篇文章为大家展示了怎么理解RMAN backup database plus archivelog delete all input命令,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。

RMAN> run {

2> backup as compressed backupset incremental level 1 database plus archivelog delete all input;

3> }//RMAN备份脚本

Starting backup at 28-APR-10

#切换在线日志(sql 'alter system archive log current';)

current log archived//发生日志切换

#备份之前所有的归档日志

using channel ORA_DISK_1

channel ORA_DISK_1: starting compressed archive log backupset

channel ORA_DISK_1: specifying archive log(s) in backup set

input archive log thread=1 sequence=33 recid=6 stamp=717527999 //这是刚刚归档的日志

channel ORA_DISK_1: starting piece 1 at 28-APR-10

channel ORA_DISK_1: finished piece 1 at 28-APR-10

piece handle=/u01/app/oracle/flash_recovery_area/YTHDB/backupset/2010_04_28/o1_mf_annnn_TAG20100428T172000_5xhvxkcy_.bkp tag=TAG20100428T172000 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02

channel ORA_DISK_1: deleting archive log(s)//删除输入的归档日志

archive log filename=/u01/app/oracle/flash_recovery_area/YTHDB/archivelog/2010_04_28/o1_mf_1_33_5xhvxhjl_.arc recid=6 stamp=717527999

Finished backup at 28-APR-10

#备份数据文件

Starting backup at 28-APR-10

using channel ORA_DISK_1

channel ORA_DISK_1: starting compressed incremental level 1 datafile backupset

channel ORA_DISK_1: specifying datafile(s) in backupset

input datafile fno=00005 name=/dev/rdcdb_data01

input datafile fno=00006 name=/dev/rdcdb_data02

input datafile fno=00007 name=/dev/rdcdb_data03

input datafile fno=00008 name=/dev/rdcdb_data04

input datafile fno=00009 name=/dev/rdcdb_data05

input datafile fno=00010 name=/dev/rdcdb_data06

input datafile fno=00011 name=/dev/rdcdb_data07

input datafile fno=00012 name=/dev/rdcdb_data08

input datafile fno=00013 name=/dev/rdcdb_data09

input datafile fno=00014 name=/dev/rdcdb_data10

input datafile fno=00015 name=/dev/rdcdb_data11

input datafile fno=00016 name=/dev/rdcdb_data12

input datafile fno=00017 name=/dev/rdcdb_data13

input datafile fno=00018 name=/dev/rdcdb_data14

input datafile fno=00019 name=/dev/rdcdb_data15

input datafile fno=00020 name=/dev/rdcdb_data16

input datafile fno=00021 name=/dev/rdcdb_data17

input datafile fno=00022 name=/dev/rdcdb_data18

input datafile fno=00001 name=/dev/rdcdb_system01

input datafile fno=00023 name=/dev/rdcdb_data19

input datafile fno=00003 name=/dev/rdcdb_sysaux01

input datafile fno=00002 name=/dev/rdcdb_undotbs01

input datafile fno=00004 name=/dev/rdcdb_user

channel ORA_DISK_1: starting piece 1 at 28-APR-10

channel ORA_DISK_1: finished piece 1 at 28-APR-10

piece handle=/u01/app/oracle/flash_recovery_area/YTHDB/backupset/2010_04_28/o1_mf_nnnd1_TAG20100428T172003_5xhvxqn1_.bkp tag=TAG20100428T172003 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04

channel ORA_DISK_1: starting compressed incremental level 1 datafile backupset

channel ORA_DISK_1: specifying datafile(s) in backupset

#备份控制文件和SPFILE(AUTOBACKUP OFF)

including current control file in backupset

including current SPFILE in backupset

channel ORA_DISK_1: starting piece 1 at 28-APR-10

channel ORA_DISK_1: finished piece 1 at 28-APR-10

piece handle=/u01/app/oracle/flash_recovery_area/YTHDB/backupset/2010_04_28/o1_mf_ncsn1_TAG20100428T172003_5xhvxv6b_.bkp tag=TAG20100428T172003 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03

Finished backup at 28-APR-10

Starting backup at 28-APR-10

#再次切换在线日志(sql 'alter system archive log current';)

current log archived//发生日志切换

#备份执行备份命令期间产生的归档日志

using channel ORA_DISK_1

channel ORA_DISK_1: starting compressed archive log backupset

channel ORA_DISK_1: specifying archive log(s) in backup set

input archive log thread=1 sequence=34 recid=7 stamp=717528012//这是刚刚归档的日志

channel ORA_DISK_1: starting piece 1 at 28-APR-10

channel ORA_DISK_1: finished piece 1 at 28-APR-10

piece handle=/u01/app/oracle/flash_recovery_area/YTHDB/backupset/2010_04_28/o1_mf_annnn_TAG20100428T172012_5xhvxy7k_.bkp tag=TAG20100428T172012 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02

channel ORA_DISK_1: deleting archive log(s)//删除输入的归档日志

archive log filename=/u01/app/oracle/flash_recovery_area/YTHDB/archivelog/2010_04_28/o1_mf_1_34_5xhvxwgz_.arc recid=7 stamp=717528012

Finished backup at 28-APR-10

命令中的关键字all个人理解有2层含义:

1.表示当前归档日志之前的所有日志。所以我们在备份执行要先加入一句crosscheck archivelog all;以免在比对老的归档时发现没有而报错。

2.如果有多个归档的目的地,表示所有的归档目的地,在执行删除归档日志的时候才会在所有的目的地上全部删除。

上述内容就是怎么理解RMAN backup database plus archivelog delete all input命令,你们学到知识或技能了吗?如果还想学到更多技能或者丰富自己的知识储备,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. oracle rman备份脚本
  2. RMAN命令简解

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

rman

上一篇:什么是Java一致性Hash算法

下一篇:云服务器中如何解决linux下zip文件解压乱码问题

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》