023_DG_3_restore
4.7 restore database on standby
4.7.1 startup nomount on standby
STAGE[oracle@Standby rmanbackup]$
export ORACLE_SID=SID;
[oracle@Standby
rmanbackup]$ rman target / nocatalog
RMAN> startup nomount;
Oracle instance started
Total System
Global Area 6747725824 bytes
Fixed Size 2213976 bytes
Variable
Size 3623880616 bytes
Database Buffers 3087007744 bytes
Redo Buffers
34623488 bytes
4.7.2 設定DBID STAGE
STAGE
RMAN> set dbid=2330223285;
executing command: SET DBID
4.7.3 restore standby controlfile
使用下列指令restore standby controlfile,紅字部份請依環境進行調整。
RMAN> restore standby controlfile from '/rmanbackup/standby.ctl';
alter
database mount;
restore database; recover database;
4.7.4 mount database
## 使用下列語法mount database。
RMAN> alter
database mount;
RMAN> alter
database mount;
4.7.5 restore database
## 使用下列指令執行restore database。
RMAN>
restore database;
RMAN>
restore database;
4.7.6 recover database
使用下列指令執行recover database,底下出現的Error Message表示需要sequence=24的archive
log,但因2.4備份Primary Database時,當時archive log只到sequence 23,故此Error Message為正常的。
RMAN> recover database;
Starting
recover at 29-APR-16
using channel ORA_DISK_1
using channel ORA_DISK_2
using channel ORA_DISK_3
using channel ORA_DISK_4
starting media
recovery
archived log for thread 1 with sequence 475102 is already on
disk as file
/oracle/u01/app/oracle/flash_recovery_area/ADPMOBILE/archivelog/2016_04_29/o1_mf_1_475102_cl6g66qf_.arc
archived log for thread 1 with sequence 475103 is already on disk as file
/oracle/u01/app/oracle/flash_recovery_area/ADPMOBILE/archivelog/2016_04_29/o1_mf_1_475103_cl6g67pw_.arc
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1
sequence=475098
channel ORA_DISK_1: reading from backup piece
/rmanbackup/PRMY_ifr491kb_1_1.bk
RMAN-00571:
===========================================================
RMAN-00569:
=============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571:
===========================================================
RMAN-03002:
failure of recover command at 04/29/2016 18:59:53
ORA-19870: error while
restoring backup piece /rmanbackup/PRMY_ifr491kb_1_1.bk
ORA-19809: limit
exceeded for recovery files
ORA-19804: cannot reclaim 202038272 bytes
disk space from 4070572032 limit
沒有留言:
張貼留言