Selected user events, termed persistent user events, are audited by the primary database to enable the events to be replayed on the secondary database.
On a primary or non-SDS system, subscribers are notified of non-immediate events at the time the transaction commits (or never, if the transaction aborts). When a persistent user event is replayed on a secondary system, subscribers to the event are notified when the transaction containing the persistent event commits on the secondary system.
Persistent user events can be achieved in two ways, as follows.
Globally, by setting the
Selectively, by leaving the
The userInfo parameter can be used to associate additional information with the event. This information is passed in the userInfo parameter of the