03026:error recovery releasing channel resources failure during compilation of command command type :restore non-retryable error occurred during execution of command:IRESTORE unhandled exception during command execution on channel dev1 exception raised in RPC:ORA-19573:cannot obtain exclusive enqueue for datafile 2 ORA-19583 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIECE
rman>restore database;
rman>recover database;
這個是還原到哪個數據庫,而且也沒指定還原的路徑啊?
我不明白?
failure during compilation of command
command type :restore
non-retryable error occurred during execution of command:IRESTORE
unhandled exception during command execution on channel dev1
exception raised in RPC:ORA-19573:cannot obtain exclusive enqueue for datafile 2
ORA-19583 occurred during call to DBMS_BACKUP_RESTORE.RESTOREBACKUPPIECE
http://www.askguoyu.com/db/index.htm
就是你启动rman时的目标数据库。如下列的your_db_name,
因为rman备份是被记录在你所备份的数据库的当前控制文件
里,所以不是你备份了A数据库,就可以恢复B数据库,不知是否明白。假如你上面的备份的是A数据库,则可以用下面的脚本进行恢复:
c:\>rman
rman>connect target sys@A
rman>run {
allocate channel d1 type disk;
allocate channdl d2 type disk;
restore database;
recover database;
release channdl d1;
release channdl d2;
}
上面的脚本中可以只分配一个通道。但执行两个操作,
分配两个通道可以提高速度。