使用 rman duplicate from active database 搭建dataguard 手記,rmandataguard
run {
allocate channel prmy1 type disk;
allocate channel prmy2 type disk;
allocate channel prmy3 type disk;
allocate channel prmy4 type disk;
allocate channel prmy5 type disk;
allocate channel prmy6 type disk;
allocate channel prmy7 type disk;
allocate channel prmy8 type disk;
allocate channel prmy9 type disk;
allocate channel prmy10 type disk;
allocate auxiliary channel stby1 type disk;
allocate auxiliary channel stby2 type disk;
allocate auxiliary channel stby3 type disk;
allocate auxiliary channel stby4 type disk;
allocate auxiliary channel stby5 type disk;
allocate auxiliary channel stby6 type disk;
allocate auxiliary channel stby7 type disk;
allocate auxiliary channel stby8 type disk;
allocate auxiliary channel stby9 type disk;
allocate auxiliary channel stby10 type disk;
duplicate target database for standby from active database dorecover;
}
dorecover:會將備份期間產生的歸檔日誌應用到standby database,但是不會開機記錄應用(not use manual or managed recovery mode.)
Specifies that RMAN should recover the standby database after creating it.
If DORECOVER
is specified, then RMAN also recovers the database. The standby database is left mounted after duplication is complete.
RMAN leaves the standby database mounted after media recovery is complete, but does not place the standby database in manual or managed recovery mode. After RMAN creates the standby database, you must resolve any gap sequence before placing it in manual or managed recovery mode, or opening it in read-only mode.
注意點:
在磁碟io不是瓶頸時,一定要考慮下網路頻寬;
根據網路頻寬,rman 估算綜合評估備份時間
著作權聲明:本文為博主原創文章,未經博主允許不得轉載。