在配置了brokger的dg环境下,一定要用broker 去调整相关参数,切记。
1、查看DG状态,发现有告警
DGMGRL> show database orcldg;
Database - orcldg
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: 7.00 KByte/s
Real Time Query: OFF
Instance(s):
orcldg
Warning: ORA-16714: the value of property ArchiveLagTarget is inconsistent with the database setting
Database Status:
WARNING
2、查看不一致参数,broker里的值为0,参数文件里为60
DGMGRL> show database orcldg inconsistentProperties;
INCONSISTENT PROPERTIES
INSTANCE_NAME PROPERTY_NAME MEMORY_VALUE SPFILE_VALUE BROKER_VALUE
orcldg ArchiveLagTarget 60 60 0
3、确认参数文件里的参数
SQL> show parameter archive_lag
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
archive_lag_target integer 60
SQL>
4、使用broker修改参数
DGMGRL> edit database orcldg SET PROPERTY ArchiveLagTarget=0;
Property "archivelagtarget" updated
DGMGRL>
5、查看DG状态,告警无
DGMGRL> show database orcldg;
Database - orcldg
Role: PHYSICAL STANDBY
Intended State: APPLY-ON
Transport Lag: 0 seconds (computed 1 second ago)
Apply Lag: 0 seconds (computed 1 second ago)
Average Apply Rate: 6.00 KByte/s
Real Time Query: OFF
Instance(s):
orcldg
Database Status:
SUCCESS
DGMGRL>
本文转自 roidba 51CTO博客,原文链接:http://blog.51cto.com/roidba/2071764,如需转载请自行联系原作者