RMAN-06100: no channel to restore a backup or copy of datafile 681

一:版本信息

操作系统版本 AIX 6109

数据库版本  11.2.0.3(PSU11)


二:错误描述

    一次恢复演练中,在restore数据文件的时候报如下错误:

released channel: ch00
released channel: ch01
released channel: ch02
released channel: ch03
released channel: ch04
released channel: ch05
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/27/2015 10:50:35
RMAN-06026: some targets not found - aborting restore
RMAN-06100: no channel to restore a backup or copy of datafile 682
RMAN-06100: no channel to restore a backup or copy of datafile 681
  恢复脚本如下:

run {
sql 'alter session set nls_date_format="yyyy-mm-dd hh24:mi:ss"';
set until time '2015-04-8 03:53:22';
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE' parms='ENV=(NB_ORA_SERV=*****,NB_ORA_CLIENT=*****)';
ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE' parms='ENV=(NB_ORA_SERV=*****,NB_ORA_CLIENT=*****)';
ALLOCATE CHANNEL ch02 TYPE 'SBT_TAPE' parms='ENV=(NB_ORA_SERV=*****,NB_ORA_CLIENT=*****)';
ALLOCATE CHANNEL ch03 TYPE 'SBT_TAPE' parms='ENV=(NB_ORA_SERV=*****,NB_ORA_CLIENT=*****)';
ALLOCATE CHANNEL ch04 TYPE 'SBT_TAPE' parms='ENV=(NB_ORA_SERV=*****,NB_ORA_CLIENT=*****)';
ALLOCATE CHANNEL ch05 TYPE 'SBT_TAPE' parms='ENV=(NB_ORA_SERV=*****,NB_ORA_CLIENT=*****)';
restore tablespace SYSTEM,SYSAUX,UNDOTBS2,UNDOTBS1,USERS;
release channel ch00;
release channel ch01;
release channel ch02;
release channel ch03;
release channel ch04;
release channel ch05;
}

三 :问题原因

  后来发现是因为我用的是新的控制文件,上次全备过后数据库添加过数据文件(681,682),在restore时,oracle根据控制文件中记录的数据文件信息来还原相应数据文件。最新的控制文件中记录有681,和682两个数据文件,但是备份集中却没有,所以restore时报错。


四:解决方案

  重新restore一个离全备时间比较近的控制文件(比数据文件备份集旧的控制文件也可以),然后mount数据库再次进行restore操作


##相关信息

RMAN RESTORE fails with RMAN-06023 or ORA-19505 or RMAN-06100 inspite of proper backups (Doc ID 457769.1)



你可能感兴趣的:(TO,channel,No,RMAN-06026,RMAN-06100,restor)