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!

STRCAT applies the BEFORE values

User_A7RKTApr 14 2017 — edited Apr 15 2017

Hi guys,

When I tested STRCAT function, it has behaved in a weird way.

If I use a column within the function, the function will use the Before value of the column.. not the updated value.

Mapping settings in the Replicat:

Map HR.EMPLOYEES, Target HRTRG.EMPLOYEES, ColMap (USEDEFAULTS,  FULL_NAME = @StrCat( LAST_NAME,',',FIRST_NAME));

Update statement in the source:

UPDATE HR.EMPLOYEES SET PHONE_NUMBER = '123.4567', LAST_NAME='New last name' WHERE EMPLOYEE_ID=150;

COMMIT;

The outcome in the target:

LAST_NAME                 FULL_NAME

------------------------- --------------------------------------------------

New last name             Tuck,Peter

It is a classic Extract and Replicat by the way.

GG 12.2 on Oracle 12c R1, Linux 64-bit.

Can anyone explain please?

Thanks in advance.

Note: copies of the full parameter files attached.

This post has been answered by ORASCN on Apr 15 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2017
Added on Apr 14 2017
2 comments
223 views