| 脚本如下:
 run
 {
 allocate channel t1 type 'sbt_tape'
 parms 'ENV=(NSR_SERVER=BAKSERVER,NSR_DATA_VOLUME_POOL=Default,NSR_CLIENT=crmserver)';
 backup full database filesperset 1 format 'full_%d_%u';
 CONFIGURE retention policy to recovery window of 7 days;
 #release channel t1;
 configure controlfile autobackup on;
 CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/data2/oradata/ctlbak/%F';
 allocate channel d1 device type disk format '/data1/backup/oradata/%U';
 backup database skip inaccessible filesperset 10 plus archivelog filesperset 20 delete all input;
 #release channel d1;
 #allocate channel a1 for mainaintnance device type disk;
 crosscheck backupset;
 delete noprompt obsolete;
 #release channel a1;
 release channel d1;
 release channel t1;
 }
 跑到差不多最后他提示我
 channel t1: deleting archive log(s)
 archive log filename=/sandata/archive/1_613.dbf recid=621 stamp=732124600
 Finished backup at 11-OCT-10
 Starting Control File and SPFILE Autobackup at 11-OCT-10
 piece handle=c-1909588747-20101011-0a comment=API Version 2.0,MMS Version 4.2.0.0
 Finished Control File and SPFILE Autobackup at 11-OCT-10
 released channel: t1
 released channel: d1
 RMAN-00571: ===========================================================
 RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
 RMAN-00571: ===========================================================
 RMAN-03002: failure of crosscheck command at 10/11/2010 15:56:48
 RMAN-06091: no channel allocated for maintenance (of an appropriate type)
 请各位帮忙看看~!谢谢~!
 
 |