IBM Books

System Monitor Guide and Reference

FLUSH EVENT MONITOR

The FLUSH EVENT MONITOR statement writes current database monitor values for all active monitor types associated with event monitor event-monitor-name to the event monitor I/O target. Hence, at any time a partial event record is available for event monitors that have low record generation frequency (such as a database event monitor). Such records are noted in the event monitor log with a partial record identifier.

When an event monitor is flushed, its active internal buffers are written to the event monitor output object.

Scope

This statement can be embedded in an application program or issued interactively. It is an executable statement that can be dynamically prepared.

Authorization

The privileges held by the authorization ID must include either SYSADM or DBADM authority (SQLSTATE 42502).

Command Syntax

>>-FLUSH--EVENT--MONITOR--event-monitor-name--+---------+------><
                                              '-BUFFER--'
 

Command Parameters

event-monitor-name
Name of the event monitor. This is a one-part name. It is an SQL identifier.

BUFFER
Indicates that the event monitor buffers are to be written out. If BUFFER is specified, then a partial record is not generated. Only the data already present in the event monitor buffers are written out.

Usage Notes


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]