解决oralce 11g dg搭建报错:ORA-16664、ORA-16714、ORA-16810问题--转

下面不是小编错误报告只是转了网络一篇,同时也解决了我的问题所以复制过来给各位参考。

最近在弄11g的dg时,遇到如下问题,记录下。
首先在主上查看报如下错误:

DGMGRL> show configuration;

Configuration - queue_zs_dg

Protection Mode: MaxPerformance
  Databases:
    queuedb   - Primary database
    queuedb02 - Physical standby database
      Error: ORA-16664: unable to receive the result from a database

Fast-Start Failover: DISABLED

Configuration Status:
ERROR

DGMGRL> show database verbose queuedb02;

Database - queuedb02

Role:            PHYSICAL STANDBY
  Intended State:  APPLY-ON
  Transport Lag:   (unknown)
  Apply Lag:       (unknown)
  Apply Rate:      (unknown)
  Real Time Query: OFF
  Instance(s):
    Queuedb

Properties:
    DGConnectIdentifier             = ‘queuedb_zs02‘
    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                = ‘0‘
    LogArchiveMaxProcesses          = ‘4‘
    LogArchiveMinSucceedDest        = ‘1‘
    DbFileNameConvert               = ‘‘
    LogFileNameConvert              = ‘‘
    FastStartFailoverTarget         = ‘‘
    InconsistentProperties          = ‘(monitor)‘
    InconsistentLogXptProps         = ‘(monitor)‘
    SendQEntries                    = ‘(monitor)‘
    LogXptStatus                    = ‘(monitor)‘
    RecvQEntries                    = ‘(monitor)‘
    ApplyLagThreshold               = ‘0‘
    TransportLagThreshold           = ‘0‘
    TransportDisconnectedThreshold  = ‘30‘
    SidName                         = ‘Queuedb‘
    StaticConnectIdentifier         = ‘(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Queuedb_ZS02.cyou.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=QUEUEDB02_DGMGRL)(INSTANCE_NAME=Queuedb)(SERVER=DEDICATED)))‘
    StandbyArchiveLocation          = ‘USE_DB_RECOVERY_FILE_DEST‘
    AlternateLocation               = ‘‘
    LogArchiveTrace                 = ‘0‘
    LogArchiveFormat                = ‘%t_%s_%r.dbf‘
    TopWaitEvents                   = ‘(monitor)‘

Database Status:
DGM-17016: failed to retrieve status for database "queuedb02"
ORA-16664: unable to receive the result from a database

alert日志狂刷:

Fatal NI connect error 12514, connecting to:
 (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=Queuedb_ZS.cyou.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=queuedb_DGB)(SERVER=DEDICATED)(CID=(PROGRAM=oracle)(HOST=Queuedb_ZS02.cyou.com)(USER=oracle))))

VERSION INFORMATION:
        TNS for Linux: Version 11.2.0.4.0 - Production
        TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production
  Time: 02-MAR-2015 18:27:06
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12564
    
TNS-12564: TNS:connection refused
    ns secondary err code: 0
    nt main err code: 0
    nt secondary err code: 0
    nt OS err code: 0

tnsping 都是通的,为什么会报这个错呢?
到standby中查看database信息后,报如下错,primary和standby的报错信息是不一样的。

DGMGRL> show configuration;
 
Configuration - queue_zs_dg
 
  Protection Mode: MaxPerformance
  Databases:
    queuedb   - Primary database
    queuedb02 - Physical standby database
      Error: ORA-16810: multiple errors or warnings detected for the database
 
Fast-Start Failover: DISABLED
 
Configuration Status:
ERROR
 
DGMGRL> show database verbose queuedb02;   
 
