码迷,mamicode.com
首页 > 其他好文 > 详细

goldengate12c不同步索引的处理办法

时间:2020-02-12 20:14:05      阅读:90      评论:0      收藏:0      [点我收藏+]

标签:source   emc   eric   env   红色   ble   同步   12c   space   

数据库版本: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不同步索引的处理办法

标签:source   emc   eric   env   红色   ble   同步   12c   space   

原文地址:https://www.cnblogs.com/hxlasky/p/12300569.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!