The SessionWaitMonitor monitors the V$SESSION_WAIT view and generates an alert when the number of session waits detected during multiple samples exceeds one or more thresholds.
The <SessionWaitMonitorConfig> is configured with the following attributes:
||The number of times to sample the V$SESSION_WAIT view per task execution.
||The interval (in seconds) between samples. Must be a positive integer.
||The maximum allowed number of waits that can occur in any one sample. An alert is generated when the number of session waits exceeds this threshold.
||An alert is generated when a consecutive number of samples (defined by WAITS_RANGE_SAMPLES) all contain more than some number of session waits (defined by WAITS_IN_RANGE).
In this example, TCAgent samples the V$SESSION_WAIT view five times, pausing five seconds between each sample. An alert is sent if any individual sample contains more than eight session waits, or if three consecutive samples each contain more than five session waits.
- Take the values for SAMPLES and INTERVAL into consideration when scheduling this task. In the example above, the task takes 25 seconds to execute. Avoid scheduling the task more frequently than the length of time it takes for the task to execute.
- This task ignores idle session waits.