16.6 Monitoring Conflict Resolution with DBMS_REPCATOracle can audit successful calls to your conflict resolution handlers so that you have insight into the frequency and nature of the conflicts that occur. 16.6.1 About MonitoringIf you enable the auditing of successful calls to your conflict resolution handlers, you can review this information in the DBA_REPRESOLUTION_STATISTICS data dictionary view. Use the following programs to enable, disable, and purge these statistics:
16.6.1.1 The DBMS_REPCAT.REGISTER_STATISTICS procedureThe REGISTER_STATISTICS procedure enables the collection of data about the successful resolution of update, uniqueness, and delete conflicts. This information is visible in the DBA_REPRESOLUTION_STATISTICS data dictionary view. Here is the specification for this procedure: PROCEDURE DBMS_REPCAT.REGISTER_STATISTICS (sname IN VARCHAR2, oname IN VARCHAR2); Parameters are summarized in the following table.
There are no restrictions on calling REGISTER_STATISTICS. 16.6.1.1.1 ExceptionsThe REGISTER_STATISTICS procedure may raise the following exceptions:
16.6.1.1.2 ExampleThis call enables the gathering of conflict resolution statistics for the products table: BEGIN DBMS_REPCAT.REGISTER_STATISTICS sname => 'SPROCKET', oname => 'PRODUCTS'); END; 16.6.1.2 The DBMS_REPCAT.CANCEL_STATISTICS procedureThe CANCEL_STATISTICS procedure disables the gathering of conflict resolution statistics. Here's the specification: PROCEDURE DBMS_REPCAT.CANCEL_STATISTICS (sname IN VARCHAR2, oname IN VARCHAR2); Parameters are summarized in the following table.
There are no restrictions on calling CANCEL_STATISTICS. 16.6.1.2.1 ExceptionsThe CANCEL_STATISTICS procedure may raise the following exceptions:
16.6.1.2.2 ExampleThis call disables the gathering of conflict resolution statistics for the products table: BEGIN DBMS_REPCAT.CANCEL_STATISTICS( sname => 'SPROCKET', oname => 'PRODUCTS;); END; 16.6.1.3 The DBMS_REPCAT.PURGE_STATISTICS procedureIf you are collecting conflict resolution statistics, you can purge this information periodically using the PURGE_STATISTICS procedure. Here is the specification: PROCEDURE DBMS_REPCAT.PURGE_STATISTICS (sname IN VARCHAR2, oname IN VARCHAR2, start_date IN DATE, end_date IN DATE); Parameters are summarized in the following table.
There are no restrictions on calling PURGE_STATISTICS. 16.6.1.3.1 ExceptionsThe PURGE_STATISTICS procedure may raise the following exceptions:
16.6.1.3.2 ExampleThis example purges all records collected for the products table between 01-Jan-1998 and 01-Feb-1998: BEGIN DBMS_REPCAT.PURGE_STATISTICS( sname => 'SPROCKET', oname => 'PRODUCTS', start_date => '01-JAN-1998', end_date => '01-FEB-1998'); END;
Copyright (c) 2000 O'Reilly & Associates. All rights reserved. |
|