Database - queuedb02
 
  Role:            PHYSICAL STANDBY
  Intended State:  APPLY-ON
  Transport Lag:   0 seconds (computed 0 seconds ago)
  Apply Lag:       (unknown)
  Apply Rate:      (unknown)
  Real Time Query: OFF
  Instance(s):
    Queuedb
      Warning: ORA-16714: the value of property ArchiveLagTarget is inconsistent with the database setting
      Warning: ORA-16714: the value of property LogArchiveMaxProcesses is inconsistent with the database setting
      Warning: ORA-16714: the value of property LogArchiveMinSucceedDest is inconsistent with the database setting
      Warning: ORA-16714: the value of property LogArchiveTrace is inconsistent with the database setting
      Warning: ORA-16714: the value of property LogArchiveFormat is inconsistent with the database setting
 
  Database Error(s):
    ORA-16766: Redo Apply is stopped
 
  Properties:
    DGConnectIdentifier             = ‘queuedb_zs02‘
    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                = ‘0‘
    LogArchiveMaxProcesses          = ‘4‘
    LogArchiveMinSucceedDest        = ‘1‘
    DbFileNameConvert               = ‘‘
    LogFileNameConvert              = ‘‘
    FastStartFailoverTarget         = ‘‘
    InconsistentProperties          = ‘(monitor)‘
    InconsistentLogXptProps         = ‘(monitor)‘
    SendQEntries                    = ‘(monitor)‘
    LogXptStatus                    = ‘(monitor)‘
    RecvQEntries                    = ‘(monitor)‘
    ApplyLagThreshold               = ‘0‘
    TransportLagThreshold           = ‘0‘
    TransportDisconnectedThreshold  = ‘30‘
    SidName                         = ‘Queuedb‘
    StaticConnectIdentifier         = ‘(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Queuedb_ZS02.cyou.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=QUEUEDB02_DGMGRL)(INSTANCE_NAME=Queuedb)(SERVER=DEDICATED)))‘
    StandbyArchiveLocation          = ‘USE_DB_RECOVERY_FILE_DEST‘
    AlternateLocation               = ‘‘
    LogArchiveTrace                 = ‘0‘
    LogArchiveFormat                = ‘%t_%s_%r.dbf‘
    TopWaitEvents                   = ‘(monitor)‘
 
Database Status:
ERROR

看到报这个错:Error: ORA-16810: multiple errors or warnings detected for the database

show database verbose里有5个warnning:

Warning: ORA-16714: the value of property ArchiveLagTarget is inconsistent with the database setting
Warning: ORA-16714: the value of property LogArchiveMaxProcesses is inconsistent with the database setting
Warning: ORA-16714: the value of property LogArchiveMinSucceedDest is inconsistent with the database setting
Warning: ORA-16714: the value of property LogArchiveTrace is inconsistent with the database setting
Warning: ORA-16714: the value of property LogArchiveFormat is inconsistent with the database setting

需要重新设置下这些属性值:

edit database queuedb02 set property ArchiveLagTarget=‘0‘;
edit database queuedb02 set property LogArchiveMaxProcesses=‘4‘;
edit database queuedb02 set property LogArchiveMinSucceedDest=‘1‘;
edit database queuedb02 set property LogArchiveTrace=‘0‘;
edit database queuedb02 set property LogArchiveFormat=‘%t_%s_%r.dbf‘;
原因是由于:
ORA-16714: the value of property string is inconsistent with the database setting
Cause: The value of the specified configuration property is inconsistent with database in-memory settings or server parameter file settings. This may be caused by changing an initialization parameter that corresponds to a configuration property.
Action: Query property InconsistentProperties on the database to determine the inconsistent values. Reset the property to make it consistent with the database setting.
然后再enable database 就可以了。之前报的Error: ORA-16664: unable to receive the result from a database这个问题也是这个属性的问题导致。

DGMGRL> show configuration;
 
Configuration - queue_zs_dg
 
  Protection Mode: MaxPerformance
  Databases:
    queuedb   - Primary database
    queuedb02 - Physical standby database
 
Fast-Start Failover: DISABLED
 
Configuration Status:
SUCCESS

时间: 2024-08-05 09:14:41

解决oralce 11g dg搭建报错:ORA-16664、ORA-16714、ORA-16810问题--转的相关文章

32位plsql链接oralce数据库64位报错

