Ora-16826:apply Service state is inconsistent

Source: Internet
Author: User


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 was 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 seconds
  Real time Query:off
  Instance (s):
    dgorcl11 (apply in Stance)
    dgorcl12

   database Warning (s):
    ora-16826:apply Service state was inconsistent with the Delaymins property <<<<& Lt;<<<<

Database Status:
warning<<<<<<<< <<<<

 

Solution

Workaround:

Check on which node MRP process is running.

On Standby

Make sure Standby redo logs files is created on Standby.

Please reference Interaction 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 are started manually which should not being done at all if there are an active Data Guard Broker Configuration.

Typically the Data Guard Broker should start Managed Recovery.

2. It can also happen if there is no Standby Redo Logs in place or they is incorrect configured-reference Usage, Benefits and limitations of Standby Redo Logs (SRL) Doc ID 219344.1


Ora-16826:apply Service state is inconsistent

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.