GoldenGate, Streams and Distributed Database (MOSC)

MOSC Banner

Duplicate records update

edited Nov 12, 2024 3:37PM in GoldenGate, Streams and Distributed Database (MOSC) 2 commentsQuestion

I have the product "oracle goldengate for big data", on linux 7, replicating to mongodb version 7. In which, another data service modifies data. It is necessary that the "OGG" replicator manages to force the updates. Since, when executing the update operations, it indicates that the record already exists.

Is there a command for the replicator that can force an update on the target?

REPLICAT JNLSTEST
TARGETDB LIBFILE libggjava.so SET property=dirprm/mongo.props
SOURCEDEFS /u01/ogg19/dirdef/analytics/TDMJNLDEF_MG OVERRIDE


HANDLECOLLISIONS
sourcecharset ISO-8859-1
discardfile ./dirout/JNLStest.dsc, purge
REPORTCOUNT EVERY 5 MINUTES, RATE
GETUPDATEBEFORES


MAP $EXP00.CCTOT001.TBJNL01, TARGET TDM_CCTOT001.TBJNL01, COLMAP (USEDEFAULTS, JNL_COP = @STRCAT('0000',@STRTRIM(@STREXT(JNL_COP,5,12))),LLAVE = @STRCAT(@BINTOHEX(@OGG_SHA1(@STRTRIM(@STRCAT('0000',@STRTRIM(@STREXT(JNL_COP,5,12)))))),'|',

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center