Enabling event monitor data collection
Depending on the type of event monitor you are
using, you might need to configure collection after you create the
event monitor. By default, some event monitors collect certain
data immediately when activated. Other event monitors require that
you explicitly configure data collection independently of creating
the event monitor. These types of event monitors are sometimes referred
to as passive event monitors.
Before you begin
About this task
- Activities
- Change history
- Locking
- Statistics
- Unit of work
- All activities in the database
- To have monitor data collected across all activities in the database,
you modify the appropriate configuration parameter for the type of
data you are interested in. For example, to have unit of work data
collected for all units of work that run in the database, set mon_uow_data to
BASE. In some cases, the default settings for configuration parameters
are such that some type of data is always collected if there is an
appropriate event monitor active to receive the date. For example,
the default setting for mon_req_metrics is BASE;
unless you override this setting, any active statistics or unit of
work event monitor will record the values for the BASE set of request
monitor elements.Remember: Event monitors that support the use of the WHERE predicate collect only the data that satisfies the conditions specified in that predicate, regardless of the settings for any relevant configuration parameters.
- Selected activities
- Some event monitors - in particular, the workload management event
monitors (threshold violations, statistics and activities) - provide
the ability to control data collection for specific workload management
objects. For example, you might choose to collect activity information
for activities running in a specific service superclass. Configuring
collection at this level generally involves adding a COLLECT clause
to the CREATE or ALTER WORKLOAD (or SERVICE CLASS or WORK ACTION)
statements to specify what type of information to collect for activities
running under the auspices of that WLM object. For example, to enable
the collection of extended statistics information for the service
class
urgent
, you might use the following statement:ALTER SERVICE CLASS urgent COLLECT AGGREGATE ACTIVITY DATA EXTENDED
Note: If a COLLECT clause is specified in a WLM CREATE
or ALTER statement, the settings specified in the clause take precedence
for that WLM object over any database-wide setting configured using
a configuration parameter. For example, if mon_req_metrics is
set to EXTENDED, and if workload
payroll
was configured
to collect BASErequest metrics (for example, CREATE WORKLOAD payroll
COLLECT REQUEST METRICS BASE), then extended request metrics are collected
for all activities in the database except for the payroll
workload.Procedure
To enable collection of data for one of the types of event monitors shown at the beginning of this section, perform the following steps: