Column-conversion Functions
The following CDR statistics can be retrieved and mapped to an exceptions table or used in other Oracle GoldenGate parameters that accept input from column-conversion functions, as appropriate.
-
Number of conflicts that Replicat detected
-
Number of resolutions that Replicat resolved
-
Number of resolutions that 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.
You can return these statistics for a specific table or set of wildcarded tables:
@GETENV ('STATS','TABLE','SCHEMA.TABLNAME','CDR_CONFLICTS') @GETENV ('STATS','TABLE','SCHEMA.TABLNAME','CDR_RESOLUTIONS_SUCCEEDED') @GETENV ('STATS','TABLE','SCHEMA.TABLNAME','CDR_RESOLUTIONS_FAILED')
You can return these statistics for all of the tables in all of the 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 Parameters and Functions Reference
for Oracle GoldenGate.