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

Name

DBMS_SNAPSHOT.I_AM_A_REFRESH

Synopsis

The I_AM_A_REFRESH function queries the REP$I_AM_A_REFRESH package variable. If this variable is TRUE, then the session is refreshing a snapshot or applying propagated DML to a replicated table. This DML is performed on behalf of a replicated transaction that was initiated at another master—that is, the DML performed by this session will not be replicated because it is the local application of remote DML. I_AM_A_REFRESH is used by numerous replication triggers and procedures to determine whether DML should be replicated.

FUNCTION DBMS_SNAPSHOT.I_AM_A_REFRESH RETURN BOOLEAN;

All row-level replication triggers are after-row triggers. Although a table can have multiple triggers of the same type, you cannot control the order in which they are fired. Therefore, it is safest to use before-row triggers to perform auditing on replicated tables; in this way, you are guaranteed that before-row triggers fire before after-row triggers.

The function does not raise any exceptions, and there are no restrictions on calling it.

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