微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