Description of MAP Statement
-
For an
UPDATEROWEXISTSconflict, where a target row exists onUPDATEbut non-key columns are different, use two different resolutions depending on the column:-
Per the
delta_res_methodresolution, use theUSEDELTAresolution logic for thesalaryandbalancecolumns so that the change in each value will be added to the current value of each column. -
Per the
max_res_methodresolution, use theUSEMAXresolution logic for theaddressandlast_mod_timecolumns. Thelast_mod_timecolumn is the resolution column. This column is updated with the current time whenever the row is modified; the value of this column in the trail is compared to the value in the target. If the value oflast_mod_timein the trail record is greater than the current value oflast_mod_timein the target database, the changes toaddressandlast_mod_timeare applied to the target; otherwise, they are ignored in favor of the target values. -
Per
DEFAULT, use theIGNOREresolution logic for the remaining columns (phoneandcomment) in the table (the default column group). Changes to these columns will always be ignored by Replicat.
-
-
Per
COMPARECOLS, use all columns except thecommentcolumn as the comparison columns for conflict detection forUPDATEoperations. Comment will not be used in theWHEREclause for updates, but all other columns that have a before image in the trail record will be used.Note:
As an alternative to
USEMAX, you can use theUSEMAXEQresolution to apply a>=condition. For more information, see Parameters and Functions Reference for Oracle GoldenGate.