Warning: ORA-16792: configurable property value is inconsistent with member sett

lhrbest發表於2019-09-03

Warning: ORA-16792: configurable property value is inconsistent with member setting


現象:

DGMGRL> show configuration
Configuration - lhr122
  Protection Mode: MaxPerformance
  Members:
  lhr122   - Primary database
    lhr122dg - Physical standby database 
      Warning: ORA-16792: configurable property value is inconsistent with member setting
Fast-Start Failover: DISABLED
Configuration Status:
WARNING   (status updated 5 seconds ago)
DGMGRL>  show database lhr122dg InconsistentProperties
INCONSISTENT PROPERTIES
   INSTANCE_NAME        PROPERTY_NAME         MEMORY_VALUE         SPFILE_VALUE         BROKER_VALUE 
        lhr122dg     ArchiveLagTarget                    0                                         0 
        lhr122dg LogArchiveMaxProcesses                    4                                         4 
        lhr122dg LogArchiveMinSucceedDest                    1                                         1 
        lhr122dg DataGuardSyncLatency                    0                                         0 
DGMGRL>  show database lhr122 statusreport;
STATUS REPORT
       INSTANCE_NAME   SEVERITY ERROR_TEXT
DGMGRL>  show database lhr122dg statusreport;
STATUS REPORT
       INSTANCE_NAME   SEVERITY ERROR_TEXT
            lhr122dg    WARNING ORA-16714: the value of property ArchiveLagTarget is inconsistent with the member setting
            lhr122dg    WARNING ORA-16714: the value of property LogArchiveMaxProcesses is inconsistent with the member setting
            lhr122dg    WARNING ORA-16714: the value of property LogArchiveMinSucceedDest is inconsistent with the member setting
            lhr122dg    WARNING ORA-16714: the value of property DataGuardSyncLatency is inconsistent with the member setting
DGMGRL> show database verbose lhr122dg;
Database - lhr122dg
  Role:               PHYSICAL STANDBY
  Intended State:     APPLY-ON
  Transport Lag:      0 seconds (computed 0 seconds ago)
  Apply Lag:          0 seconds (computed 0 seconds ago)
  Average Apply Rate: 40.00 KByte/s
  Active Apply Rate:  0 Byte/s
  Maximum Apply Rate: 0 Byte/s
  Real Time Query:    ON
  Instance(s):
    lhr122dg
      Warning: ORA-16714: the value of property ArchiveLagTarget is inconsistent with the member setting
      Warning: ORA-16714: the value of property LogArchiveMaxProcesses is inconsistent with the member setting
      Warning: ORA-16714: the value of property LogArchiveMinSucceedDest is inconsistent with the member setting
      Warning: ORA-16714: the value of property DataGuardSyncLatency is inconsistent with the member setting
  Properties:
    DGConnectIdentifier             = 'lhr122dg'
    ObserverConnectIdentifier       = ''
    LogXptMode                      = 'ASYNC'
    RedoRoutes                      = ''
    DelayMins                       = '0'
    Binding                         = 'OPTIONAL'
    MaxFailure                      = '0'
    MaxConnections                  = '1'
    ReopenSecs                      = '300'
    NetTimeout                      = '30'
    RedoCompression                 = 'DISABLE'
    LogShipping                     = 'ON'
    PreferredApplyInstance          = ''
    ApplyInstanceTimeout            = '0'
    ApplyLagThreshold               = '30'
    TransportLagThreshold           = '30'
    TransportDisconnectedThreshold  = '30'
    ApplyParallel                   = 'AUTO'
    ApplyInstances                  = '0'
    StandbyFileManagement           = 'AUTO'
    ArchiveLagTarget                = '0'
    LogArchiveMaxProcesses          = '4'
    LogArchiveMinSucceedDest        = '1'
    DataGuardSyncLatency            = '0'
    DbFileNameConvert               = '/u04/oradata/lhr122/, /u04/oradata/lhr122dg/'
    LogFileNameConvert              = '/u04/oradata/lhr122/, /u04/oradata/lhr122dg/'
    FastStartFailoverTarget         = ''
    InconsistentProperties          = '(monitor)'
    InconsistentLogXptProps         = '(monitor)'
    SendQEntries                    = '(monitor)'
    LogXptStatus                    = '(monitor)'
    RecvQEntries                    = '(monitor)'
    PreferredObserverHosts          = ''
    StaticConnectIdentifier         = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.59.130)(PORT=1522))(CONNECT_DATA=(SERVICE_NAME=lhr122dg)(INSTANCE_NAME=lhr122dg)(SERVER=DEDICATED)))'
    StandbyArchiveLocation          = '/u04/oradata/lhr122dg/'
    AlternateLocation               = ''
    LogArchiveTrace                 = '0'
    LogArchiveFormat                = '%t_%s_%r.dbf'
    TopWaitEvents                   = '(monitor)'
  Log file locations:
    Alert log               : /u07/app/oracle/diag/rdbms/lhr122dg/lhr122dg/trace/alert_lhr122dg.log
    Data Guard Broker log   : /u07/app/oracle/diag/rdbms/lhr122dg/lhr122dg/trace/drclhr122dg.log
