- 论坛徽章:
- 0
|
connect target sys/password@orcl;
connect rcvcat rman/rman@rman;
run {
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
allocate channel t3 type 'SBT_TAPE';
allocate channel t4 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=ultra45,NSR_DATA_VOLUME_POOL=default)';
backup filesperset 2
format '/full_%d_%U/'
(archivelog until time 'sysdate-2' delete input );
release channel t1;
release channel t2;
release channel t3;
release channel t4;
}
这样写应该可以,不过执行时报错,很奇怪
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 02/01/2008 15:02:03
ORA-19563: header validation failed for file
Recovery Manager complete.
[ 本帖最后由 king3171 于 2008-2-1 15:23 编辑 ] |
|