backup archivelog all not backed up
backup archivelog all not backed up;
这条命令可以用来备份没有备份过的归档日志,同时不会备份已经备份过的归档日志。下面是具体用法。
第一次备份归档日志
- RMAN> backup archivelog all not backed up;
- Starting backup at 12-MAR-16
- current log archived
- using channel ORA_DISK_1
- channel ORA_DISK_1: starting archived log backup set
- channel ORA_DISK_1: specifying archived log(s) in backup set
- input archived log thread=1 sequence=5 RECID=1 STAMP=906200876
- input archived log thread=1 sequence=6 RECID=2 STAMP=906275330
- input archived log thread=1 sequence=7 RECID=3 STAMP=906275462
- input archived log thread=1 sequence=8 RECID=4 STAMP=906275486
- input archived log thread=1 sequence=9 RECID=5 STAMP=906275493
- input archived log thread=1 sequence=10 RECID=6 STAMP=906275503
- input archived log thread=1 sequence=11 RECID=7 STAMP=906275511
- input archived log thread=1 sequence=12 RECID=8 STAMP=906275530
- input archived log thread=1 sequence=13 RECID=9 STAMP=906275556
- input archived log thread=1 sequence=14 RECID=10 STAMP=906275574
- input archived log thread=1 sequence=15 RECID=11 STAMP=906275592
- input archived log thread=1 sequence=16 RECID=12 STAMP=906275612
- input archived log thread=1 sequence=17 RECID=13 STAMP=906275634
- input archived log thread=1 sequence=18 RECID=14 STAMP=906275673
- input archived log thread=1 sequence=19 RECID=15 STAMP=906275691
- input archived log thread=1 sequence=20 RECID=16 STAMP=906275730
- input archived log thread=1 sequence=21 RECID=17 STAMP=906275892
- input archived log thread=1 sequence=22 RECID=18 STAMP=906285113
- input archived log thread=1 sequence=23 RECID=19 STAMP=906285372
- input archived log thread=1 sequence=24 RECID=20 STAMP=906287723
- input archived log thread=1 sequence=25 RECID=21 STAMP=906289627
- input archived log thread=1 sequence=26 RECID=22 STAMP=906291279
- input archived log thread=1 sequence=27 RECID=23 STAMP=906291412
- input archived log thread=1 sequence=28 RECID=24 STAMP=906291557
- input archived log thread=1 sequence=29 RECID=25 STAMP=906291740
- input archived log thread=1 sequence=30 RECID=26 STAMP=906292245
- channel ORA_DISK_1: starting piece 1 at 12-MAR-16
- channel ORA_DISK_1: finished piece 1 at 12-MAR-16
- piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2016_03_12/o1_mf_annnn_TAG20160312T115045_cg74jop2_.bkp tag=TAG20160312T115045 comment=NONE
- channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
- Finished backup at 12-MAR-16
第二次备份归档日志
- RMAN> backup archivelog all not backed up;
- Starting backup at 12-MAR-16
- current log archived
- using channel ORA_DISK_1
- skipping archived logs of thread 1 from sequence 5 to 30; already backed up
- channel ORA_DISK_1: starting archived log backup set
- channel ORA_DISK_1: specifying archived log(s) in backup set
- input archived log thread=1 sequence=31 RECID=27 STAMP=906292476
- channel ORA_DISK_1: starting piece 1 at 12-MAR-16
- channel ORA_DISK_1: finished piece 1 at 12-MAR-16
- piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2016_03_12/o1_mf_annnn_TAG20160312T115436_cg74qwtq_.bkp tag=TAG20160312T115436 comment=NONE
- channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
- Finished backup at 12-MAR-16
可以看到,除了新产生的31号归档,前面的归档日志均已跳过备份。
将命令稍微修改一下
- RMAN> backup archivelog all not backed up 2 times;
- Starting backup at 12-MAR-16
- current log archived
- using channel ORA_DISK_1
- channel ORA_DISK_1: starting archived log backup set
- channel ORA_DISK_1: specifying archived log(s) in backup set
- input archived log thread=1 sequence=5 RECID=1 STAMP=906200876
- input archived log thread=1 sequence=6 RECID=2 STAMP=906275330
- input archived log thread=1 sequence=7 RECID=3 STAMP=906275462
- input archived log thread=1 sequence=8 RECID=4 STAMP=906275486
- input archived log thread=1 sequence=9 RECID=5 STAMP=906275493
- input archived log thread=1 sequence=10 RECID=6 STAMP=906275503
- input archived log thread=1 sequence=11 RECID=7 STAMP=906275511
- input archived log thread=1 sequence=12 RECID=8 STAMP=906275530
- input archived log thread=1 sequence=13 RECID=9 STAMP=906275556
- input archived log thread=1 sequence=14 RECID=10 STAMP=906275574
- input archived log thread=1 sequence=15 RECID=11 STAMP=906275592
- input archived log thread=1 sequence=16 RECID=12 STAMP=906275612
- input archived log thread=1 sequence=17 RECID=13 STAMP=906275634
- input archived log thread=1 sequence=18 RECID=14 STAMP=906275673
- input archived log thread=1 sequence=19 RECID=15 STAMP=906275691
- input archived log thread=1 sequence=20 RECID=16 STAMP=906275730
- input archived log thread=1 sequence=21 RECID=17 STAMP=906275892
- input archived log thread=1 sequence=22 RECID=18 STAMP=906285113
- input archived log thread=1 sequence=23 RECID=19 STAMP=906285372
- input archived log thread=1 sequence=24 RECID=20 STAMP=906287723
- input archived log thread=1 sequence=25 RECID=21 STAMP=906289627
- input archived log thread=1 sequence=26 RECID=22 STAMP=906291279
- input archived log thread=1 sequence=27 RECID=23 STAMP=906291412
- input archived log thread=1 sequence=28 RECID=24 STAMP=906291557
- input archived log thread=1 sequence=29 RECID=25 STAMP=906291740
- input archived log thread=1 sequence=30 RECID=26 STAMP=906292245
- input archived log thread=1 sequence=31 RECID=27 STAMP=906292476
- input archived log thread=1 sequence=32 RECID=28 STAMP=906292679
- channel ORA_DISK_1: starting piece 1 at 12-MAR-16
- channel ORA_DISK_1: finished piece 1 at 12-MAR-16
- piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2016_03_12/o1_mf_annnn_TAG20160312T115759_cg74y7vy_.bkp tag=TAG20160312T115759 comment=NONE
- channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
- Finished backup at 12-MAR-16
该命令的意思是:备份没有备份过两次的归档日志,前面的所有归档日志只备份过一次,所以都备份。
再看下面的命令
- RMAN> backup archivelog all not backed up 1 times;
- Starting backup at 12-MAR-16
- current log archived
- using channel ORA_DISK_1
- skipping archived logs of thread 1 from sequence 5 to 32; already backed up
- channel ORA_DISK_1: starting archived log backup set
- channel ORA_DISK_1: specifying archived log(s) in backup set
- input archived log thread=1 sequence=33 RECID=29 STAMP=906292883
- channel ORA_DISK_1: starting piece 1 at 12-MAR-16
- channel ORA_DISK_1: finished piece 1 at 12-MAR-16
- piece handle=/u01/app/oracle/fast_recovery_area/ORCL/backupset/2016_03_12/o1_mf_annnn_TAG20160312T120123_cg754mrr_.bkp tag=TAG20160312T120123 comment=NONE
- channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
- Finished backup at 12-MAR-16
1 times与不加1 times的效果是一样的,即备份过一次及以上的归档都不备份,在此处,新产生的33号归档日志没有备份过,因此备份33号归档日志。
转自:http://blog.itpub.net/29067253/viewspace-2056040/
backup archivelog all not backed up的更多相关文章
- backup archivelog all
OLTP系统的生产库一般都是打开归档模式,当CUD操作频繁并且时常使用大批量处理时,每天的归档日志也是超级大的,如果长期保留这些归档日志磁盘空间消耗是很恐怖的,所以我们在使用RMAN进行数据库备份时 ...
- 转 RMAN: RAC Backup, Restore and Recovery using RMAN
PURPOSE The purpose of this document is to give a quick guide for using RMAN on RAC databases. We wi ...
- Oracle® Database Patch 19121551 - Database Patch Set Update 11.2.0.4.4 (Includes CPUOct2014) - 傲游云浏览
Skip Headers Oracle® Database Patch 19121551 - Database Patch Set Update 11.2.0.4.4 (Includes CPUOct ...
- RMAN常用命令汇总
RMAN是Oracle数据库备份管理中必须用到的管理工具.它的操作方式有很多种,我整理了一些常用的操作命令,汇总起来,以方便工作. (miki西游 @mikixiyou 文档,原文链接: http:/ ...
- [20170623]利用传输表空间恢复部分数据.txt
[20170623]利用传输表空间恢复部分数据.txt --//昨天我测试使用传输表空间+dblink,上午补充测试发现表空间设置只读才能执行impdp导入原数据,这个也很好理解.--//这样的操作模 ...
- 11g RMAN Restore archivelog用法
I.备份所有归档日志文件 RMAN> BACKUP FORMAT '/u01/backup/arch_%U_%T' skip inaccessible filesperset 5 ARCHIVE ...
- skipping archived logs of thread 1 from sequence 29 to 46; already backed up
问题描述:删除归档的备份,在进行归档的重新备份,提示:skipping archived logs of thread 1 from sequence 29 to 46; already backed ...
- 异机恢复 RMAN-06023: no backup or copy of datafile 17 found to restore
前不久因工作需要使用RMAN异机恢复,很基础也很具有代表性和普遍性,希望对需要的人有所帮助. 具体过程如下: 先拷贝原库的口令文件和参数文件到备库. 然后使用如下脚本对原库进行备份: run { al ...
- delete archivelog all 无法彻底删除归档日志?
最近在因归档日志暴增,使用delete archivelog all貌似无法清除所有的归档日志,到底是什么原因呢? 1.演示环境 SQL> select * from v$version whe ...
随机推荐
- 【LeetCode】21. Merge Two Sorted Lists 合并两个有序链表
作者: 负雪明烛 id: fuxuemingzhu 个人博客:http://fuxuemingzhu.cn/ 个人公众号:负雪明烛 本文关键词:合并,有序链表,递归,迭代,题解,leetcode, 力 ...
- 【LeetCode】862. Shortest Subarray with Sum at Least K 解题报告(C++)
作者: 负雪明烛 id: fuxuemingzhu 个人博客: http://fuxuemingzhu.cn/ 目录 题目描述 题目大意 解题方法 队列 日期 题目地址:https://leetcod ...
- C. Hongcow Builds A Nation
C. Hongcow Builds A Nation time limit per test 2 seconds memory limit per test 256 megabytes input s ...
- Travelling(hdu3001)
Travelling Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total ...
- WPF自定义界面WindowChrome
WPF自定义界面WindowChrome 默认WPF的界面其实也还行,就是满足不了日渐增长的需求,界面还是需要有更高的自定义程度,包括标题栏也要能够塞下更多的操作控件. 默认窗口介绍 新建WPF项目, ...
- 网络划分和各层协议以及webservice 浅谈
最近在公司做一些和其他外部系统接口调用的工作,遇到一些网络传输的问题,趁周末的时间记录.整理一下. 提到网络我们不得不提网络的分层架构: 我们通常听到 网络七层架构/五层架构/四层架构,但是不了解很容 ...
- Java,JDK安装及环境配置
jdk安装及环境配置 一.jdk安装 1.找到jdk安装包 2.安装jdk 3.安装jre 二.环境变量配置 1.JAVA_HOME JAVA_HOME C:\Program Fil ...
- Android物联网应用程序开发(智慧城市)—— 购物信息的存储界面开发
效果: 布局代码: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:an ...
- JavaScript交互式网页设计笔记 • 【目录】
章节 内容 实践练习 JavaScript交互式网页设计作业目录(作业笔记) 第1章 JavaScript交互式网页设计笔记 • [第1章 JavaScript基本语法] 第2章 JavaScript ...
- 【】Elasticsearch客户端API使用Demo
Elasticsearch客户端API使用Demo, 转载自官方文档, 以索引雇员文档为示例, 在命令行使用curl演示了一系列的Restful API操作. 1.索引雇员文档 第一个业务需求就是存储 ...