Oracle7 Server Application Developer's Guide

Contents Index Home Previous Next

Checking for Alerts

Usually, Oracle is event-driven; that is, there are no polling loops. There are two cases where polling loops can occur:

SET_DEFAULTS Procedure

In case a polling loop is required, use the SET_DEFAULTS procedure to set the POLLING_INTERVAL. The POLLING_INTERVAL is the time, in seconds, to sleep between polls. The default interval is five seconds.

Syntax

The syntax for the SET_DEFAULTS procedure is

DBMS_ALERT.SET_DEFAULTS(polling_interval  IN  NUMBER);


Contents Index Home Previous Next