rman 为何不能备份到多个位置?

[复制链接]
查看11 | 回复3 | 2010-3-1 11:20:05 | 显示全部楼层 |阅读模式
脚本如下:
———————————————————————————————————————————————————————connect target sys/sys@orclzl;
run{
allocate channel c2 type disk;
backup format '+recovery/orclzl/dbbak/arch.%d.$LEVEL.%t.%U','/export/home/oracle/dbarc/arch.%d.$LEVEL.%t.%U' archivelog
all delete input;
release channel c2;
}
run{
allocate channel c1 type disk;
crosscheck backupset of database;
backup as compressed backupset incremental level $LEVEL format '+recovery/orclzl/dbbak/db.%d.$LEVEL.%t.%U','/export/home/oracle/dbarc/db.%d.$LEVEL.%t.%U'database;
delete noprompt expired backupset of database ;
delete noprompt obsolete ;
release channel c1;
}
———————————————————————————————————————————————————————
执行日志也正常“———————————————————————————————————————————————————————
using target database control file instead of recovery catalog
allocated channel: c2
channel c2: sid=113 instance=orclzl1 devtype=DISK
Starting backup at 31-OCT-08
current log archived
channel c2: starting archive log backupset
channel c2: specifying archive log(s) in backup set
input archive log thread=1 sequence=1248 recid=2447 stamp=669572139
input archive log thread=2 sequence=1208 recid=2446 stamp=669572139
channel c2: starting piece 1 at 31-OCT-08
channel c2: finished piece 1 at 31-OCT-08
piece handle=+RECOVERY/orclzl/dbbak/arch.orclzl.0.669572140.cljuhn1c_1_1 tag=TAG20081031T161539 comment=NONE
channel c2: backup set complete, elapsed time: 00:00:02
channel c2: deleting archive log(s)
archive log filename=+RECOVERY/orclzl/archivelog/2008_10_31/thread_1_seq_1248.332.669572139 recid=2447 stamp=669572139
archive log filename=+RECOVERY/orclzl/archivelog/2008_10_31/thread_2_seq_1208.268.669572137 recid=2446 stamp=669572139
Finished backup at 31-OCT-08
Starting Control File and SPFILE Autobackup at 31-OCT-08
piece handle=+RECOVERY/orclzl/autobackup/2008_10_31/s_669572142.268.669572145 comment=NONE
Finished Control File and SPFILE Autobackup at 31-OCT-08
released channel: c2
RMAN> 2> 3> 4> 5> 6> 7> 8>
allocated channel: c1
channel c1: sid=113 instance=orclzl1 devtype=DISK

Starting backup at 31-OCT-08
channel c1: starting compressed incremental level 0 datafile backupset
channel c1: specifying datafile(s) in backupset
input datafile fno=00003 name=+DATA/orclzl/datafile/sysaux.288.668354759
input datafile fno=00001 name=+DATA/orclzl/datafile/system.266.669401139
input datafile fno=00002 name=+DATA/orclzl/datafile/undotbs1.265.669401141
input datafile fno=00004 name=+DATA/orclzl/datafile/undotbs2.271.668354769
input datafile fno=00006 name=+DATA/orclzl/datafile/zl1tab.259.668948687
input datafile fno=00007 name=+DATA/orclzl/datafile/zl2tab.257.668948721
input datafile fno=00008 name=+DATA/orclzl/datafile/zl3tab.256.668948741
input datafile fno=00009 name=+DATA/orclzl/datafile/zl4tab.287.669401141
input datafile fno=00005 name=+DATA/orclzl/datafile/users.270.668354773
channel c1: starting piece 1 at 31-OCT-08
channel c1: finished piece 1 at 31-OCT-08
piece handle=+RECOVERY/orclzl/dbbak/db.orclzl.0.669572163.cnjuhn23_1_1 tag=TAG20081031T161602 comment=NONE
channel c1: backup set complete, elapsed time: 00:01:15
Finished backup at 31-OCT-08
Starting Control File and SPFILE Autobackup at 31-OCT-08
piece handle=+RECOVERY/orclzl/autobackup/2008_10_31/s_669572239.267.669572241 comment=NONE
Finished Control File and SPFILE Autobackup at 31-OCT-08

RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 4
no obsolete backups found
released channel: c1
RMAN>
Recovery Manager complete.

——————————————————————————————————————————
执行后只能备份到'+recovery/orclzl/dbbak/arch.%d.$LEVEL.%t.%U'中,
不能备份到 '/export/home/oracle/dbarc/arch.%d.$LEVEL.%t.%U'这是为何呀?
回复

使用道具 举报

千问 | 2010-3-1 11:20:05 | 显示全部楼层
backup copies 2 as compressed backupset incremental level $LEVEL format '+recovery/orclzl/dbbak/db.%d.$LEVEL.%t.%U','/export/home/oracle/dbarc/db.%d.$LEVEL.%t.%U'database;
回复

使用道具 举报

千问 | 2010-3-1 11:20:05 | 显示全部楼层
thank you
回复

使用道具 举报

千问 | 2010-3-1 11:20:05 | 显示全部楼层
copies 2
指定备份copy个数。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行