Oracle 11g通过SCN做增量备份修复standby库详细过程(6)

RMAN> restore controlfile from'/data/oracle/backup/restore/standby.ctl';                                                                                                                     

Starting restore at 13-MAY-15

using channel ORA_DISK_1

RMAN-00571:===========================================================                                                                                                                       

RMAN-00569: =============== ERROR MESSAGESTACK FOLLOWS ===============

RMAN-00571:===========================================================

RMAN-03002: failure of restore command at05/13/2015 20:44:02

RMAN-06172: no AUTOBACKUP found orspecified handle is not a valid copy or piece

RMAN>

是目录权限的问题,需要设置成oracle用户

[root@localhost restore]# ll

total 2568604

-rw-r----- 1 root root 2591825920 May 1320:35 db_increi3q6s13g_1_1.bbk

-rw-r----- 1 root root  19234816 May 13 20:35db_increi4q6s1lp_1_1.bbk

-rw-r----- 1 root root  19185664 May 13 20:35 standby.ctl

[root@localhost restore]# chown -Roracle.dba *

[root@localhost restore]#

RMAN> restore controlfile from'/data/oracle/backup/restore/standby.ctl';                                                                                                                     

Starting restore at 13-MAY-15

using target database control file insteadof recovery catalog

allocated channel: ORA_DISK_1                                                                                                                                                                 

channel ORA_DISK_1: SID=386 devicetype=DISK

channel ORA_DISK_1: copied control filecopy                                                                                                                                                 

output filename=/home/oradata/powerdes/control01.ctl

output filename=/oracle/app/oracle/flash_recovery_area/powerdes/control02.ctl

Finished restore at 13-MAY-15

RMAN>

10,备库上rman执行catalog操作

先将数据库加载到mount,然后再执行catalog start with '/data/oracle/backup/restore'恢复

RMAN> alter database mount                                                                                                                                                                   

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/b798030c8d1690eb18e86ccf96cac29d.html