Database Status:
WARNING


解決:

alter system set log_archive_max_processes=4 scope=both sid='*';
alter system set archive_lag_target=0 scope=both sid='*';
alter system set log_archive_min_succeed_dest=1 scope=both sid='*';
alter system set data_guard_sync_latency=0 scope=both sid='*';


再次檢視:

DGMGRL> show configuration
Configuration - lhr122
  Protection Mode: MaxPerformance
  Members:
  lhr122   - Primary database
    lhr122dg - Physical standby database 
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS   (status updated 59 seconds ago)
DGMGRL>


Oracle 12c 配置DGMGRL


DGMGRL
The Data Guard command-line interface (DGMGRL) enables you to manage a Data Guard broker configuration and its various members directly from the command line, or from batch programs or scripts. You can use the Data Guard command-line interface as an alternative to Oracle Enterprise Manager Cloud Control (Cloud Control) for managing a Data Guard configuration.

1)修改dg_broker 為true
檢視已經是true 如果不是的話 執行下面語句
alter system set dg_broker_start=true;
SQL> show parameter dg_broker_start
NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
dg_broker_start 		     boolean	 TRUE
--主庫檢視
SQL> show parameter dg
NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
cell_offloadgroup_name		     string
dg_broker_config_file1		     string	 /u01/app/oracle/product/12.2.0
						 /db_1/dbs/dr1pdbcndba_p.dat
dg_broker_config_file2		     string	 /u01/app/oracle/product/12.2.0
						 /db_1/dbs/dr2pdbcndba_p.dat
dg_broker_start 		     boolean	 TRUE
inmemory_adg_enabled		     boolean	 TRUE
2)dgmgrl 連線到主庫
[oracle@www.cndba.cn ~]$ dgmgrl sys/oracle@cndba
DGMGRL for Linux: Release 12.2.0.1.0 - Production on Wed Aug 16 10:59:16 2017
Copyright (c) 1982, 2017, Oracle and/or its affiliates.  All rights reserved.
Welcome to DGMGRL, type "help" for information.
Connected to "pdbcndba_p"
Connected as SYSDBA.
3)在 主庫建立配置 
DGMGRL> create configuration 'dg_cndba' as primary database is 'pdbcndba_p' connect identifier is 'PDBCNDBA_P';
Configuration "dg_cndba" created with primary database "pdbcndba_p"
create configuration '配置名稱自定義' as primary database is 'db_unique_name' connect identifier is 'tnsname.ora裡連線主庫';
--檢視配置資訊
DGMGRL> SHOW CONFIGURATION 
Configuration - dg_cndba
  Protection Mode: MaxPerformance
  Members:
  pdbcndba_p - Primary database
Fast-Start Failover: DISABLED
Configuration Status:
DISABLED
4)新增備庫到配置資訊:
DGMGRL> add database 'pdbcndba_s' as connect identifier is 'PDBCNDBA_S' maintained as physical;
Error: ORA-16698: member has a LOG_ARCHIVE_DEST_n parameter with SERVICE attribute set
Failed.
[oracle@www.cndba.cn trace]$ oerr ora 16698
16698, 00000, "member has a LOG_ARCHIVE_DEST_n parameter with SERVICE attribute set"
// *Cause:  One or more LOG_ARCHIVE_DEST_n initialization parameters that
//          contain a SERVICE attribute for another member in the 
//          configuration were set on the new member when attempting to add a
//          standby database or far sync instance to the configuration.
// *Action: Clear all LOG_ARCHIVE_DEST_n initialization parameters that 
//          contain a SERVICE attribute for another member in the configuration
//          on the new member to be added.
這個錯誤可以通過在Primary 和 Standby上取消log_archive_dest_n引數來解決,實際這一塊的引數應當是交給DG broker 來管理了,不再需要人為介入設定。
--主備庫執行以下語句,重置引數log_archive_dest_2 
SQL>  alter system set log_archive_dest_2='' scope=both;
System altered.
DGMGRL> add database 'pdbcndba_s' as connect identifier is 'PDBCNDBA_S' maintained as physical;
Database "pdbcndba_s" added
add database 'db_unique_name' as connect identifier is 'tnsname.ora連線備庫' maintained as physical;
--檢視配置資訊:
DGMGRL>  show configuration
Configuration - dg_cndba
  Protection Mode: MaxPerformance
  Members:
  pdbcndba_p - Primary database
    pdbcndba_s - Physical standby database 
Fast-Start Failover: DISABLED
Configuration Status:
DISABLED
DGMGRL> 
DGMGRL>  enable configuration;
Enabled.
DGMGRL> DGMGRL> 
DGMGRL> show configuration
Configuration - dg_cndba
  Protection Mode: MaxPerformance
  Members:
  pdbcndba_p - Primary database
    pdbcndba_s - Physical standby database 
      Error: ORA-16664: unable to receive the result from a member
