You can create a PL/SQL function to handle a particular conflict. This is useful when there are specific business rules that describe the behavior when there is a conflict. With PL/SQL different conflict handlers can be created that are not handled by the supplied conflict handlers. For example the DELTA conflict handler which adds up the different updated values from both source and target can be programmed using PL/SQL.
The following is an example of the command set 'nodata_update_avi' function to be executed when there s is 'NO_DATA' conflict raised by Dbvisit Replicate for update operation on scott.avi table.
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Section | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Info |
---|
Here,The following applies: apply_old_data : the values at the target, queried by using key columns in the where clause. The boolean flag indicates whether any such record was found. primary_key_data: old values at the source; mostly used to see the key, but it actually contains all supplementally logged values, too. Thus it will always (excl. LOBs, LONGs) include the modified column, too. new_data: new (modified) values at the source. |
...