Viewing the conflicts
Listing of the conflict with the LIST CONFLICT command
To view the actual SQL and other details associated with of the transaction that is causing the conflict:
dbvrep> LIST CONFLICT
or by specifying the actual conflict id:
dbvrep> LIST CONFLICT 345
or by specifying last:
dbvrep> LIST CONFLICT LAST
When no conflict data is shown with LIST CONFLICT
With two-way replication, multiple replication pairs or one-to-many replication, ensure the correct replication pair is chosen before issuing the LIST CONFLICT command. Please see CHOOSE REPLICATION
Viewing all the conflicts
It is also possible to obtain the conflict information directly from the Dbvisit Replicate repository. Logon to the APPLY (target database) as the Dbvisit Replicate schema owner (dbvrep) and query table:
DBRSAPPLY_CONFLICT_LOG
This lists all the conflicts encountered, including failing SQL.
The column SQL_TEXT contains the actual SQL statement that is run against the target database and includes the bind variables.
How much time is spend on the conflict
Conflicts will slow down the replication process as extra resources are required to process the conflicts
To determine how much time is spent retrying/waiting for conflicts to resolve, the following query can be used:
SQL> select sum (resolve_date-apply_date) from dbrsapply_conflict_log group by trunc(resolve_date);
The query will list the sum of all conflicts. The Query can be changed to group the time for each different conflict.