Fast-Start Failover: DISABLED
Configuration Status:
ERROR   (status updated 14 seconds ago)
DGMGRL> enable database pdbcndba_s
Enabled.
DGMGRL> show configuration
Configuration - dg_cndba
  Protection Mode: MaxPerformance
  Members:
  pdbcndba_p - Primary database
    pdbcndba_s - Physical standby database 
      Warning: ORA-16792: configurable property value is inconsistent with member setting
Fast-Start Failover: DISABLED
Configuration Status:
WARNING   (status updated 8 seconds ago)
DGMGRL> show database pdbcndba_s statusreport;
STATUS REPORT
       INSTANCE_NAME   SEVERITY ERROR_TEXT
               cndba    WARNING ORA-16714: the value of property ArchiveLagTarget is inconsistent with the member setting
               cndba    WARNING ORA-16714: the value of property LogArchiveMaxProcesses is inconsistent with the member setting
               cndba    WARNING ORA-16714: the value of property LogArchiveMinSucceedDest is inconsistent with the member setting
               cndba    WARNING ORA-16714: the value of property DataGuardSyncLatency is inconsistent with the member setting
               cndba    WARNING ORA-16714: the value of property LogArchiveTrace is inconsistent with the member setting
               cndba    WARNING ORA-16675: database instance restart required for property value modification to take effect
               cndba    WARNING ORA-16714: the value of property LogArchiveFormat is inconsistent with the member setting
備庫狀態報告6個屬性值與資料庫設定不一致,重新設定
DGMGRL> edit database pdbcndba_s set property LogArchiveFormat='%t_%s_%r.dbf';
Warning: ORA-16675: database instance restart required for property value modification to take effect
Property "logarchiveformat" updated
DGMGRL> edit database pdbcndba_s set property ArchiveLagTarget=0; 
Property "archivelagtarget" updated
DGMGRL> edit database pdbcndba_s set property LogArchiveMaxProcesses=1;
Property "logarchivemaxprocesses" updated
DGMGRL> edit database pdbcndba_s set property LogArchiveMinSucceedDest=1; 
Property "logarchiveminsucceeddest" updated
DGMGRL> edit database pdbcndba_s set property DataGuardSyncLatency=0;
Property "dataguardsynclatency" updated
DGMGRL> edit database pdbcndba_s set property LogArchiveTrace=0; 
Property "logarchivetrace" updated
DGMGRL> show database pdbcndba_s statusreport;
STATUS REPORT
       INSTANCE_NAME   SEVERITY ERROR_TEXT
DGMGRL> show configuration
Configuration - dg_cndba
  Protection Mode: MaxPerformance
  Members:
  pdbcndba_p - Primary database
    pdbcndba_s - Physical standby database 
Fast-Start Failover: DISABLED
Configuration Status:
SUCCESS   (status updated 49 seconds ago)








About Me

........................................................................................................................

● 本文作者:小麥苗,部分內容整理自網路,若有侵權請聯絡小麥苗刪除

● 本文在itpub、部落格園、CSDN和個人微 信公眾號( xiaomaimiaolhr)上有同步更新

● 本文itpub地址: http://blog.itpub.net/26736162

● 本文部落格園地址: http://www.cnblogs.com/lhrbest

● 本文CSDN地址: https://blog.csdn.net/lihuarongaini

● 本文pdf版、個人簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/

● 資料庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/

● DBA寶典今日頭條號地址: http://www.toutiao.com/c/user/6401772890/#mid=1564638659405826

........................................................................................................................

● QQ群號: 230161599 、618766405

● 微 信群:可加我微 信,我拉大家進群,非誠勿擾

● 聯絡我請加QQ好友 646634621 ,註明新增緣由

● 於 2019-09-01 06:00 ~ 2019-09-31 24:00 在西安完成

● 最新修改時間:2019-09-01 06:00 ~ 2019-09-31 24:00

● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解

● 版權所有,歡迎分享本文,轉載請保留出處

........................................................................................................................

小麥苗的微店https://weidian.com/s/793741433?wfr=c&ifr=shopdetail

小麥苗出版的資料庫類叢書http://blog.itpub.net/26736162/viewspace-2142121/

小麥苗OCP、OCM、高可用網路班http://blog.itpub.net/26736162/viewspace-2148098/

小麥苗騰訊課堂主頁https://lhr.ke.qq.com/

........................................................................................................................

使用 微 信客戶端掃描下面的二維碼來關注小麥苗的微 信公眾號( xiaomaimiaolhr)及QQ群(DBA寶典)、新增小麥苗微 信, 學習最實用的資料庫技術。

........................................................................................................................

歡迎與我聯絡

 

 



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2655797/,如需轉載,請註明出處,否則將追究法律責任。

相關文章