使用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验证备份的有效性的主要内容,如果未能解决你的问题,请参考以下文章
利用SHELL脚本来验证Oracle数据库RMAN备份集的有效性