OracleFailoverEvent Enumeration

OracleFailoverEvent enumerated values are used to specify the state of the failover.

OracleFailoverEvent Enumeration Values lists all the OracleFailoverEvent enumeration values with a description of each enumerated value.

Table 11-10 OracleFailoverEvent Enumeration Values

Member Names Description

OracleFailoverEvent.Begin

Indicates that failover has detected a lost connection and that failover is starting.

OracleFailoverEvent.End

Indicates successful completion of failover.

OracleFailoverEvent.Abort

Indicates that failover was unsuccessful, and there is no option of retrying.

OracleFailoverEvent.Error

Indicates that failover was unsuccessful, and it gives the application the opportunity to handle the error and retry failover. The application can retry failover by returning OracleFailoverReturnCode.Retry for the event notification.

OracleFailoverEvent.Reauth

Indicates that a user handle has been reauthenticated. This applies to the situation where a client has multiple user sessions on a single server connection. During the initial failover, only the active user session is failed over. Other sessions are failed over when the application tries to use them. This is the value passed to the callback during these subsequent failovers.

No significant database operation should occur immediately after a OracleFailoverEvent.Begin event. SQL and major database operations should wait until the OracleFailoverEvent.End event. OracleFailoverEvent.Begin is primarily used to reject failover or to trace it. OracleFailoverEvent.Begin can also be used for non-database application operations, such as informing the end user a failover is in progress and to wait until it completes before proceeding. Transactions can be used in the OracleFailoverEvent.End callback phase, such as to file fault tickets or audit. These transactions must be committed before the callback completes.

Requirements

Provider ODP.NET, Managed Driver ODP.NET Core

Assembly

Oracle.ManagedDataAccess.dll

Oracle.ManagedDataAccess.dll

Namespace

Oracle.ManagedDataAccess.Client

Oracle.ManagedDataAccess.Client

.NET Framework

See System Requirements

-

.NET (Core)

-

See System Requirements