ORA-16826: apply service state is inconsistent


APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
information in this document applies to any platform.

GOAL

Data Guard broker Configuration

DGMGRL> show configuration verbose;

Configuration - orcl1_site

Protection Mode: MaxPerformance
Databases:
orcl1 - Primary database
dgorcl1 - Physical standby database
Warning: ORA-16826: apply service state is inconsistent with the DelayMins property <<<<<<<<<<<<<<<

Properties:
FastStartFailoverThreshold = '30'
OperationTimeout = '30'
FastStartFailoverLagLimit = '30'
CommunicationTimeout = '180'
FastStartFailoverAutoReinstate = 'TRUE'
FastStartFailoverPmyShutdown = 'TRUE'
BystandersFollowRoleChange = 'ALL'

Fast-Start Failover: disABLED

Configuration Status:
WARNING

DGMGRL> SHOW DATABASE dgorcl1

Database - dgorcl1

Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: 0 seconds
Apply Lag: 2 minutes 33 seconds
Real Time Query: OFF
Instance(s):
dgorcl11 (apply instance)
dgorcl12

Database Warning(s):
ORA-16826: apply service state is inconsistent with the DelayMins property<<<<<<<<<

Database Status:
WARNING<<<<<<<<<<<<


SOLUTION

Workaround :

Check on which node MRP process is running.

On Standby

Make sure Standby redo logs files are created on standby.

Please referenceInteraction Between the Data Guard Broker and a Data Guard Configuration Doc ID 249703.1

DGMGRL> edit database <standby database> set state=apply-off;
DGMGRL> edit database<standby database> set state=apply-on;

or

sql>alter database recover managed standby database cancel;
sql> alter database recover managed standby database using current logfile disconnect;

Verify broker Configuration

DGMGRL> show configuration

Configuration - orcl1_site

Protection Mode: MaxPerformance
Databases:
orcl1 - Primary database
dgorcl1 - Physical standby database

Fast-Start Failover: disABLED

Configuration Status:
SUCCESS <<<<<<<<<<<<<<<<<<

DGMGRL> show database dgorcl1

Database - dgorcl1

Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: 0 seconds
Apply Lag: 0 seconds
Real Time Query: OFF
Instance(s):
dgorcl11 (apply instance)
dgorcl12

Database Status:
SUCCESS <<<<<<<<<<<<<<<<<<<<<<

How to avoid this issue


1. This Problem occurs if Managed Recovery is started manually which should not be done at all if there is an active Data Guard broker Configuration.

Typically the Data Guard broker should start Managed Recovery .

2. It can also happen if there are no Standby Redo Logs in Place or they are incorrect configured - referenceUsage,Benefits and Limitations of Standby Redo Logs (SRL) Doc ID 219344.1

相关文章

Java Oracle 结果集是Java语言中处理数据库查询结果的一种方...
Java AES和Oracle AES是现代加密技术中最常使用的两种AES加密...
Java是一种广泛应用的编程语言,具备可靠性、安全性、跨平台...
随着移动互联网的发展,抽奖活动成为了营销活动中不可或缺的...
Java和Oracle都是在计算机领域应用非常广泛的技术,他们经常...
Java 是一门非常流行的编程语言,它可以运行于各种操作系统上...