Warning: ORA-16792: configurable property value is inconsistent with member setting
现象:
DGMGRL> show configurationConfiguration - lhr122Protection Mode: MaxPerformanceMembers:lhr122 - Primary databaselhr122dg - Physical standby database Warning: ORA-16792: configurable property value is inconsistent with member settingFast-Start Failover: DISABLEDConfiguration Status:
WARNING (status updated 5 seconds ago)DGMGRL> show database lhr122dg InconsistentProperties
INCONSISTENT PROPERTIESINSTANCE_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 REPORTINSTANCE_NAME SEVERITY ERROR_TEXTDGMGRL> show database lhr122dg statusreport;
STATUS REPORTINSTANCE_NAME SEVERITY ERROR_TEXTlhr122dg WARNING ORA-16714: the value of property ArchiveLagTarget is inconsistent with the member settinglhr122dg WARNING ORA-16714: the value of property LogArchiveMaxProcesses is inconsistent with the member settinglhr122dg WARNING ORA-16714: the value of property LogArchiveMinSucceedDest is inconsistent with the member settinglhr122dg WARNING ORA-16714: the value of property DataGuardSyncLatency is inconsistent with the member settingDGMGRL> show database verbose lhr122dg;Database - lhr122dgRole: PHYSICAL STANDBYIntended State: APPLY-ONTransport Lag: 0 seconds (computed 0 seconds ago)Apply Lag: 0 seconds (computed 0 seconds ago)Average Apply Rate: 40.00 KByte/sActive Apply Rate: 0 Byte/sMaximum Apply Rate: 0 Byte/sReal Time Query: ONInstance(s):lhr122dgWarning: ORA-16714: the value of property ArchiveLagTarget is inconsistent with the member settingWarning: ORA-16714: the value of property LogArchiveMaxProcesses is inconsistent with the member settingWarning: ORA-16714: the value of property LogArchiveMinSucceedDest is inconsistent with the member settingWarning: ORA-16714: the value of property DataGuardSyncLatency is inconsistent with the member settingProperties: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.logData Guard Broker log : /u07/app/oracle/diag/rdbms/lhr122dg/lhr122dg/trace/drclhr122dg.logDatabase 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 configurationConfiguration - lhr122Protection Mode: MaxPerformanceMembers:lhr122 - Primary databaselhr122dg - Physical standby database Fast-Start Failover: DISABLEDConfiguration 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_cndbaProtection Mode: MaxPerformanceMembers: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_cndbaProtection Mode: MaxPerformanceMembers:pdbcndba_p - Primary databasepdbcndba_s - Physical standby database Fast-Start Failover: DISABLED Configuration Status: DISABLED DGMGRL> DGMGRL> enable configuration; Enabled. DGMGRL> DGMGRL> DGMGRL> show configuration Configuration - dg_cndbaProtection Mode: MaxPerformanceMembers:pdbcndba_p - Primary databasepdbcndba_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_cndbaProtection Mode: MaxPerformanceMembers:pdbcndba_p - Primary databasepdbcndba_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 REPORTINSTANCE_NAME SEVERITY ERROR_TEXTcndba WARNING ORA-16714: the value of property ArchiveLagTarget is inconsistent with the member settingcndba WARNING ORA-16714: the value of property LogArchiveMaxProcesses is inconsistent with the member settingcndba WARNING ORA-16714: the value of property LogArchiveMinSucceedDest is inconsistent with the member settingcndba WARNING ORA-16714: the value of property DataGuardSyncLatency is inconsistent with the member settingcndba WARNING ORA-16714: the value of property LogArchiveTrace is inconsistent with the member settingcndba WARNING ORA-16675: database instance restart required for property value modification to take effectcndba 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 REPORTINSTANCE_NAME SEVERITY ERROR_TEXT DGMGRL> show configuration Configuration - dg_cndbaProtection Mode: MaxPerformanceMembers:pdbcndba_p - Primary databasepdbcndba_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宝典)、添加小麦苗微 信, 学习最实用的数据库技术。 ........................................................................................................................ |
Warning: ORA-16792: configurable property value is inconsistent with member setting相关推荐
- TypeScript超详细入门教程(上)
TypeScript超详细入门教程(上) 01 开篇词:Hello~TypeScript 01 开篇词:Hello~TypeScript 更新时间:2019-10-30 13:49:46 既然我已经踏 ...
- JanusGraph ,生产环境安装
Part 1 Janusgraph 所需组的准备 ######安装ElasticSearch 需要组建包括casandra 和 elasticsearsh 我们需要先在服务器上安装并准备这两个环境.首 ...
- cadence SPB17.4 capture and cis 全部错误消息列表
前言 在整理层次原理图,中间遇到好多编译警告和错误. 刚将封装之外的错误和警告都消掉了. 再想,官方对于错误消息有没有一个汇总和解释呢? 在本地帮助文件中找到了, capture的所有错误消息说明文件 ...
- A comparison of C# vs. java
转发上:http://www.25hoursaday.com/CsharpVsJava.html#friends A COMPARISON OF MICROSOFT'S C# PROGRAMMING ...
- [转]Creating Unit Tests for ASP.NET MVC Applications (C#)
本文转自:http://www.asp.net/mvc/tutorials/older-versions/unit-testing/creating-unit-tests-for-asp-net-mv ...
- 玩转Eclipse — 自动代码规范检查工具Checkstyle
大项目都需要小组中的多人共同完成,但是每个人都有自己的编码习惯,甚至很多都是不正确的.那么如何使小组所有开发人员都遵循某些编码规范,以保证项目代码风格的一致性呢?如果硬性地要求每个开发人员在提交代码之 ...
- Java代码规范、格式化和checkstyle检查配置文档
为便于规范各位开发人员代码.提高代码质量,研发中心需要启动代码评审机制.为了加快代码评审的速度,减少不必要的时间,可以加入一些代码评审的静态检查工具,另外需要为研发中心配置统一的编码模板和代码格式化模 ...
- php一些高级函数方法
PHP高级函数 1.call_user_func (http://php.net/manual/zh/function.call-user-func.php)2.get_class (http://p ...
- 转自: SparkConf 配置的概念和用法
一:概念 Spark应用程序的配置,用于将各种Spark参数设置为键值对. 大多数情况下,将使用新的SparkConf(),创建一个SparkConf对象,该对象将从您的应用程序中设置的任何spark ...
最新文章
- 十问 | 关于Service Mesh 和Kubernets的最前沿思考
- set_origin_pose算子说明
- 2018/12/08 L1-045 宇宙无敌大招呼 java
- Centos 6.3 修改xorg.conf后 启动失败
- 查看MySQL数据库表的命令介绍
- server sql top速度变慢解决方案_SQL Server数据库查询速度慢的原因和解决方法
- 牛客练习赛39 B 选点(dfs序+LIS)
- 软件工程总结--文字篇
- 密码在智能汽车数据安全领域的应用研究报告
- oracle认证071和061,别只为Oracle Database 18c的发布而兴奋了, 看一看你的Oracle认证考试到期了吗?...
- android 播放器音量,Android应用实例之调节播放器音量——AudioManager的应用
- 小白如何快速创建一个属于自己的APP
- java空指针异常 代码案例_java空指针异常:java.lang.NullPointException
- ice java例子,ICE java 范例
- 使用java获取硬盘序列号
- 【180730】WinForm打地鼠小游戏源码
- [iOS]Charles工具
- Python 区间库 interval
- 保姆级教程:硬核图解Transformer
- 推荐一部电影Mark zuckerberg的社交网络创业史
热门文章
- 让机器“删繁就简”:深度神经网络加速与压缩|VALSE2018之六
- 【cocos2d-x 手游研发----博彩大转盘】
- Codeforces上几个非常妙的数据结构题
- android-仿美丽说有滑动效果的导航栏
- 时间格式化方法,输出格式:2019-06-20 11:30:50
- Moment for Mac(菜单栏倒数日软件)
- 使用mpf画出k线图和唐奇安通道线
- MeeGo和Nokia
- bzoj 2424: [HAOI2010]订货(费用流)
- 茶叶具有哪些药用功效呢?