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_methodresolution, use theUSEDELTAresolution logic for thesalarycolumn so that the change in value will be added to the current value of the column. -
Per
DEFAULT, use theUSEMAXresolution logic for all other columns in the table (the default column group), using thelast_mod_timecolumn 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_timein the trail record is greater than the current value oflast_mod_timein the target database, the changes toname,phone,address,balance,commentandlast_mod_timeare 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.