Skip to Main Content

GoldenGate

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Duplicate rows inserted by a single operation

User_A7RKTJan 21 2017 — edited Jan 22 2017

Hi guys,

I have a basic configuration in Replicat side to store the history of transactions on EMPLOYEES table as follows:

Map HR.EMPLOYEES, Target HRTRG.EMP_HISTORY,INSERTALLRECORDS,

ColMap (EMPLOYEE_ID=EMPLOYEE_ID,

         ASALARY=SALARY,

         ACOMMISSION_PCT = COMMISSION_PCT,

         BSALARY = @BEFORE(SALARY),

         BCOMMISSION_PCT = @BEFORE(COMMISSION_PCT),

         OP_TYPE = @GetEnv('GGHEADER', 'OPTYPE'),

         TRAN_TIME = @GetEnv('GGHEADER', 'COMMITTIMESTAMP'),

);

When I do a single update on EMPLOYEES tables, I see two records in the EMP_HISTORY.

Can anyone explain to me why this could happen please?

Thanks in advance.

This post has been answered by Arturo Gutierrez on Jan 22 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 19 2017
Added on Jan 21 2017
4 comments
249 views