Description of MAP Statement
-
For an
UPDATEROWEXISTS
conflict, where a target row exists onUPDATE
but non-key columns are different, use two different resolutions depending on the column:-
Per the
delta_res_method
resolution, use theUSEDELTA
resolution logic for thesalary
andbalance
columns so that the change in each value will be added to the current value of each column. -
Per the
max_res_method
resolution, use theUSEMAX
resolution logic for theaddress
andlast_mod_time
columns. Thelast_mod_time
column 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_time
in the trail record is greater than the current value oflast_mod_time
in the target database, the changes toaddress
andlast_mod_time
are applied to the target; otherwise, they are ignored in favor of the target values. -
Per
DEFAULT
, use theIGNORE
resolution logic for the remaining columns (phone
andcomment
) in the table (the default column group). Changes to these columns will always be ignored by Replicat.
-
-
Per
COMPARECOLS
, use all columns except thecomment
column as the comparison columns for conflict detection forUPDATE
operations. Comment will not be used in theWHERE
clause 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 theUSEMAXEQ
resolution to apply a>=
condition. For more information, see Reference for Oracle GoldenGate.