Description of MAP Statement
For an UPDATEROWEXISTS
conflict, where a target row exists on UPDATE
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
column so that the change in value will be added to the current value of the column. -
Per
DEFAULT
, use theUSEMAX
resolution logic for all other columns in the table (the default column group), using thelast_mod_time
column as 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 toname
,phone
,address
,balance
,comment
andlast_mod_time
are applied to the target.
Per COMPARECOLS
, use the primary key (name
column) plus the address
, phone
, salary
, and last_mod_time
columns as the comparison columns for conflict detection for UPDATE
and DELETE
operations. (The balance
and comment
columns are not compared.)
Note:
As an alternative to USEMAX
, you can use the USEMAXEQ
resolution to apply a >=
condition. For more information, see Reference for Oracle GoldenGate.