Goldengate synchronization non-primary key table

Source: Internet
Author: User

The Scott. Bonus table does not have a primary key and does not have a unique index. If it is sent from the GG source end, the GG target end is abend, unless the target replication process parameter file has applynoopupdates or allownoopupdates parameters)

Update Scott. T1 set ename = 'bos 'where ename = 'bos2 ';

When the GG destination is abend, The rpt file in dirrpt reports the following error:

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

 

Therefore, add the applynoopupdates or allownoopupdates parameter to the target configuration file.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.