重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1947|回复: 0
打印 上一主题 下一主题

[Oracle] RMAN-06820 备库rman备份异常处理

[复制链接]
跳转到指定楼层
楼主
发表于 2022-1-26 16:56:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
主备数据库版本:11.2.0.4
备份操作放在standby端进行操作,不仅可以节省主库磁盘资源,还能转移备份需要的性能消耗.
在一次测试库模拟备库执行rman备份时,出现RMAN-06820异常,如下:
[oracle@OEL792 ~]$ rman target /

Recovery Manager: Release 11.2.0.4.0 - Production on Sun Jan 23 00:04:36 2022

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ORCL150 (DBID=4034131047)

RMAN> backup database plus archivelog delete input;


Starting backup at 23-JAN-22
using target database control file instead of recovery catalog
RMAN-06820: WARNING: failed to archive current log at primary database
ORACLE error from target database:
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-00942: table or view does not exist

allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=13 device type=DISK
channel ORA_DISK_1: starting archived log backup set

.....(省略若干)

根据错误提示,查询MOS发现对应的bug信息,当oracle尝试访问主库过程时,需要将全部的standby log获取到,当连接失败时就会发生报错。
从官方文档(ID:1616074.1)了解到,此为11.2.0.4版本的一个bug 8740124,应该使用用户名加密码的方式连接,如:$ rman target sys/password@连接字符串

如下解决步骤:
[oracle@OEL792 ~]$ rman target sys/password@orcl151

Recovery Manager: Release 11.2.0.4.0 - Production on Sat Jan 22 21:27:42 2022

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ORCL150 (DBID=4034131047)

RMAN> backup database plus archivelog delete input;


Starting backup at 22-JAN-22
using target database control file instead of recovery catalog
RMAN-06820: WARNING: failed to archive current log at primary database
ORACLE error from target database:
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-12543: TNS:destination host unreachable
ORA-17629: Cannot connect to the remote database server

allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=12 device type=DISK
....(省略若干)

问题依然存在,造成这个问题的原因经确认为主库端防火墙未关.
关闭主库防火墙后,再次连接rman做备份操作,此后无问题发生。

[oracle@OEL792 ~]$ rman target sys/password@orcl151

Recovery Manager: Release 11.2.0.4.0 - Production on Sun Jan 23 00:02:54 2022

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ORCL150 (DBID=4034131047)

RMAN> backup database plus archivelog delete input;


Starting backup at 23-JAN-22
using target database control file instead of recovery catalog
current log archived at primary database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=13 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=132 RECID=185 STAMP=1094681022

.....(省略若干)

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-26 06:32 , Processed in 0.119847 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表