Skip to Content
Oracle Distributed Systems
book

Oracle Distributed Systems

by Charles Dye
April 1999
Intermediate to advanced
552 pages
15h 39m
English
O'Reilly Media, Inc.
Content preview from Oracle Distributed Systems

Writing Your Own Conflict Resolution Handler

If the conflict resolution techniques that Oracle supplies do not meet your requirements, you are free to write your own routine. An example of such a routine is the one with the delete conflict handler shown earlier in this chapter. When you sit down to write your conflict resolution function, it is probably easiest to begin with the code that Oracle generates for the corresponding built-in resolution technique, which you can extract from the DBA_SOURCE data dictionary view. You should also consider building a notification method.

Oracle’s requirements for user-defined conflict resolution techniques are as follows:

  • Use PL/SQL.

  • Return Boolean TRUE if successful, FALSE otherwise.

  • Update handlers require Old, New, and Current column values for columns specified in the parameter_column_name parameter of DBMS_REPCAT.ADD_UPDATE_RESOLUTION.

  • Delete handlers require Old column values for the entire row.

  • Uniqueness handlers require New values for columns specified in the parameter_column_name parameter of DBMS_REPCAT.ADD_UPDATE_RESOLUTION.

  • Do not perform DDL (i.e., through dynamic SQL).

  • Do not perform transaction control (e.g., ROLLBACK).

  • Do not perform session control (e.g., ALTER SESSION...).

  • Do not perform system control (e.g. ALTER SYSTEM...).

When you are ready to add your conflict resolution function to the table, follow these steps:

  1. Quiesce the replication group.

  2. Call DBMS_REPCAT.CREATE_MASTER_REPOBJECT to make your function a replicated object.

  3. Call ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expert Oracle Exadata, Second Edition

Expert Oracle Exadata, Second Edition

Martin Bach, Karl Arao, Andy Colvin, Frits Hoogland, Randy Johnson, Kerry Osborne, Tanel Poder
Expert Oracle RAC 12c

Expert Oracle RAC 12c

Syed Jaffar Hussain, Tariq Farooq, Riyaj Shamsudeen, Kai Yu

Publisher Resources

ISBN: 1565924320Supplemental ContentCatalog PageErrata