run{
2> ALLOCATE CHANNEL ch1 DEVICE TYPE disk ;
3> ALLOCATE CHANNEL ch2 DEVICE TYPE disk ;
4> ALLOCATE CHANNEL ch3 DEVICE TYPE disk ;
5> ALLOCATE CHANNEL ch4 DEVICE TYPE disk ;
6> restore database ;
7> recover database;
8> } allocated channel: ch1
channel ch1: sid=150 devtype=DISKallocated channel: ch2
channel ch2: sid=149 devtype=DISKallocated channel: ch3
channel ch3: sid=148 devtype=DISKallocated channel: ch4
channel ch4: sid=147 devtype=DISKStarting restore at 18-AUG-09creating datafile fno=1 name=/dev/rlvods_system1
released channel: ch1
released channel: ch2
released channel: ch3
released channel: ch4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/18/2009 09:58:36
ORA-01180: can not create datafile 1
ORA-01110: data file 1: '/dev/rlvods_system1'
2> ALLOCATE CHANNEL ch1 DEVICE TYPE disk ;
3> ALLOCATE CHANNEL ch2 DEVICE TYPE disk ;
4> ALLOCATE CHANNEL ch3 DEVICE TYPE disk ;
5> ALLOCATE CHANNEL ch4 DEVICE TYPE disk ;
6> restore database ;
7> recover database;
8> } allocated channel: ch1
channel ch1: sid=150 devtype=DISKallocated channel: ch2
channel ch2: sid=149 devtype=DISKallocated channel: ch3
channel ch3: sid=148 devtype=DISKallocated channel: ch4
channel ch4: sid=147 devtype=DISKStarting restore at 18-AUG-09creating datafile fno=1 name=/dev/rlvods_system1
released channel: ch1
released channel: ch2
released channel: ch3
released channel: ch4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 08/18/2009 09:58:36
ORA-01180: can not create datafile 1
ORA-01110: data file 1: '/dev/rlvods_system1'
还有通道用完记得释放..
allocate channel cha1 type disk;
release channel cha1;