goldengate12c不同步索引的处理办法
Posted hxlasky
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了goldengate12c不同步索引的处理办法相关的知识,希望对你有一定的参考价值。
数据库版本:12.2.0.1版 cdb下有一个pdb
从库版本:11.2.0.4
goldengate版本:12.3.0.1
如下配置后发现索引没有同步,(但是在11g同步到11g,或是12c没有启用pdb下如下配置是可以同步索引的)
extract extep userid c##goldengate, password AACAAAAAAAAAAAKAPATACEHBIGQGCFZCCDIGAEMCQFFBZHVC ,ENCRYPTKEY DEFAULT SETENV (ORACLE_SID="ora12c") SETENV ( NLS_LANG = AMERICAN_AMERICA.ZHS16GBK) exttrail ./dirdat/ep sourcecatalog ora12cpdb1 BR BRINTERVAL 20M numfiles 5000 warnlongtrans 3h, checkinterval 10m --TRANLOGOPTIONS LOGRETENTION ENABLED --TRANLOGOPTIONS DBLOGREADER --DDL parameter DDL & EXCLUDE INSTR ‘shrink space CHECK‘ & INCLUDE MAPPED OBJTYPE ‘INDEX‘ & INCLUDE MAPPED OBJTYPE ‘TABLE‘ & INCLUDE MAPPED OBJTYPE ‘SEQUENCE‘ & INCLUDE MAPPED OBJTYPE ‘VIEW‘ & INCLUDE MAPPED OBJTYPE ‘PROCEDURE‘ & INCLUDE MAPPED OBJTYPE ‘FUNCTION‘ & INCLUDE MAPPED OBJTYPE ‘PACKAGE‘ & DDLOPTIONS ADDTRANDATA REPORT table ora12cpdb1.EPI_HUNAN.tb_test01; table ora12cpdb1.EPI_HUNAN.tb_test02;
修改如下后就可以同步了,添加了红色部分
extract extep userid c##goldengate, password AACAAAAAAAAAAAKAPATACEHBIGQGCFZCCDIGAEMCQFFBZHVC ,ENCRYPTKEY DEFAULT SETENV (ORACLE_SID="ora12c") SETENV ( NLS_LANG = AMERICAN_AMERICA.ZHS16GBK) exttrail ./dirdat/ep sourcecatalog ora12cpdb1 BR BRINTERVAL 20M numfiles 5000 warnlongtrans 3h, checkinterval 10m --TRANLOGOPTIONS LOGRETENTION ENABLED --TRANLOGOPTIONS DBLOGREADER --DDL parameter DDL & EXCLUDE INSTR ‘shrink space CHECK‘ & INCLUDE MAPPED OBJTYPE ‘INDEX‘ & INCLUDE MAPPED OBJTYPE ‘TABLE‘ & INCLUDE MAPPED OBJTYPE ‘SEQUENCE‘ & INCLUDE MAPPED OBJTYPE ‘VIEW‘ & INCLUDE MAPPED OBJTYPE ‘PROCEDURE‘ & INCLUDE MAPPED OBJTYPE ‘FUNCTION‘ & INCLUDE MAPPED OBJTYPE ‘PACKAGE‘ & INCLUDE INSTR ‘CREATE INDEX‘ DDLOPTIONS ADDTRANDATA REPORT table ora12cpdb1.EPI_HUNAN.tb_test01; table ora12cpdb1.EPI_HUNAN.tb_test02;
以上是关于goldengate12c不同步索引的处理办法的主要内容,如果未能解决你的问题,请参考以下文章
goldengate ERROR OGG-01296 Error mapping from
大数据实时数据同步超级详细的生产环境OGG(GoldenGate)12.2实时异构同步Oracle数据部署方案(中)
[原创]zero downtime using goldengate实现oracle 12C升级系列 第四篇:集群安装
[原创]zero downtime using goldengate实现oracle 12C升级系列 第三篇:asmlib配置