解决方案:plsql不支持64位,下载32位客户端文件 接着用免安装的plsql连接数据库试了试,发现没有连接的权限可选,如图 直接输入用户名.密码和数据库名,提示如下: 说明plsql是不可以直接连接64位oracle数据库,只能连接32位.既然都安装了64位oracle,可不能卸载了再装32位啊,那如何连接64位呢,就只能借助32位客户端实现了.具体方法在此与大家分享一下: 1.首先下载32位的oracle客户端 下载地址:http://www.oracle.com/technetwork/

rabbimq集群搭建报错:Error: unable TO perform an operation ON node '[email protected]'. Please see diagnostics information AND suggestions below.

在搭建rabbitmq集群的时候,添加内存节点时,抛出异常:Error: unable TO perform an operation ON node '[email protected]'. Please see diagnostics information AND suggestions below. 首先,假设当前服务器为A,我们在A服务器执行rabbitmqctl join_cluster [email protected] --ram,就是说我们要将A服务器作为内存节点加入到B中,然

解决Eclipse不能打包APK报错的问题

1.在Android SDK Tool r19之后, Export的时候遇到xxx is not translated in yyy, zzz的问题. 例如说"auto_exit" is not translated in zh, zh_CN. 这是因为Android SDK Tool 將 ANDROID_LINT_COMPLETE_REGIONS 改为了需要检查. 临时解决方法:Eclipse > Preference > Android > Lint Error

解决app store下载反复报错“下载失败,请到下载栏重试”

google了一下,大家的解决办法有: 通过显示出debug栏,重置app store(点击reset application) (Refer to: http://daluo.com/article/15135/) 找个其他的下载源进行下载,例如百度网盘,soft.macx.cn 通过thunder的thunder store下载 将DNS修改为8.8.8.8 最后,我通过下面的方法解决了: 将DNS修改为8.8.8.8 解决app store下载反复报错"下载失败,请到下载栏重试"

[转]解决IIS下UTF-8文件报错乱码的问题

找了两天才找到解决办法…….晕晕晕...用第二种方法解决了. 网上找到的方法都没有写这一条 If objASPError.ASPDescription > "" Then 后面的回车去掉(这个地方微软写错了) 将这一句后面的<br>注释掉即可! Response.Write Server.HTMLEncode(objASPError.ASPDescription)' & "<br>" 转自:http://blog.csdn.ne

解决SCCM 2016客户端安装报错一例

解决SCCM 2016客户端安装报错一例 使用SCCM 2016推送SCCM Client时遇到如下问题: 以下是客户端计算机的Log: GetHttpRequestObjects failed for verb: 'CCM_POST', url: 'HTTPS://YAN-CM-CM.CONTOSO.COM/ccm_system/request' ccmsetup 2017/3/23 16:58:11 1672 (0x0688) GetDPLocations failed with error

解决eclipse下maven工程报错:Missing artifact jdk.tools:jdk

1.进入jdk/lib目录,执行: mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dpackaging=jar -Dversion=1.7 -Dfile=tools.jar -DgeneratePom=true 2.加入依赖 <dependency> <groupId>jdk.tools</groupId> <artifactId>jdk.tools</arti

解决上传到github报错Successfully created project &#39;autotest&#39; on GitHub, but initial commit failed:

通过IDEA上传代码到GitHub上可是有时候会碰到这样的问题. 当我们选择VCS->Import into Version Control->Share Project on GitHub提交代码.点击OK.然后就跳出了这样的信息: Can't finish GitHub sharing process Successfully created project 'autotest' on GitHub, but initial commit failed: *** Please tell m

VS Code中怎么解决 TSLint: &quot; should be &#39; (quotemark) 报错问题?

VS Code配置typescript问题: VS Code中, user setting中将autoFixOnSave 设置为true. ref:https://github.com/praveenpuglia/angular-sanity/issues/4 VS Code中怎么解决 TSLint: " should be ' (quotemark) 报错问题? 原文地址:https://www.cnblogs.com/watermarks/p/9520949.html