问题:今天备份工程师向我反馈,在将数据库备份从磁盘备份到虚拟带库时,出现如下错误:错误1:RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) dueRMAN-06208: to mismatched status. Use CROSSCHECK command to fix statusRMAN-06210: List of Mismatched objectsRMAN-06211: ==========================RMAN-06212: Object Type Filename/HandleRMAN-06213: --------------- ---------------------------------------------------RMAN-06214: Datafile Copy +DATADG/XX/datafile/system.400.941188195错误2:ORA-19511: Error received from media manager layer, error text:VxBSASendData: Failed with error:分析:2.1 具体描述:0)执行备份到本地磁盘的脚本时,不会出现错误2,但会出现错误1。执行备份到虚拟带库脚本时,错误1和2都出现。1)在执完备份后, 备份脚本会自动执行delete obsolete; 然后在这个命令执行过程中,就出现错误1。2) 在执行备份过程中,会出现错误2,会提示某条备份通道中断了,然后会重新建立通道再继执行。2.2 数据收集0) GOOGLE百度收集一些案例。1) ORACLE官方技术支持库收集一些案例。" Rman duplicate to Alternate server from tape Fails with ORA-19511 (文档 ID 2144340.1)"2.3 分析评估收集的案例是否对现在运行状态构成影晌。经评估,不会。结论:3.1 针对错误1,执行如下命令修正:rman target /crosscheck datafilecopy 'DATADG/XX/datafile/system.400.941188195';delete obsolete;3.2 针对错误oracle给出的解决方案:将send命令后的参数集成在allocate channel中,按如下方式修正代码:ALLOCATE AUXILIARY CHANNEL CH1 TYPE 'SBT_TAPE';SEND 'NSR_ENV=(NSR_SERVER=NetworkerServer.domain.com, NSR_CLIENT=sourceServer.domain.com)';to:ALLOCATE AUXILIARY CHANNEL CH1 TYPE 'SBT_TAPE' PARMS 'ENV=(NSR_SERVER=NetworkerServer.domain.com,NSR_CLIENT=sourceServer.domain.com)';结果:错误1消除,错误2待观察。错误2有oracle提供的方法,无法解决,后经详细查发现,数据库主机无法正确反向解释nbu的主机,导致还原时检查失败,无法正确反向解释nbu的主机的原因是,数据库主机配置了DNS解释,但DNS解释出错,所以转为hosts文件解释即可,在/etc/netsvc.conf添加了以下2行内容hosts=local,nis,bindalias =files,nis附录一:Rman duplicate to Alternate server from tape Fails with ORA-19511 (文档 ID 2144340.1)In this DocumentSymptomsCauseSolutionApplies to:ReferencesAPPLIES TO:Oracle Database - Enterprise Edition - Version 12.1.0.2 and laterInformation in this document applies to any platform.SYMPTOMSRman duplicate being performed to Alternate server using tape backup.Rman backup taken by NSR_Client on Source database.Rman duplicate failed with below errorsRMAN-08016: channel CH1: starting datafile backup set restoreRMAN-08021: channel CH1: restoring control fileRMAN-08003: channel CH1: reading from backup piece c-3200000030-20160716-0RMAN-08615: channel CH1: ORA-19870: error while restoring backup piece c-3200000030-20160716-01ORA-19507: failed to retrieve sequential file, handle="c-3200000030-20160716-0", parms=""ORA-27029: skgfrtrv: sbtrestore returned errorORA-19511: non RMAN, but media manager or vendor specific failure, error text:Could not locate the backup piece 'c-3200000030-20160716-01' on the NetWorker server 'test.abc.com' for the client 'clienta.abc.com'. Notify the backup administator. (2:9:0)Syntax used for DuplicateRUN{ALLOCATE AUXILIARY CHANNEL CH1 TYPE 'SBT_TAPE';SEND 'NSR_ENV=(NSR_SERVER=test.abc.com, NSR_CLIENT=clienta.abc.com)';set until time "to_date(to_char(sysdate-1,'yyyy/mm/dd') || ' 23:45:00','yyyy/mm/dd hh24:mi:ss')";CAUSENSR_CLIENT ---> Name of the NetWorker client resource used to perform the backupNSR_SERVER --->Hostname of the NetWorker backup server used to perform the Oracle backupHere source is the original production database and target is the auxiliary instance.According to Network support, the client (NSR_Client of Source where backup was taken) information which was set in the allocate channel command was being lost for the auxiliary instance when the auxiliary database was stopped/started during duplicate process, and the information of auxiliary server NSR_Client was being used afterwards. As the target database was never backed up to Networker using the NSR_Client of auxiliary server, there were no backups to be found.The information in the SEND command does not persist through a restart of the database. The PARMS keyword appears to cause the client information to persist through the entire duplicate operation.SOLUTIONIn this DocumentThe issue was resolved by Change SEND command to PARMSALLOCATE AUXILIARY CHANNEL CH1 TYPE 'SBT_TAPE';SEND 'NSR_ENV=(NSR_SERVER=NetworkerServer.domain.com, NSR_CLIENT=sourceServer.domain.com)';to:ALLOCATE AUXILIARY CHANNEL CH1 TYPE 'SBT_TAPE' PARMS 'ENV=(NSR_SERVER=NetworkerServer.domain.com,NSR_CLIENT=sourceServer.domain.com)';ReferencesCreated from SR 3-12359927521APPLIES TO:Oracle Database - Enterprise Edition - Version 12.1.0.2 and later1-914CU
2017-06-30 DBA日记,ora-19511及RMAN-06207的诊断和处理
最新推荐文章于 2021-04-16 08:12:13 发布