6.4.7.2 HAEvent
This event is triggered when an HA event occurs.
Declaration
// C# public static event OracleHAEventHandler HAEvent;
Event Data
The event handler receives an OracleHAEventArgs object which exposes the following properties containing information about the event.
-
SourceIndicates the source of the event.
-
StatusIndicates the status of the event.
-
DatabaseNameIndicates the database name affected by this event.
-
DatabaseDomainNameIndicates the database domain name affected by this event.
-
HostNameIndicates the host name affected by this event.
-
InstanceNameIndicates the instance name affected by this event.
-
ServiceNameIndicates the service name affected by this event.
-
TimeIndicates the time of the event.
Remarks
The HAEvent is static, which means that any HA Events that happen within the application domain can trigger this event. Note that in order to receive HA event notifications, OracleConnection objects that establish connections within the application domain must have "ha events=true" in the application. Otherwise, the application never receives any HA Events.