您好,登錄后才能下訂單哦!
這期內容當中小編將會給大家帶來有關rman備份時如何指定備份到兩個目錄下,文章內容豐富且以專業的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
itpub上看的一個問題
1rman備份時應該可以指定備份到兩個目錄下吧?這樣就不用手動去拷貝了.那要如何實現?
RMAN> CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
old RMAN configuration parameters:
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
new RMAN configuration parameters:
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'd:\backup\%U','d:\tools\%U';
old RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'd:\backup\%U', 'd:\tools\%U';
new RMAN configuration parameters:
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'd:\backup\%U', 'd:\tools\%U';
new RMAN configuration parameters are successfully stored
starting full resync of recovery catalog
full resync complete
released channel: ORA_DISK_1
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'd:\backup\%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 1; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 2;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT 'd:\backup\%U';
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'd:\backup\%U', 'd:\tools\%U';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLE\ORA92\DATABASE\SNCFPAUL.ORA';
# default
RMAN configuration has no stored or default parameters
RMAN> backup database format 'd:\backup\%U','d:\tools\%U';
Starting backup at 03-JAN-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=15 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=D:\ORACLE\ORADATA\PAUL\SYSTEM01.DBF
input datafile fno=00002 name=D:\ORACLE\ORADATA\PAUL\UNDOTBS01.DBF
input datafile fno=00006 name=D:\ORACLE\ORADATA\PAUL\TS_TEST01.DBF
input datafile fno=00003 name=D:\ORACLE\ORADATA\PAUL\INDX01.DBF
input datafile fno=00005 name=D:\ORACLE\ORADATA\PAUL\USERS01.DBF
input datafile fno=00004 name=D:\ORACLE\ORADATA\PAUL\TOOLS01.DBF
channel ORA_DISK_1: starting piece 1 at 03-JAN-08
channel ORA_DISK_1: finished piece 1 at 03-JAN-08 with 2 copies
piece handle=D:\BACKUP\4NJ57K6P_1_1 comment=NONE
piece handle=D:\TOOLS\4NJ57K6P_1_2 comment=NONE --兩個路徑下生成的備份文件
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:57
Finished backup at 03-JAN-08
Starting Control File and SPFILE Autobackup at 03-JAN-08
piece handle=D:\BACKUP\C-1605165889-20080103-01 comment=NONE
Finished Control File and SPFILE Autobackup at 03-JAN-08
上述就是小編為大家分享的rman備份時如何指定備份到兩個目錄下了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關知識,歡迎關注億速云行業資訊頻道。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。