防火墙配置不当导致ADG只读打开耗时较常且失败

2022/6/30 6:19:39

本文主要是介绍防火墙配置不当导致ADG只读打开耗时较常且失败,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

防火墙配置不当导致ADG只读打开耗时较常且失败

目录
  • 防火墙配置不当导致ADG只读打开耗时较常且失败
    • 背景
    • 原因
    • 解决方案

背景

Oracle数据库的主从两个实验库,长时间未同步,且两个服务器节点均重启。

在从库以只读方式打开时,耗时较常,最后报错,打开失败

SQL> alter database open read only;
alter database open read only
*
ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01196: file 1 is inconsistent due to a failed media recovery session
ORA-01110: data file 1: '/oradata/SYK/system01.dbf'

从库日志一直停留在

Wed Jan 06 16:05:30 2021
alter database open read only
Beginning standby crash recovery.
Serial Media Recovery started
Managed Standby Recovery starting Real Time Apply
Media Recovery Log /oraarch/1_64_1057859074.dbf
Media Recovery of Online Log [Thread=1, Seq=65]
Recovery of Online Redo Log: Thread 1 Group 12 Seq 65 Reading mem 0
  Mem# 0: /oradata/stby_redo12.log

主库日志重复

Fatal NI connect error 12543, connecting to:
 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.18.5.48)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=AMY)(CID=(PROGRAM=oracle)(HOST=dbaas-dev073-10.18.5.47)(USER=oracle))))

  VERSION INFORMATION:
        TNS for Linux: Version 11.2.0.3.0 - Production
        TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.3.0 - Production
  Time: 06-JAN-2021 16:05:29
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12543
    
TNS-12543: TNS:destination host unreachable
    ns secondary err code: 12560
    nt main err code: 513
    
TNS-00513: Destination host unreachable
    nt secondary err code: 113
    nt OS err code: 0
Error 12543 received logging on to the standby
PING[ARC2]: Heartbeat failed to connect to standby 'amy'. Error is 12543.

原因

两台机器的防火墙未配置正确,重启后防火墙自动启动,连接被拒绝。

解决方案

  1. 重新配置防火墙
  2. 关闭防火墙


这篇关于防火墙配置不当导致ADG只读打开耗时较常且失败的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程