DisableReplay

This method disables replay on the connection in Application Continuity.

Declaration

// C#
public void DisableReplay();

Remarks

By default, ODP.NET replays following a recoverable error. If any application uses a design unsuitable for replay, then this method can be called to disable replay on a per request basis. It can be added to the callback or to the main code. For example, if an application module uses the UTL_SMTP package to send emails, the developer may not want those emails to be sent again upon replay.

Disabling replay does not alter the connection state by re-executing any method, SQL or PL/SQL. When it is disabled, both recording and replay are disabled until that request ends and an explicit BeginRequest is called.

There is no method to re-enable replay once disabled. It is invalid to reestablish the database session with time gaps in a replayed request. This principle ensures replay runs only if a complete call has been recorded.