使用RMAN验证备份的有效性

Posted polestar

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用RMAN验证备份的有效性相关的知识,希望对你有一定的参考价值。

--验证控制文件和参数文件:
RMAN> restore validate controlfile;

Starting restore at 22-JUL-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=36 device type=DISK

channel ORA_DISK_1: starting validation of datafile backup set
channel ORA_DISK_1: reading from backup piece /u01/backup/fullbak_ORACLE_20140722_5_1
channel ORA_DISK_1: piece handle=/u01/backup/fullbak_ORACLE_20140722_5_1 tag=TAG20140722T095956
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: validation complete, elapsed time: 00:00:02
Finished restore at 22-JUL-14

RMAN> restore validate spfile;

Starting restore at 22-JUL-14
using channel ORA_DISK_1

channel ORA_DISK_1: starting validation of datafile backup set
channel ORA_DISK_1: reading from backup piece /u01/backup/fullbak_ORACLE_20140722_6_1
channel ORA_DISK_1: piece handle=/u01/backup/fullbak_ORACLE_20140722_6_1 tag=TAG20140722T095956
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: validation complete, elapsed time: 00:00:02
Finished restore at 22-JUL-14


--验证全备份 一般会很慢
RMAN>  restore validate database;

Starting restore at 22-JUL-14
using channel ORA_DISK_1

channel ORA_DISK_1: starting validation of datafile backup set
channel ORA_DISK_1: reading from backup piece /u01/backup/fullbak_ORACLE_20140722_4_1
channel ORA_DISK_1: piece handle=/u01/backup/fullbak_ORACLE_20140722_4_1 tag=TAG20140722T095956
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: validation complete, elapsed time: 00:00:16
channel ORA_DISK_1: starting validation of datafile backup set
channel ORA_DISK_1: reading from backup piece /u01/backup/fullbak_ORACLE_20140722_3_1
channel ORA_DISK_1: piece handle=/u01/backup/fullbak_ORACLE_20140722_3_1 tag=TAG20140722T095956
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: validation complete, elapsed time: 00:00:15
Finished restore at 22-JUL-14

RMAN>

 

以上是关于使用RMAN验证备份的有效性的主要内容,如果未能解决你的问题,请参考以下文章

rman备份有效性验证/恢复进度监控

利用SHELL脚本来验证Oracle数据库RMAN备份集的有效性

oracle11g rman验证备份有效性

validate命令---rman进行备份和回复的验证

Oracle数据库从RMAN备份集片段还原指定单个归档日志进行日志挖掘分析

Oracle 11G RMAN 单实例异机恢复