Historical monitoring data is stored in a repository database. You will need to activate
repository persistence and set associated values in your monitoring profile to ensure IBM® Data
Server Manager (DSM) presents the
data you need.
About this task
Go to Creating a repository database for Data Server Manager for detailed steps on how to
create a repository database and the associated connection in DSM.
Procedure
To set up monitoring of historical data for your database connection:
-
Go to .
-
From the All Monitoring Profiles page, expand the vendor that matches your database
(e.g., Db2) select your monitoring profile and then click Edit.
-
Click Persistence and set it to ON.
-
From the Settings panel, ensure that SQL statement execution data is selected.
This tells DSM to collect historical data about executed SQL statements and store it in the
repository database.
-
Expand SQL statement execution data and select Package cache data (Top N).
This tells DSM to collect historical data from the Db2® package cache and
store it in the repository database.
-
Accept the default values or set ones that reflect your own business needs, for the following
properties:
- Collect and persist data every X minutes: indicates the number of minutes between
historical SQL monitoring cycles (default value is 5 minutes)
- Number of SQL statements with the highest values for a metric to capture: indicates the
'N' value used to capture the 'Top N most interesting' SQL statements for each metric.
- Keep data for X days: indicates the number of days that DSM will keep the data in
the repository database before removing it.
- Normalize captured SQL statements: when selected, this feature replaces literal values
entered dynamically into captured SQL statements with question mark (?) symbols, to reduce the
potentially infinite number of SQL statements down to a manageable amount.
-
Click Save.
Historical information about executed SQL statements can now be collected by DSM for the
connected database.