溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

rman備份時如何指定備份到兩個目錄下

發(fā)布時間:2021-11-08 09:27:55 來源:億速云 閱讀:305 作者:柒染 欄目:建站服務器

這期內(nèi)容當中小編將會給大家?guī)碛嘘P(guān)rman備份時如何指定備份到兩個目錄下,文章內(nèi)容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。

itpub上看的一個問題

1rman備份時應該可以指定備份到兩個目錄下吧?這樣就不用手動去拷貝了.那要如何實現(xiàn)?

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備份時如何指定備份到兩個目錄下了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關(guān)知識,歡迎關(guān)注億速云行業(yè)資訊頻道。

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI