goldengate 同步无主键表

来源:互联网 发布:js参数给jquery赋值 编辑:程序博客网 时间:2024/06/05 19:18
scott.bonus表无主键无唯一索引,若是在gg源端发出,会导致gg目的端abend,除非目的端复制进程参数文件有APPLYNOOPUPDATES 或者ALLOWNOOPUPDATES  参数)

update scott.t1 set ename='bos' where ename='bos2'; 


gg目的端abend时,dirrpt下的rpt文件报错如下:


2011-09-14 09:35:23  ERROR   OGG-01168  Encountered an update for target table SCOTT2.BONUS, which has no unique key defined.  KEYCOLS can be used to define a key.
Use ALLOWNOOPUPDATES to process the update without applying it to the target database. 
Use APPLYNOOPUPDATES to force the update to be applied using all columns in both the SET and WHERE clause

 

所以在目标端的配置文件中加入参数 APPLYNOOPUPDATES 或者ALLOWNOOPUPDATES  参数

0 0