1. 源端ogg版本:
  2. [oracle@rac1 ogg]$ ggsci -v
  3.  
  4. Oracle GoldenGate Command Interpreter for Oracle
  5. Version 11.2.1.0.21 18343248 18541804_FBO
  6. Linux, x64, 64bit (optimized), Oracle 11g on May 8 2014 23:38:49
  7.  
  8. Copyright (C) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
  9. 目标端ogg版本:
  10. [oracle@single2 ggs]$ ggsci -v
  11.  
  12. Oracle GoldenGate Command Interpreter for Oracle
  13. Version 11.1.1.1.5_09 16874907 OGGCORE_11.1.1.1.6_PLATFORMS_130611.2300_FBO
  14. Linux, x64, 64bit (optimized), Oracle 11g on Jun 12 2013 03:27:15
  15.  
  16. Copyright (C) 1995, 2013, Oracle and/or its affiliates. All rights reserved.
  17.  
  18. 正常配置:
  19. 源端:exthtl dphtl
  20. 目标端:rephtl
  21.  
  22. 起同步以后,目标端进程:
  23. GGSCI (single2) 3> info all
  24.  
  25. Program Status Group Lag Time Since Chkpt
  26.  
  27. MANAGER RUNNING
  28. REPLICAT ABENDED REPHTL 00:00:00 00:06:26
  29.  
  30. 检查报错:
  31. GGSCI (single2) 5> view report rephtl
  32. 。。。
  33. 2017-06-01 02:34:10 ERROR OGG-01332 File /ggs/dirdat/tl000000, with compatibility level 3, is not compatible with the current software version's compatib
  34. ility level of 2. Modify the file writer's parameter file to generate the appropriate format using the FORMAT LEVEL 2 option.
  35. 。。。
  36.  
  37. 搜索ogg官方文档E24874-01
  38. OGG-01332: File {0}, with compatibility level {1,number,0}, is not compatible with
  39. the current software version's compatibility level of {2,number,0}. Modify the
  40. file writer's parameter file to generate the appropriate format using the
  41. FORMAT LEVEL {2,number,0} option.
  42. Cause: The version of the trail file and the version of the process that reads it
  43. (Extract or Replicat) are not the same. The trail version must be the same as, or
  44. older than, that of the reader process. LEVEL is an internal option that specifies a
  45. compatibility level that is independent of the Oracle GoldenGate software version
  46. and only changes if new functionality was added to a version that affects the trail
  47. format. A value of 1 or greater specifies a format that is supported by Oracle
  48. GoldenGate versions 10.0 and later. A value of 0 specifies a format that is
  49. supported by Oracle GoldenGate versions prior to 10.0.
  50. Action: Edit the parameter file to set the EXTFILE, EXTTRAIL, RMTFILE, or
  51. RMTTRAIL parameter to 0 to write a trail that is backward compatibile with the
  52. reader process. Next, issue the issue the ALTER EXTRACT comand with the
  53. ETROLLOVER option in GGSCI. The rollover creates a new trail file in the
  54. specified format. Start Extract to begin writing to the new trail file. For more
  55. information, see the Oracle GoldenGate reference documentation for the trail or
  56. file parameters.
  57. 也就是说,生成trail文件的版本必须必读取trail文件的版本相同或者更旧。根据提示,去查找ogg官方文档E27274-01
  58. FORMAT RELEASE <major>.<minor>
  59. Specifies the metadata format of the data that is sent by Extract to a
  60. trail, a file, or (if a remote task) to another process. The metadata tells
  61. the reader process whether the data records are of a version that it
  62. supports. The metadata format depends on the version of the Oracle
  63. GoldenGate process. Older Oracle GoldenGate versions contain
  64. different metadata than newer ones.
  65. FORMAT is a required keyword.
  66. RELEASE specifies an Oracle GoldenGate release version. <major> is
  67. the major version number, and <minor> is the minor version
  68. number. Valid values are 9.0 through the current Oracle
  69. GoldenGate version number. (If you use an Oracle GoldenGate
  70. version that is earlier than 9.0, specify either 9.0 or 9.5.) The
  71. release version is programatically mapped back to the appropriate
  72. trail format compatibility level. The default is the current version
  73. of the process that writes to this trail.
  74. There is a dependency between FORMAT and the RECOVERYOPTIONS
  75. parameter. When RECOVERYOPTIONS is set to APPENDMODE, FORMAT must
  76. be set to RELEASE 10.0 or greater. When RECOVERYOPTIONS is set to
  77. OVERWRITEMODE, FORMAT must be set to RELEASE 9.5 or less.
  78. See Appendix 2 on page 562 for additional information about Oracle
  79. GoldenGate trail file versioning and recovery modes
  80.  
  81. 根据提示,在参数文件中涉及trail文件的加format release 11.1extdp中),再次重新部署,目标端启动进程:
  82. 2017-06-01 03:46:43 WARNING OGG-00869 OCI Error ORA-26945: unsupported hint RESTRICT_ALL_REF_CONS (status = 26945), SQL <INSERT /*+ RESTRICT_ALL_REF_CONS *
  83. / INTO "TEST"."PK" ("ID","NAME") VALUES (:a0,:a1)>.
  84.  
  85. 2017-06-01 03:46:43 WARNING OGG-01004 Aborted grouped transaction on 'TEST.PK', Database error 26945 (OCI Error ORA-26945: unsupported hint RESTRICT_ALL_RE
  86. F_CONS (status = 26945), SQL <INSERT /*+ RESTRICT_ALL_REF_CONS */ INTO "TEST"."PK" ("ID","NAME") VALUES (:a0,:a1)>).
  87.  
  88. 2017-06-01 03:46:43 WARNING OGG-01003 Repositioning to rba 328089 in seqno 0.
  89.  
  90. 2017-06-01 03:46:43 WARNING OGG-01154 SQL error 26945 mapping TEST.PK to TEST.PK OCI Error ORA-26945: unsupported hint RESTRICT_ALL_REF_CONS (status = 2694
  91. 5), SQL <INSERT /*+ RESTRICT_ALL_REF_CONS */ INTO "TEST"."PK" ("ID","NAME") VALUES (:a0,:a1)>.
  92.  
  93. 2017-06-01 03:46:43 WARNING OGG-01003 Repositioning to rba 328089 in seqno 0.
  94.  
  95. Source Context :
  96. SourceModule : [er.main]
  97. SourceID : [/scratch/aime1/adestore/views/aime1_adc4150267/oggcore/OpenSys/src/app/er/rep.c]
  98. SourceFunction : [take_rep_err_action]
  99. SourceLine : [16191]
  100. ThreadBacktrace : [8] elements
  101. : [/ggs/replicat(CMessageContext::AddThreadContext()+0x26) [0x68bab6]]
  102. : [/ggs/replicat(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x39f) [0x6853df]]
  103. : [/ggs/replicat(_MSG_ERR_MAP_TO_TANDEM_FAILED(CSourceContext*, DBString<777> const&, DBString<777> const&, CMessageFactory::Messag
  104. eDisposition)+0x4d) [0x66bf2d]]
  105. : [/ggs/replicat() [0x552ab3]]
  106. : [/ggs/replicat() [0x55d8cb]]
  107. : [/ggs/replicat(main+0x65c) [0x54800c]]
  108. : [/lib64/libc.so.6(__libc_start_main+0xfd) [0x3648e1ed1d]]
  109. : [/ggs/replicat(__gxx_personality_v0+0x1ea) [0x4fd56a]]
  110.  
  111. 2017-06-01 03:46:43 ERROR OGG-01296 Error mapping from TEST.PK to TEST.PK.
  112.  
  113. 注释掉rep进程中的DBOPTIONS DEFERREFCONST, SUPPRESSTRIGGERS,同步正常。
  114.  
  115. 注:ORA-26945: unsupported hint RESTRICT_ALL_REF_CONS原因(摘自 1644272.1
  116. The issue is seen on OGG version 11.1 when using DBOPTIONS DEFERREFCONST parameter against Oracle DB version 11.2.0.4.
  117. OGG version should be 11.2 or higher when using Oracle db version 11.2.0.4 and make sure to use the OGG build for Oracle 11g.
  118.  
  119. The error could also happen when ENABLE_GOLDENGATE_REPLICATION database parameter is not enabled on Oracle 11.2.0.4 and 12.1.0.2+

ogg高版本到低版本同步的更多相关文章

  1. OGG-01332 ogg高版本向低版本传输

    Neo君遇到的ogg版本问题,在ggserr.log中的错误信息如下: 2018-10-12 09:55:10 ERROR OGG-01332 Oracle GoldenGate Delivery, ...

  2. sqlserver高版本到低版本迁移

    从SqlServer2014 备份bak文件,在SqlServer2012中还原时遇到版本不兼容的问题. 经过leader 指导,可尝试以下办法处理数据迁移.共分三个步骤: 一.对需要迁移数据库生成s ...

  3. Data Base mongodb高版本与低版本的区别

    mongodb高版本与低版本的区别 一.mongodb引擎: Mongodb 3.0支持用户自定义存储引擎,用户可配置使用mmapv1或者wiredTiger存储引擎. 3.2版本以后默认的开启的是w ...

  4. mongodb高版本与低版本的区别

    mongodb高版本与低版本的区别 一.mongodb引擎: Mongodb 3.0支持用户自定义存储引擎,用户可配置使用mmapv1或者wiredTiger存储引擎. 3.2版本以后默认的开启的是w ...

  5. SQL数据库从高版本到低版本的迁移,同时解决sql脚本文件太大无法打开的尴尬问题

    as we known,sql数据库高版本向低版本还原是不太可能但是又经常会碰到的事,今天实测了一种方法 步骤:任务—>生成脚本—> 下一步->高级,选择数据库版本和编写脚本数据类型 ...

  6. SQL Server 临时禁用和启用所有外键约束(高版本向低版本迁移数据)

    --获得禁用所有外键约束的语句 select 'ALTER TABLE [' + b.name + '] NOCHECK CONSTRAINT ' + a.name +';' as 禁用约束 from ...

  7. sqlserver高版本还原到低版本方法

    想要将Sqlserver2014高版本备份的数据还原到低版本SqlServer2008R2上去,但是这在SqlServer中是没法直接还原数据库的,通过以下方法可以顺利还原. 通过高版本生成sql脚本 ...

  8. SQL数据库从高版本导入低版本

    1. 打开高版本数据库右键–>任务–>生成脚本–>高级–>选择脚本兼容的版本(也就是低版本)–>拉倒最下面选择架构和数据 2. 在低版本里面,先新建一个数据库,名称要和脚 ...

  9. Vs工程高版本向低版本迁移

    使用到一个SLAM程序,一些运行库是基于PCL1.7.2Vs11版本,但是Vs11巨慢,应该把程序迁移到Vs10 下面,遇到打不开的问题. 1.修改方法: 参考链接:使用低版本打开高版本VS解决方案 ...

  10. Oracle 高版本往低版本备份恢复的方法

    1. 高版本的数据库备份恢复到低版本的数据库 有时候回报错, 提示version版本不一致, 2. 其实方法是expdp 导出的时候 增加一个参数就可以了 参数 一般的类型是 version=11.2 ...

随机推荐

  1. Hive中排序和聚集

    //五种子句是有严格顺序的: where → group by → having → order by → limit ; //distinct关键字返回唯一不同的值(返回age和id均不相同的记录) ...

  2. ScriptToApp FAQ

      Q: What should i do when the system alert is displayed ? A: To make the generated app work, you ne ...

  3. CentOS(64位)安装apr

    安装apr来提高tomcat 的可伸缩性和性能 cd /usr/local/ 1.  下载apr 和 apr-util最新版 wget http://apache.fayea.com/apache-m ...

  4. 分词工具比较及使用(ansj、hanlp、jieba)

    一.分词工具 ansj.hanlp.jieba 二.优缺点 1.ansj 优点: 提供多种分词方式 可直接根据内部词库分出人名.机构等信息 可构造多个词库,在分词时可动态选择所要使用的词库缺点: 自定 ...

  5. 位运算 进制转化 STL中bitset用法

    2017-08-17 16:27:29 writer:pprp /* 题目名称:输入十进制以二进制显示 程序说明:同上 作者:pprp 备注:无 日期:2017/8/17 */ #include &l ...

  6. C# ContentType: "application/json" 请求方式传json参数问题

    处理Http请求时遇到的ContentType为application/json方式,记录下这种Post请求方式下如何传json参数: var request = (HttpWebRequest)We ...

  7. thinkphp3.2笔记(1)目录,控制器及url模式,地址解析

    一.目录 Application  :  tp默认的应用代码存储的目录 Public :     Tp 默认的存储静态资源的目录,img,css,js ThinkPHP  :   Tp  框架的源代码 ...

  8. PHP 重载方法 __call()

    __call() 方法用于监视错误的方法调用. __call()(Method overloading) 为了避免当调用的方法不存在时产生错误,可以使用 __call() 方法来避免.该方法在调用的方 ...

  9. CSP(Content Security Policy) 入门教程

    参考: http://www.ruanyifeng.com/blog/2016/09/csp.html https://developer.mozilla.org/en-US/docs/Web/HTT ...

  10. [java]Stream API——map和flatMap的区别

    map方法 map的含义为映射.是指对于Stream中包含的每一个元素使用给定的转换函数进行转换. map传入的Lambda表达式必须是Function实例,参数可以为任意类型,而其返回值也是任性类型 ...