Viewing CDR Statistics
The CDR feature provides the following methods for viewing the results of conflict resolution.
Here are different techniques you can use to view CDR statistics.
Report File
Total CDR conflicts 7
CDR resolutions succeeded 6
CDR resolutions failed 1
CDR INSERTROWEXISTS conflicts 1
CDR UPDATEROWEXISTS conflicts 4
CDR UPDATEROWMISSING conflicts
CDR DELETEROWEXISTS conflicts 1
CDR DELETEROWMISSING conflicts 1
Command Line
You can view CDR statistics from the command line by using the STATS
REPLICAT
command with the REPORTCDR
option:
STATS REPLICAT group, REPORTCDR
Column-conversion Functions
-
Number of conflicts that Replicat detected
-
Number of resolutions that the Replicat resolved
-
Number of resolutions that the Replicat could not resolve
To retrieve these statistics, use the @GETENV
column-conversion
function with the STATS
or DELTASTATS
information
type. The results are based on the current Replicat session. If Replicat stops and
restarts, it resets the statistics.
@GETENV ('STATS','TABLE','SCHEMA.TABLNAME','CDR_CONFLICTS')
@GETENV ('STATS','TABLE','SCHEMA.TABLNAME','CDR_RESOLUTIONS_SUCCEEDED')
@GETENV ('STATS','TABLE','SCHEMA.TABLNAME','CDR_RESOLUTIONS_FAILED')
MAP
statements in the Replicat parameter
file:@GETENV ('STATS','CDR_CONFLICTS')
@GETENV ('STATS','CDR_RESOLUTIONS_SUCCEEDED')
@GETENV ('STATS','CDR_RESOLUTIONS_FAILED')
The 'STATS'
information type in the preceding examples can be
replaced by 'DELTASTATS'
to return the requested counts since the
last execution of 'DELTASTATS'
. For more information about
@GETENV
, see @GETENV