您当前的位置: 首页 >  ar

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

发布时间:2019-09-03 10:17:34 ,浏览量:0

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/,如需转载,请注明出处,否则将追究法律责任。

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    108697博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.1883s