使用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>
时间: 2024-10-14 20:41:22

使用RMAN验证备份的有效性的相关文章

oracle11g rman验证备份有效性

RMAN> restore validate controlfile; Starting restore at 21-NOV-13using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=71 device type=DISK channel ORA_DISK_1: starting validation of datafil

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

rman作为oracle备份与恢复工具,为我们提供了强大的功能.当中包含对数据文件的物理和逻辑检測以及备份文件的有效性检測. 首先.来看一下rman对数据文件的检測. 我们知道,rman在备份数据时,会将数据读入读缓存,然会将数据从读缓存写入写缓存并终于写入数据库.在从读缓存到写缓存的过程中,rman会进行物理一致性的检測(db_block_checksum未true)和逻辑一致性检測(使用了check logical选项).比如: SQL> show parameter db_block NA

[转]Oracle DB 使用RMAN创建备份2

归档备份:概念 归档备份:概念 如果需要在指定时间内保留联机备份,RMAN 通常会假定用户可能需要在自执行该备份以来到现在之间的任意时间执行时间点恢复.为了满足这一要求,RMAN 会在此时段内保留归档日志.但是,可能仅需要在指定的时间(如两年)内保留特定备份(并使其保持一致和可恢复).用户不打算恢复到自执行该备份以后的某一时间点,只是希望能够正好恢复到执行该备份的确切时间.此外,用户还需要维护保留策略以使备份区井然有序,因此无法使备份恢复到两年前.为了满足保留数据的商业或法律要求,通常需要这么做

中小型数据库 RMAN CATALOG 备份恢复方案(二)

中小型数据库呈现的是数据库并发少,数据库容量小,版本功能受限以及N多单实例等特点.尽管如此,数据库的损失程度也会存在零丢失的情形.企业不愿意花太多的钱又要保证数据库的可靠稳定,可是苦煞了我这些搞DB的.接上一篇文章,中小型数据库 RMAN CATALOG 备份恢复方案(一),我们继续来给出基于中小型数据库的恢复的脚本与其部署. 1.RMAN还原shell脚本 [python] view plain copy print? --下面的shell脚本用于实现数据库的自动还原,还原成功后,数据库被关闭

RMAN增量备份-备份保留策略-设置备份集属性

RMAN增量备份:增量备份级别:0,1,2,3,4BACKUP DATABASE也是创建数据库的完整备份,但是这种备份不同于增量备份的0级备份.这种备份不包含增量备份的0级备份,并不支持在此基础上再创建增量备份.1.建立增量级0级的全库备份 C:\Users\Administrator>RMAN 恢复管理器: Release 11.2.0.1.0 - Production on 星期三 12月 17 21:44:29 2014 Copyright (c) 1982, 2009, Oracle a

RMAN简单备份

1.连接恢复目录及目标数据库 C:\Users\Administrator>rman 恢复管理器: Release 11.2.0.1.0 - Production on 星期日 10月 12 17:48:26 2014 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. RMAN> connect catalog rcat/rcat[email protected]; 连接到恢复目录数据库 R

利用rman自动备份转储spfile

[情景简介] 生产环境丢失了服务器的参数文件,rman已开启自动备份设置. [操作过程简述] ----启动rman $rman target / ----检查rman设置 RMAN> show all; ----配置一遍rman自动备份控制文件,模拟初次设置rman自动备份控制文件 RMAN>CONFIGURE CONTROLFILEAUTOBACKUP ON; RMAN>CONFIGURE CONTROLFILEAUTOBACKUP FORMAT FOR DEVICE TYPE DIS

RMAN catalog备份

Oracle开启归档模式 1.开启归档 sqlplus>shutdown immediate;(启动归档前先要停止数据库) sqlplus>startup mount;(数据库以mount方式启动) sqlplus>alter database archivelog;(启动数据库归档) sqlplus>alter system set log_archive_dest_1="/arch"(改变归档日志路径) sqlplus>alter database o

rman压缩备份题目

ocp 053 688. Which two statements are true about the compressed backups in RMAN? (Choose two.) A.Compressed backups can only  be taken on the tape drives. B.The binary compression creates some performance overhead during backup operation. C.The ZLIB