This chapter describes the system monitoring plug-in for IBM DB2 Database and provides a list of available features. Review the summary of prerequisites required before configuring IBM DB2 Database for monitoring by Enterprise Manager Cloud Control.
The following topics are provided:
The System Monitoring Plug-in for IBM DB2 Database extends Oracle Enterprise Manager Cloud Control to add support for managing IBM DB2 Universal Database (UDB) for Linux, UNIX, and Windows (LUW) database instances. By deploying the plug-in in your Cloud Control environment, you gain the following management features:
Monitor DB2 Database instances.
Gather configuration data and track configuration changes for DB2 database instances.
Raise alerts and violations based on thresholds set on monitored targets and configuration data.
Provide rich, out-of-box reports based on the gathered data.
Support monitoring by a remote Agent. Local Agent is an agent running on the same host as the DB2 database. Remote Agent is an agent running on a host that is different from the host where DB2 database is running.
Collect and display top SQL statements and their related statistics, including CPU Time and Execution Count, of your IBM DB2 Database.
Collect and display information regarding the top Lock Wait Events in IBM DB2, including top Wait Count by Table and top Wait Times.
Utilization of Cloud Control jobs to start and stop the IBM DB2 database. These jobs are not only accessible from the Cloud Control Jobs Library but also from the IBM DB2 plug-in's UI home page.
Expose vital IBM DB2 Database metrics in the form of easy-to-use charts and tables.
This release of the IBM DB2 Database plug-in for Oracle Enterprise Cloud Control 12c includes many new features for better visibility into your IBM DB2 environment. Highlighted below are some of the new features included in this release:
The IBM DB2 Database plug-in for Oracle Enterprise Manager Cloud Control 12c has been updated to be current with the latest release of IBM DB2 Databases. This includes the added support for IBM DB2 9.7, 10.0, and 10.5.
IBM DB2's High Availability Disaster Recovery (HADR) functionality allows for currency support with the addition of monitoring metrics.
The user interface has been updated to add a Performance page and add a new link to the Home page.
The Home page (Figure 1-1) has been enhanced with the addition of a link in the Summary section to the Performance page. This has enabled more efficient navigation throughout the plug-in.
The all-new Performance page (Figure 1-2) has been added to the plug-in to give greater insight into the monitored IBM DB2 key performance indicators (KPI's) over a selectable time range. This includes Cache and Connection KPI's, Storage and IO KPI's and SQL Execution KPI's.
This release adds three out-of-the-box monitoring templates to streamline configuration of your IBM DB2 Database. This includes Basic, I/O and Lock monitoring templates that you can use depending on your needs.
Also, this release enables additional metric thresholds (Figure 1-4) to increase user control of your IBM DB2 Database. This includes thresholds for Agent Monitoring, Database Monitoring, Lock Waits, Database Health metrics, and many more.
In this release Information Publisher Reports included in the previous release of the IBM DB2 Plug-in have been migrated to BI Publisher Reports. BI Publisher Reports eliminate complexity and simplify report development and maintenance.
See IBM DB2 Database Plug-in Reports and Metrics for more information on using these reports.
The plug-in supports monitoring of IBM DB2 Universal Database (LUW) on all the platforms where IBM DB2 Universal Database can be installed.
The IBM DB2 Database plug-in supports the following versions of products:
Enterprise Manager Cloud Control 12c:
The plug-in is certified for the latest release of Oracle Enterprise Manager Cloud Control 12c Release 5 (184.108.40.206.0) (Oracle Management Server (OMS) and Oracle Management Agent).
For the previous version of Enterprise Manager (220.127.116.11.0), you should:
Upgrade the OMS to version 18.104.22.168.3 by installing patch 20392036.
Upgrade the Management Agent to version 22.214.171.124.9 by installing patch 20950034.
These patches are available for download from My Oracle Support:
Version 9.1, 9.5, 9.7, 10.1, and 10.5 of single-partition IBM DB2 Universal Database (UDB) for Linux, UNIX, and Windows (LUW).
IBM DB2 configured for High Availability and Disaster Recovery (HADR).
The following prerequisites must be met before you can use the plug-in:
Install the following:
Enterprise Manager 12c Cloud Control Release 4 (126.96.36.199.0) or higher (Oracle Management Service and Oracle Management Agent). To upgrade to this version, install patch 20392036, available from My Oracle Support (
Install the Inventory and Usage Patch (20692416), available from My Oracle Support (
IBM DB2 Universal JDBC Type 4 driver for IBM DB2 Database (see Setting Up the JDBC Driver)
IBM DB2 Universal Database
Create a suitable operating system user to access the table functions used in IBM DB2. For information about creating a user, see Using a Suitable Operating System User and Assigning Authorities and Privileges.
To avoid metric collection errors for Database Monitoring metrics, create the table
STMG_DBSIZE_INFO. For more information, see Configurations Required for Avoiding Metric Collection Errors for Database Monitoring Metrics.
To configure your Management Agent to generate alerts using the IBM DB2 Diagnostic Log file (
db2diag.log), then do the following:
Define your match patterns in the
Diag_log_file_match_pattern_file.txt file that is present in
Define your ignore patterns in the
Diag_log_file_no_match_pattern_file.txt file that is present in
DIAG_PATH configuration parameter of the database manager (instance) to correspond to the monitored IBM DB2 database.
For performance reasons, you should set a maximum diagnostic log file size of 100 MB when this metric is enabled. You can set the maximum file size using the command:
db2 update dbm cfg using diagsize 100
Based on the patterns defined in the two files, the System Monitoring Plug-in for IBM DB2 parses the Diagnostic Log file and generates alerts for the satisfied conditions. First, the plug-in validates the two files to see if any patterns are defined. If no patterns are defined, then the plug-in does not parse the Diagnostic Log file. If matching patterns are not defined, but ignore patterns are defined, then the plug-in parses every entry in the Diagnostic Log file and checks if ignore patterns are satisfied. If matching patterns are also defined, then the plug-in first parses only those entries that satisfy the matching patterns, and then for those satisfied entries, the plug-in checks if ignore patterns are satisfied.
Also, if multiple log entries having the same function name are encountered in a collection, then only one alert is generated to represent the function name. This alert is based on the last log entry with a common function name, present in the Diagnostic Log file.
Note:This feature is supported only for local monitoring, that is, when the IBM DB2 database on a host is monitored by an Oracle Management Agent that is running on the same host.
In the IBM DB2 Database SQL Statement Performance and IBM DB2 Database Applications Lock Performance reports and the Agent Monitoring metric, in order to see the SQL statement text along with the application name, enable the instance configuration parameter
DFT_MON_STMT. Otherwise, you may not see any data in the column.
As part of JDBC URL, either IP Address or host name can be provided. Ensure that the host name can be resolved consistently on the network. Standard TCP tools such as "nslookup" and "traceroute" can be used to verify the host name. Validate using the following commands on Management Agent where plug-in is deployed:
nslookup <host name>
This returns the IP address and fully qualified host name.
This returns the IP address and fully qualified host name.
The JDBC driver is available from IBM, and consists of the following files that the Agent must be able to access:
To set up the
AGENT_BASE_DIR directory for the IBM DB2 Universal Type 4 JDBC driver:
If it does not already exist, create the directory
Copy the three JDBC driver files into the directory
Note:If you do not have access to or cannot find your
db2jcc.jardriver, you can download a copy of it from IBM's support site:
You can deploy the plug-in to an Oracle Management Service instance using the Enterprise Manager Cloud Control console, or using the Enterprise Manager Command-Line Interface (EMCLI). While the console enables you to deploy one plug-in at a time, the command line interface mode enables you to deploy multiple plug-ins at a time, thus saving plug-in deployment time and downtime, if applicable.
See the Managing Plug-ins chapter in the Oracle Enterprise Manager Cloud Control Administrator's Guide for instructions on deploying the plug-in:
The Self Update feature allows you to expand Enterprise Manager's capabilities by updating Enterprise Manager components whenever new or updated features become available. Updated plug-ins are made available via the Enterprise Manager Store, an external site that is periodically checked by Enterprise Manager Cloud Control to obtain information about updates ready for download. See the Updating Cloud Control chapter in the Oracle Enterprise Manager Cloud Control Administrator's Guide for steps to update the plug-in:
See the Managing Plug-ins chapter in the Oracle Enterprise Manager Cloud Control Administrator's Guide for steps to undeploy the plug-in: