博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[20150325]关于参数archive_lag_target.txt
阅读量:6231 次
发布时间:2019-06-21

本文共 4520 字,大约阅读时间需要 15 分钟。

[20150325]关于参数archive_lag_target.txt

--今天同事在测试设置参数archive_lag_target遇到一些问题,自己也做一些测试:

DGMGRL>  show database test ArchiveLagTarget

  ArchiveLagTarget = '0'

DGMGRL> edit database test set PROPERTY ArchiveLagTarget=30;

Error: ORA-16790: the value of the configurable property is invalid

Failed.

$ oerr ORA 16790

16790, 0000, "the value of the configurable property is invalid"
// *Cause:  An invalid property value was entered, or a RESET was attempted
//          on a property for which no Broker default value exists.
// *Action: Set the property to a correct value.

--而使用sqlplus设置:

SCOTT@test> alter system set archive_lag_target=30 scope=memory ;
System altered.

SCOTT@test> show parameter ARCHIVE_LAG_TARGET

NAME                TYPE     VALUE

------------------- -------- -------
archive_lag_target  integer  60

--很明显这个参数最小是60.即使你设置30.

$ ll /u01/app/oracle11g/archivelog/

-rw-r-----  1 oracle11g oinstall   781312 2015-03-25 09:51:44 1_2499_798551880.dbf

-rw-r-----  1 oracle11g oinstall    42496 2015-03-25 09:52:39 1_2500_798551880.dbf
-rw-r-----  1 oracle11g oinstall    37888 2015-03-25 09:53:43 1_2501_798551880.dbf
-rw-r-----  1 oracle11g oinstall   147456 2015-03-25 09:54:43 1_2502_798551880.dbf

--另外在dg设置,不生效,也许在切换后生效.

DGMGRL> show configuration  verbose

Configuration - study

  Protection Mode: MaxPerformance

  Databases:
    test   - Primary database
      Warning: ORA-16792: configurable property value is inconsistent with database setting

    testdg - Physical standby database

  Properties:

    FastStartFailoverThreshold      = '30'
    OperationTimeout                = '30'
    FastStartFailoverLagLimit       = '30'
    CommunicationTimeout            = '180'
    FastStartFailoverAutoReinstate  = 'TRUE'
    FastStartFailoverPmyShutdown    = 'TRUE'
    BystandersFollowRoleChange      = 'ALL'

Fast-Start Failover: DISABLED

Configuration Status:

WARNING

$ oerr ORA 16792

16792, 0000, "configurable property value is inconsistent with database setting"
// *Cause:  The values of one or more configurable properties were
//          inconsistent with database in-memory settings or server parameter
//          file settings. This may happen by directly altering initialization
//          parameters instead of editing configurable property values using
//          Data Guard broker.
// *Action: Query the InconsistentProperties property on the database or check
//          the Data Guard broker log to find which properties are set
//          inconsistently. Reset these properties to make them consistent
//          with the database settings. Alternatively, enable the database
//          or the entire configuration to allow the configurable property
//          settings to be propagated to the initialization parameters.

--这样修改导致与dg配置不一致.我感兴趣的是如何确定那个参数不一致.看了一下帮助,很简单:

DGMGRL> show database   test InconsistentProperties;

INCONSISTENT PROPERTIES
   INSTANCE_NAME        PROPERTY_NAME         MEMORY_VALUE         SPFILE_VALUE         BROKER_VALUE
            test     ArchiveLagTarget                   60                    0                    0

--也许是我修改到内存与spfile文件不一致.

DGMGRL> edit database test set PROPERTY ArchiveLagTarget=60;

Property "archivelagtarget" updated
DGMGRL> show database verbose   test;

Database - test

  Role:            PRIMARY

  Intended State:  TRANSPORT-ON
  Instance(s):
    test

  Properties:

    DGConnectIdentifier             = 'test'
    ObserverConnectIdentifier       = ''
    LogXptMode                      = 'ASYNC'
    DelayMins                       = '0'
    Binding                         = 'optional'
    MaxFailure                      = '0'
    MaxConnections                  = '1'
    ReopenSecs                      = '300'
    NetTimeout                      = '30'
    RedoCompression                 = 'DISABLE'
    LogShipping                     = 'ON'
    PreferredApplyInstance          = ''
    ApplyInstanceTimeout            = '0'
    ApplyParallel                   = 'AUTO'
    StandbyFileManagement           = 'auto'
    ArchiveLagTarget                = '60'
    LogArchiveMaxProcesses          = '4'
    LogArchiveMinSucceedDest        = '1'
    DbFileNameConvert               = '/u01/app/oracle11g/oradata/test, /u01/app/oracle11g/oradata/test'
    LogFileNameConvert              = '/u01/app/oracle11g/oradata/test, /u01/app/oracle11g/oradata/test'
    FastStartFailoverTarget         = ''
    InconsistentProperties          = '(monitor)'
    InconsistentLogXptProps         = '(monitor)'
    SendQEntries                    = '(monitor)'
    LogXptStatus                    = '(monitor)'
    RecvQEntries                    = '(monitor)'
    SidName                         = 'test'
    StaticConnectIdentifier         = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hisdg)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=test_DGMGRL.com)(INSTANCE_NAME=test)(SERVER=DEDICATED)))'
    StandbyArchiveLocation          = '/u01/app/oracle11g/archivelog'
    AlternateLocation               = ''
    LogArchiveTrace                 = '0'
    LogArchiveFormat                = '%t_%s_%r.dbf'
    TopWaitEvents                   = '(monitor)'

Database Status:

SUCCESS

--收尾还原:
DGMGRL> edit database test set PROPERTY ArchiveLagTarget=0;
Property "archivelagtarget" updated
DGMGRL> edit database testdg set PROPERTY ArchiveLagTarget=0;
Property "archivelagtarget" updated

DGMGRL> show database verbose  testdg ArchiveLagTarget;

  ArchiveLagTarget = '0'
DGMGRL> show database verbose  test ArchiveLagTarget;
  ArchiveLagTarget = '0'

转载地址:http://duana.baihongyu.com/

你可能感兴趣的文章
go php 组合,Go语言组合和方法集
查看>>
matlab求图像峰度与斜度,python中的图像偏斜和峰度
查看>>
php 身份认证 claim,安全性 – 使用PHP对/ etc / shadow对用户进行身份验证的最安全方法?...
查看>>
oracle中sql中文乱码,oracle中文字符乱码终极解决
查看>>
oracle存储过程俩表查询,oracle存储过程查询多表的有关问题
查看>>
oracle中zh_concat的用法,Oracle内部函数 wmsys.wm_concat 替换办法及思考
查看>>
oracle10 冷恢复到11g,oracle 11g数据库冷备与恢复
查看>>
oracle solaris cluster 4,甲骨文推出Oracle Solaris Cluster 4.0
查看>>
oracle java web console,对 Oracle Java Web Console 软件进行故障排除
查看>>
oracle 11g 冗余,Oracle 11gR2 – 当2个故障组中的1个发生故障时,如何从正常冗余中恢复...
查看>>
php webservice 证书,PHP WebService客户端验证
查看>>
linux杀掉cpu使用率高的进程,linux – 在X时间后杀死CPU占用率高的进程?
查看>>
linux驱动被哪些进程使用,linux中驱动异步通知应用程序的方法
查看>>
linux浏览器联网输不了密码,Ubuntu下使用chrome浏览器每次打开都需要输入密码的解决...
查看>>
linux .最新 内核,求问Linux最新内核版本以及发布日期。
查看>>
linux 物理内存统计,Linux物理内存使用量的查询方法
查看>>
linux脚本开发流程,编写Linux Shell程序
查看>>
linux内核网络处理能力,Linux(debian)的网络内核参数优化来提高服务器并发处理能力...
查看>>
linux添加新设备失败,安装linux 出现错误-未找到要在其中创建新文件系统的有效设备...
查看>>
Linux没有桌面怎么装微信,linux安装微信
查看>>