Graphical Utilities for IBM DB2 ®  Monitoring Luciano Alfonsin
Agenda <ul><li>Data Studio Health Monitor </li></ul><ul><li>Optim Performance Manager </li></ul><ul><li>Workload Manager C...
1. Data Studio Health Monitor <ul><li>Is a very simple web based monitoring solution for your DB2 for Linux, UNIX and Wind...
1. Data Studio Health Monitor 1.2 Architecture Browser (IE/Firefox) Repository DB2 LUW ESE Data Studio Health Monitor Cons...
1. Data Studio Health Monitor <ul><li>Download the Data Studio Health Monitor installation image to a temporary  directory...
1. Data Studio Health Monitor <ul><li>Write these web address on your browser: </li></ul><ul><ul><li>http://localhost:1108...
1. Data Studio Health Monitor 1.5 Setup <ul><li>Users Mode (Repository Database): </li></ul><ul><ul><li>To run DSHM on a m...
1. Data Studio Health Monitor <ul><li>Once you have logged into the DSHM application please press the button “Manage Datab...
1. Data Studio Health Monitor <ul><li>From the module “Manage Database Connections” of the application DSHM we can View, T...
1. Data Studio Health Monitor <ul><li>Once you have logged into the DSHM application please press the button “Task Manager...
1. Data Studio Health Monitor <ul><li>It provides instant visual indicators of the health of all monitored databases based...
1. Data Studio Health Monitor <ul><li>For any alert displayed on the Health Summary, you can display more details about th...
1. Data Studio Health Monitor <ul><li>Alert List:  Shows a historical summary of alerts in our database system. </li></ul>...
1. Data Studio Health Monitor <ul><li>Current Application Connections:  Displays active connections to the database, their...
1. Data Studio Health Monitor <ul><li>Current Table Spaces:  Show tablespaces created, their type, state, utilization rate...
2. Optim Performance Manager <ul><li>Web based tool for database administrators (DBAs) to use to monitor performance indic...
2. Optim Performance Manager 2.2 Architecture Browser (IE/Firefox) Adobe Flex Performance Expert Client Repository DB2 LUW...
2. Optim Performance Manager 2.2 Architecture Browser (IE/Firefox) Adobe Flex OPM Extended Insight Client Repository DB2 L...
2. Optim Performance Manager <ul><li>Download the Optim Performance Manager installation image to a temporary directory on...
2. Optim Performance Manager <ul><li>Write one of these two web address on your browser: </li></ul><ul><ul><li>http://loca...
2. Optim Performance Manager 2.5 Setup <ul><li>Users Mode (Repository Database): </li></ul><ul><ul><li>To run DSHM on a mu...
2. Optim Performance Manager <ul><li>Once you have logged into the OPM application please press the button “Manage Databas...
2. Optim Performance Manager <ul><li>From the module “ Manage Database Connections ” of the application IBM Optim Performa...
2. Optim Performance Manager <ul><li>Once you have logged into the OPM application please press the button “Task Manager” ...
2. Optim Performance Manager <ul><li>Once you have logged into the OPM application please press the button “Task Manager” ...
2. Optim Performance Manager <ul><li>The alert notification allows us to send an mail every time there is a warning on our...
2. Optim Performance Manager <ul><li>After installation, you can directly launch the Web UI and add the databases you want...
2. Optim Performance Manager <ul><li>Exist two types of monitoring authorizations: </li></ul><ul><ul><li>The Can Monitor p...
2. Optim Performance Manager <ul><li>Provides instant visual indicators of the health of all monitored databases based on ...
2. Optim Performance Manager <ul><li>For any alert displayed on the Health Summary, you can display more details about the...
2. Optim Performance Manager <ul><li>Alert List:  Shows a historical summary of alerts in our database system  </li></ul>2...
2. Optim Performance Manager <ul><li>Current Application Connections:  Displays active connections to the database, their ...
2. Optim Performance Manager <ul><li>Current Table Spaces:  Show tablespaces created, their type, state, utilization rate ...
2. Optim Performance Manager <ul><li>Overview:   It shows a summary of all dashboards. </li></ul>2.14 Diagnostic Dashboard...
2. Optim Performance Manager <ul><li>Active SQL:   Identifies and analyzes long-running queries in a certain time frame.  ...
2. Optim Performance Manager <ul><li>Buffer pool and I/O:   Checks and tunes database I/O on the buffer pool, table space,...
2. Optim Performance Manager <ul><li>Extended Insight:   Checks transaction response times of your database applications a...
2. Optim Performance Manager <ul><li>Logging:   Checks and tunes log performance. </li></ul>2.14 Diagnostic Dashboards
2. Optim Performance Manager <ul><li>Locking:   Identifies and analyzes deadlocks, timeouts, and locking conflicts.  </li>...
2. Optim Performance Manager <ul><li>Memory:   Checks the DB2 instance and database memory consumption. Determines whether...
2. Optim Performance Manager <ul><li>System:   Checks system resources.  </li></ul>2.14 Diagnostic Dashboards
2. Optim Performance Manager <ul><li>Workload:   Get an overview of workload utilization. </li></ul>2.14 Diagnostic Dashbo...
2. Optim Performance Manager   <ul><li>Optim Performance Manager provides you an interactive way to generate differents re...
2. Optim Performance Manager   2.16 DSHM vs. OPM   DSHM OPM License Free Paid Disk Space 300 MB 2450 MB Memory 1 GB 3 GB O...
2. Optim Performance Manager   Video Demo
3. Workload Manager Configuration Tool <ul><li>Is a workload management feature that gives you deeper insight into how you...
3. Workload Manager Configuration Tool <ul><li>Graphical user interface, included with OPM, used to configure and monitor ...
3. Workload Manager Configuration Tool <ul><li>First, from the OPM Menu bar click Manage Database Connection </li></ul><ul...
3. Workload Manager Configuration Tool <ul><li>First, from the OPM Menu bar click Task Manager and select WLM Configuratio...
3. Workload Manager Configuration Tool <ul><li>From WLM Configuration tool you can plot graphs of the Workload Manager mon...
3. Workload Manager Configuration Tool Video Demo
4. Optim Query Tuner <ul><li>Optim Query Tuner cuts cost and improves performance by providing expert advice on writing hi...
4. Optim Query Tuner <ul><li>Download the Optim Query Tuner installation image.  </li></ul><ul><li>https://www-304.ibm.com...
4. Optim Query Tuner 4.3 Configuring a DB2 database for  query tuning <ul><li>Configure your database to be tuned as follo...
5. Activity Monitor <ul><li>Activity Monitor provides a set of predefined reports, based on a specific subset of monitor d...
5. Activity Monitor <ul><li>Choose the database. </li></ul>5.2 How to configure reports 1 <ul><li>Select a monitoring task...
6. Event Analyzer <ul><li>Event analyzer provides a graphical interface to the information or data elements gathered by ev...
7. Health Center <ul><li>Assists database administrators by alerting them to potential problems and providing recommendati...
7. Health Center <ul><li>Select the instance whose health indicators you want to configure.  </li></ul><ul><li>From the Se...
8. Memory Visualizer <ul><li>Helps database administrators to monitor the memory-related performance of an instance and al...
9. Indoubt  Transaction Manager <ul><li>Included Free in DB2 </li></ul><ul><li>Helps to resolve transactions left in an in...
10. Summary <ul><li>Data Studio Health Monitor </li></ul><ul><li>Optim Performance Manager </li></ul><ul><li>Health Center...
11. Resources <ul><li>IBM Data Studio Information Center: </li></ul><ul><ul><li>http://publib.boulder.ibm.com/infocenter/i...
Upcoming SlideShare
Loading in …5
×

Graphical Utilities For IBM DB2 Monitoring

1,624 views

Published on

Graphical Utilities for IBM DB2 Monitoring

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,624
On SlideShare
0
From Embeds
0
Number of Embeds
19
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Notes: Detailed benefits of DHSM: -Connect to and monitor multiple databases across different platforms from a single console. -Visualize warnings and problem areas instantly. -Configure alert thresholds for health indicators, such as data server status and storage space utilization. -Examine the details when problems occur with key health indicators. -Filter the display of alerts by time period, database, or alert type. -Collect and retain alert history for up to seven days. -Display alert statistics by time period, database, or alert type. -View information about database health-related characteristics, such as applications, utilities, and storage. -Track information such as rows read and idle time for currently connected applications. -Verify that applications can access the database. -Force applications to enhance system performance. -View information such as state, total size, and current utilization for the table spaces of your databases. -View the status of utilities such as RUNSTATS or BACKUP that are currently operating on the database. -View the most recent system log entries, or specify a number of log entries to show for a point in time. -Get notified by email or SNMP when alerts occur for your databases. -Configure the notifications by alert type, severity, and database. -Select and configure a repository database that contains a list of your database connections and the alert-related user privileges for these databases. -Configure web console and alert setting privileges across your databases at a user or group level. -Open Data Studio Health Monitor within the Data Studio or Optim Database Administrator client as an embedded web console or in a stand-alone web browser. -Use Data Studio Health Monitor in single-user mode to test the product in a controlled environment, or in multi-user mode to use monitoring features across your production servers.
  • Notes: DHSM Architecture components (Based on Optim Performance Manager): -Repository Server: Establishes connection to monitored DB2 database and mainly uses database snapshot commands or DB2 event monitors to collect database availability data. Stores this collected data in its repository database. -Console Server: Runs as an application in DHSM Engine environment and connects to DHSM repository database. Also allows DHSM users to use a web interface to retrieve this data and configure the monitoring behavior of DHSM. -Repository database: DB2 Enterprise V9.5 database that is included in the OPM product packaging. Stores database performance data collected by the repository server from the monitored DB2 databases and database application data collected by DHSM.
  • Notes: Installation directory: -Linux and UNIX Administrative user: /opt/IBM/DSHM Non-administrative user: $HOME /DSHM -Windows: Administrative user: C:\\Program Files\\IBM\\DSHM Non-administrative user: %USERPROFILE% \\IBM\\DSHM To upgrade an existing version of Data Studio Health Monitor select the installation directory of the earlier product in the installer. Installation Logs: - Linux and UNIX: DSHM_installation_dir /logs/DSHMinstall_summary_ timestamp .log DSHM_installation_dir /logs/DSHMinstall_details_ timestamp .log - Windows: DSHM_installation_dir \\logs\\DSHMinstall_summary_ timestamp .log DSHM_installation_dir \\logs\\DSHMinstall_details_ timestamp .log
  • Notes: - The default port number 11080 but it is also possible to use any unoccupied port in the range of 1024 to 65534 . - The currently configured port number is retained when DSHM is upgraded from an earlier version.
  • Notes: Look at slide 19 for further information about the description of types of privileges.
  • Notes: Alert Configuration (Extended procedure): -In the Task Manager of the web console, under Configuration, select Health Alerts Configuration. -Select a database for which to view and edit the configurable alert parameters. -Enable or disable database health monitoring for the database. To display alert information for the database in the Health Summary and Alert List, database health monitoring must be enabled. Enable health monitoring by selecting the Monitor database health check box. -Set the refresh rate for the database. The refresh rate controls how often the database is checked for conditions that might trigger alerts. -Configure alerts for the database. Select an alert type and click Edit. If prompted, sign in as a user with the ability to manage alerts on the database. Enable or disable the alert for the database, and configure the critical and warning thresholds for the alert type.
  • Notes: Dashboards: Current Application Connections: Shows all connections to the database. Current Table Spaces: Shows the current table spaces on screen and the d isk space consumption for each one of them.
  • Notes: Dashboards: Current Application Connections: Shows all connections to the database. Current Table Spaces: Shows the current table spaces on screen and the d isk space consumption for each one of them.
  • Notes: Dashboards: Current Application Connections: Shows all connections to the database. Current Table Spaces: Shows the current table spaces on screen and the d isk space consumption for each one of them.
  • Notes: Dashboards: Current Application Connections: Shows all connections to the database. Current Table Spaces: Shows the current table spaces on screen and the d isk space consumption for each one of them.
  • Notes: Optim Performance Manager (OPM), formerly known as DB2 Performance Expert, helps organizations to resolve database and database application problems before they impact the business . OPM supports monitoring of DB2 for Linux, UNIX, and Windows V9 databases, including single partition, multi-partition, and pureScale databases. Significant new capability has also been added to a new product offering known as Optim Performance Manager Extended Edition. This new offering includes the base Optim Performance Manager capabilities augmented with the Extended Insight capabilities for end-to-end database monitoring, integration with Tivoli enterprise monitoring solutions, and support for configuring the DB2 Workload Manager capabilities. Capabilities of Optim Performance Manager: -Guided analysis using new web-based health summary and diagnostic drilldowns -Trend analysis using interactive reporting -Rapid deployment for rapid return -Flexible administrative control with monitoring privileges -Enhanced integration to enable end-to-end diagnosis and tuning -Problem prevention using proactive workload monitoring. -Extended insights into more application environments (only in Extended Edition) -Integration with Tivoli enterprise monitoring (only in Extended Edition)
  • Notes: Key components of Optim Performance Manager are as follows: -Repository Server: Establishes connection to monitored DB2 database and mainly uses database snapshot commands and DB2 event monitors to collect database performance data. Stores this collected data in its repository database. -Console Server: Runs as an application in WebSphere Application Server environment and connects to Optim Performance Manager repository database. Also allows Optim Performance Manager users to use a web interface to retrieve this data and configure the monitoring behavior of Optim Performance Manager. - Repository database: DB2 Enterprise V9.5 database that is included in the OPM product packaging. Stores database performance data collected by the repository server from the monitored DB2 databases and database application data collected by OPM Extended Insight client. IBM® recommends that you install Optim Performance Manager on computers that are separate from your production database server and database client computers.
  • Notes: Optim Performance Manager Extended Insight consists of following components: -Optim Performance Manager Extended Insight client: Collocated with the database application. The Extended Insight client hooks into JDBC or CLI drivers, intercepts database traffic for the monitored DB2 database and collects response time data about transactions and SQL statements. This data is then periodically forwarded to the Extended Insight monitoring server, which stores it in the repository database. -Optim Performance Manager Extended Insight controller: Embedded in the repository server of the Optim Performance Manager. The Extended Insight controller is a global controller that listens on a port for Extended Insight clients accessing the controller. It also knows about all available Extended Insight monitoring servers. When an application that you monitor with Extended Insight client starts and connects to the monitored database, the Extended Insight client accesses the controller and asks for the Extended Insight monitor server port which is listening for the Extended Insight data from the monitored database. From that point on, the Extended Insight client sends the collected data to the Extended Insight monitor server for the monitored database over the communicated monitor server port. You specify the port number of the controller when you activate ExtendedInsight on Optim Performance Manager and when you configure Extended Insight clients. On both systems the port number is saved in the pdq.properties file. -Optim Performance Manager Extended Insight monitoring server: Embedded in the repository server of the Optim Performance Manager. There is one Extended Insight monitoring server available per monitored database for which Extended Insight monitoring is configured. Each monitoring server is listening on a dedicated port for response time data about transactions and SQL statements from Extended Insight clients. Extended Insight clients first access the Extended Insight controller to obtain the port number of the responsible Extended Insight monitoring server. After that Extended Insight clients send the collected response time data periodically to the Extended Insight monitoring server which receives the data and stores the data in the repository database. By default the port number of each Extended Insight monitoring server is determined dynamically. If you prefer fixed port numbers, you can specify them when you configure Extended Insight monitoring from Optim Performance Manager web console. -Optim Performance Manager Extended Insight metric collectors: Embedded in the repository server of the Optim Performance Manager. There is one set of metric collectors available per monitored database for which Extended Insight monitoring is configured. The metric collectors collect additional information about the transactions and SQL statements directly from the monitored database, combine the collected data with the data which Extended Insight monitoring server receives from Extended Insight clients and store the data in the repository database. The metric collectors start unit of work or package cache event monitors (DB2 9.7 or above) or use the dynamic SQL snapshots (DB2 9.5 or lower) to collect additional information about the transactions and SQL statements. The additional information consists of time distributions for transaction and SQL statement executions on the database and complete statement text. By combining this data with data received from Extended Insight client you get an end-to-end response time distribution of transactions and SQL statements. Further information at: OPM: http://publib.boulder.ibm.com/infocenter/idm/v2r2/topic/com.ibm.datatools.perfmgmt.installconfig.doc/pm_topology.html OPM EI: http://publib.boulder.ibm.com/infocenter/idm/v2r2/topic/com.ibm.datatools.perfmgmt.installconfig.doc/opmei_basic_architecture.html IBM® recommends that you install Optim Performance Manager on computers that are separate from your production database server and database client computers.
  • Installation directory: -Linux and UNIX Administrative user: /opt/IBM/OPM Non-administrative user: $HOME /OPM -Windows: Administrative user: C:\\Program Files\\IBM\\OPM Non-administrative user: %USERPROFILE% \\IBM\\OPM Installation Logs: -AIX: /var/adm/sw -linux: /var/log -Solaris: In the home directory of the root user -Windows: %USERPROFILE% (For example: C:\\Documents and Settings\\Administrator) If after installation Optim Performance Manager is not running, do this: 1) Start WebSphere Application Server: -Linux and UNIX: From the OPM_installation_dir /bin directory, run the command WASstart.sh -Windows: From the OPM_installation_dir \\bin directory, run the command WASstart.bat 2)Start Optim Performance Manager: -Linux and UNIX: From the OPM_installation_dir /RepositoryServer/bin directory, run the command ./pestart -Windows: From the Start menu, click All Programs &gt; IBM Optim &gt; IBM Optim Performance Manager - DB2_instance_name &gt; Start the Repository Server. 3) Luch the OPM Web Console
  • Notes: Look at slide 19 for further information about the description of types of privileges.
  • Notes: Health Summary: A new web-based user interface makes it easier to get performance information by removing reliance on a workstation client. A health summary view provides instant visual indicators of the health of all monitored databases based on key performance indicators. The health summary view also provides visual alerts for problematic areas, such as I/O, memory, logging, workload, sorting, and locking. From any alert, you can display more details about the alert and then drill down to detailed diagnostic dashboards for each of these areas. These dashboards provide important performance metrics and running SQL statements for immediate problem detection. Alert Configuration (Extended procedure): -In the Task Manager of the web console, under Configuration, select Health Alerts Configuration. -Select a database for which to view and edit the configurable alert parameters. -Enable or disable database health monitoring for the database. To display alert information for the database in the Health Summary and Alert List, database health monitoring must be enabled. Enable health monitoring by selecting the Monitor database health check box. -Set the refresh rate for the database. The refresh rate controls how often the database is checked for conditions that might trigger alerts. -Configure alerts for the database. Select an alert type and click Edit. If prompted, sign in as a user with the ability to manage alerts on the database. Enable or disable the alert for the database, and configure the critical and warning thresholds for the alert type.
  • Notes: Dashboards: -Active SQL: Identifies and analyzes long-running queries in a certain time frame. You can stop a query. If Optim Query Tuner is installed, you can launch it in context to do more tuning. -Buffer pool and I/OChecks and tunes database I/O on the buffer pool, table space, and table level. -Extended Insight: Checks transaction response times of your database applications and determines where and why the response time was spent. If Optim Query Tuner is installed, you can launch it in context to do further tuning. -Logging: Checks and tunes log performance.LockingIdentifies and analyzes deadlocks, timeouts, and locking conflicts. If Optim Query Tuner is installed, you can launch it in context to do further tuning. -Memory: Checks the DB2 instance and database memory consumption. Determines whether memory should be increased or decreased. -System: Checks system resources. If you have Optim Performance Manager Extended Edition, you could launch into Tivoli Monitoring (if installed) to get more detailed information about system resources. -Utility: Plans execution of utilities and identifies failures. -Workload: Gives an overview of workload utilization.
  • Notes: Dashboards: Current Application Connections: Shows all connections to the database. Current Table Spaces: Shows the current table spaces on screen and the d isk space consumption for each one of them.
  • Notes: Dashboards: Current Application Connections: Shows all connections to the database. Current Table Spaces: Shows the current table spaces on screen and the d isk space consumption for each one of them.
  • Notes: Dashboards: Current Application Connections: Shows all connections to the database. Current Table Spaces: Shows the current table spaces on screen and the d isk space consumption for each one of them.
  • Notes: Available reports: -Top n SQL statement: The Dynamic SQL Statement Detail report shows an analysis of a specific SQL statement. The report includes detailed information, such as the complete statement text, general statement relation information, response time analysis, sort performance, I/O activity, and buffer pool activity. You can use the resource usage information to identify problems with insufficient system resources or you can run Optim Query Tuner to analyze problems with the access plan or to evaluate inadequate optimizer statistics. -Connected applications: The Database Connection Detail report shows information about the selected connection, such as complete identification details, timing information, SQL activity, locks, cache, buffer pool, sorts, and agent-related activity. – Database and database manager configurations: The Database Manager Configuration report shows an overview of the current database manager configuration and which parameters have been changed in a given time frame to help you determine whether a problem might have been caused by configuration changes. The Database Manager Configuration report contains details about system management, system monitoring parameters, instance administration, capacity management, and communications. -Disk space consumption for table spaces, including growth rate: The Disk Space Consumption Detail report shows details about table space configuration, container details, ranges, table space layout, and active tables under a specific table space. The report includes information for the table space, such as general information about the table space, size of the table space, storage information, and the variation in size of the table space over time. In a DPF environment, the Disk Space Consumption Detail report shows the disk space for each partition so that you can check for potential data skew problems.
  • Notes: Play the video call ed OPM_Demo.mp4.
  • Notes: Workload Manager Review: A key capability to managing workload prioritization and resource utilization in DB2 for Linux, UNIX, and Windows is the DB2 workload manager (WLM). Available as part of the DB2 Advanced Enterprise Server Edition, DB2 workload manager helps automatically manage workloads according to your priorities. This helps to manage resource utilization, especially in those cases where there are widely varying workloads. An obvious benefit of using DB2 workload manager is to prevent problems caused by low-priority work or rogue queries consuming system resources such that higher-priority work cannot get the resources needed to meet service level agreements. The tooling solution for configuring DB2 workload manager is part of Optim Performance Manager, which is also included in the DB2 Advanced Enterprise Server Edition. Service superclasses enable you to take a first cut at dividing resources at a higher level than that represented by workloads or users. You can also see information you need in context while making configuration decisions.
  • Notes: Workload Manager Review: A key capability to managing workload prioritization and resource utilization in DB2 for Linux, UNIX, and Windows is the DB2 workload manager (WLM). Available as part of the DB2 Advanced Enterprise Server Edition, DB2 workload manager helps automatically manage workloads according to your priorities. This helps to manage resource utilization, especially in those cases where there are widely varying workloads. An obvious benefit of using DB2 workload manager is to prevent problems caused by low-priority work or rogue queries consuming system resources such that higher-priority work cannot get the resources needed to meet service level agreements. The tooling solution for configuring DB2 workload manager is part of Optim Performance Manager, which is also included in the DB2 Advanced Enterprise Server Edition. Service superclasses enable you to take a first cut at dividing resources at a higher level than that represented by workloads or users. You can also see information you need in context while making configuration decisions.
  • Notes: These graphics are just examples of what can be done graphically from WLM Configuration Tool inside OPM. The graphics and the analyzed variables could be different according to the configuration of WLM.
  • Notes: Play the video call ed WLM_Demo.mp4.
  • Notes: IBM Optim Query Tuner cut costs and improve performance by advising developers on writing high-quality queries during development. Also provides a facility for identifying and tuning poorly performing queries that have been deployed into production. With the query tuner client you can: View formatted query text. View and compare access plan graphs. Get statistics recommedations. Generate query reports. Capture query environments With Optim Query Tuner for DB2 for LUW: View queries with statistics annotations Get index recommendations. Get query writing recommendations. Get access path recommendations.
  • Notes: It is important to remember this: 1 - You need first to install the OQT Server Configuration Kit (license) on the database server. 2 - Then you can install and configure the OQT client. If no license is installed on the server, OQT will show a message saying that we can not proceed with the optimization.
  • Notes: Events information available on Event Analyzer: -Database: Statistics on database operation, tables, and table spaces. -Buffer pools: Statistics on operations that use buffer pools. -Tables: Overflows, access information, and rows written and read. -Table spaces: Details on buffer pool usage. -Deadlocks: Information on resources and applications involved. -Connections: Sorts and SQL statement counts. -Transactions: Rows written and read, CPU times, and start and stop times. -Statements: Statement identification information and statistics on statement operations. You can view and analyze event information after the event monitor has stopped and written its collected data elements to its target tables.
  • Notes: Health Monitor: It is a good practice to run the DB2 health monitor which is a DB2 tool which monitors the health of an instance and active databases. The health monitor also has the capability to alert a database administrator (DBA) of potential system health issues. The health monitor proactively detects issues that might lead to hardware failures, or to unacceptable system performance or capability. The proactive nature of the health monitor enables users to address an issue before it becomes a problem that affects system performance. The health monitor checks the state of your system using health indicators to determine if an alert should be issued. Preconfigured actions can be taken in response to alerts. The health monitor can also log alerts in the administration management-by-exception model to free up valuable DBA resources by generating alerts to potential system health issues without requiring active monitoring. The health monitor gathers information about the health of the system using interfaces that do not impose a performance penalty. It does not turn on any snapshot monitor switches to collect information. To get to DB2&apos;s Health Center on Windows, go to Start &gt; All Programs &gt; IBM DB2 &gt; Monitoring Tools &gt; Health Center . To get to DB2&apos;s Health Center on UNIX, log on as the DB2 user, like db2inst1, and run this command: db2cc . Before running the command, make sure you source the profile: . / home/&lt;instance_owner&gt;/sqllib/db2profile.
  • Notes: Memory Visualizer: The Memory Visualizer is a DB2 tool that helps database administrators to monitor the memory-related performance of an instance and all of its databases organized in a hierarchical tree. With this application you can: -View or hide data in various columns on the memory utilization of selected components for a DB2 instance and its databases. -Change settings for individual memory components by updating configuration parameters. -Load performance data from a file into a Memory Visualizer window. -Save the performance data
  • Graphical Utilities For IBM DB2 Monitoring

    1. 1. Graphical Utilities for IBM DB2 ® Monitoring Luciano Alfonsin
    2. 2. Agenda <ul><li>Data Studio Health Monitor </li></ul><ul><li>Optim Performance Manager </li></ul><ul><li>Workload Manager Configuration Tool (OPM) </li></ul><ul><li>Optim Query Tuner </li></ul><ul><li>Activity Monitor </li></ul><ul><li>Event Analyzer </li></ul><ul><li>Health Center </li></ul><ul><li>Memory Visualizer </li></ul><ul><li>Indoubt Transaction Manager </li></ul><ul><li>Summary </li></ul><ul><li>Resources </li></ul>
    3. 3. 1. Data Studio Health Monitor <ul><li>Is a very simple web based monitoring solution for your DB2 for Linux, UNIX and Windows databases. </li></ul>1.1 Overview Benefits! <ul><li>Includes a browser-based client, but it is also possible to launch it from the Data Studio or Optim Database Administrator Eclipse client. </li></ul><ul><ul><li>View system health at a glance. </li></ul></ul><ul><ul><li>Drill down into alerts to understand problems. </li></ul></ul><ul><ul><li>Browse alert history. </li></ul></ul><ul><ul><li>View alert-related information to help solve the underlying problems. </li></ul></ul><ul><ul><li>Manage current application connections. </li></ul></ul><ul><ul><li>View the current state of the table spaces. </li></ul></ul><ul><ul><li>View the status of utilities operating on your database. </li></ul></ul><ul><ul><li>Manage user access to health monitoring across your databases. </li></ul></ul><ul><li>Monitors database availability, number of connected users and free space. </li></ul>Remember, DSHM does not monitor performance, it monitors the availability and the health status of the database server.
    4. 4. 1. Data Studio Health Monitor 1.2 Architecture Browser (IE/Firefox) Repository DB2 LUW ESE Data Studio Health Monitor Console Server Repository Server Monitored Databases TCP/IP HTTP RS API Insert Maintain - Connections - Tablespaces Configuration, Dashboards, Alerts, Status DSHM Engine IBM Data Studio
    5. 5. 1. Data Studio Health Monitor <ul><li>Download the Data Studio Health Monitor installation image to a temporary directory on the target computer and then extract it. </li></ul><ul><li>https://www.ibm.com/services/forms/preLogin.do?source=swg-idshm </li></ul><ul><li>Install DSHM by using: </li></ul><ul><ul><li>Installation Wizard </li></ul></ul><ul><ul><li>Console mode </li></ul></ul><ul><ul><li>Response file (silent installation) </li></ul></ul>1.3 Installation Free download! System Requirements DSHM Disk Space 300 MB Memory 1 GB Operative System AIX, Linux & Windows. Data Server DB2 v9.1 or later. Web Browser Mozilla Firefox 3.6.x or later. Microsoft Internet Explorer 7 or later.
    6. 6. 1. Data Studio Health Monitor <ul><li>Write these web address on your browser: </li></ul><ul><ul><li>http://localhost:11080/datatools/console/ </li></ul></ul><ul><li>Or from the Start menu, click All Programs > IBM Data Studio > IBM Data Studio Health Monitor </li></ul>1.4 Launching Data Studio Health Monitor <ul><li>Enter your username and password (the one which was chosen during the installation) </li></ul>The default port of the application is 11080, but it can be set manually during the installation. http://IP_address:port_number/datatools/console
    7. 7. 1. Data Studio Health Monitor 1.5 Setup <ul><li>Users Mode (Repository Database): </li></ul><ul><ul><li>To run DSHM on a multi-user mode, create and configure a DB2 database to use it as a configuration repository in order to store information about database connections, alert configurations, and to manage user authentication. </li></ul></ul><ul><ul><li>To run DSHM on a single-user mode do not create the repository database and the application will store all the information locally on the computer where you installed it. </li></ul></ul><ul><li>Console Security: </li></ul><ul><ul><li>Let you select a security method for authenticating users of the web console. </li></ul></ul><ul><ul><li>There are three types of authentication methods: </li></ul></ul><ul><ul><ul><li>Repository database authentication. </li></ul></ul></ul><ul><ul><ul><li>Web container-managed authentication. </li></ul></ul></ul><ul><ul><ul><li>No user authentication. </li></ul></ul></ul><ul><li>Manage Privileges: </li></ul><ul><ul><li>There are two types of privileges for users: </li></ul></ul><ul><ul><ul><li>The Can Monitor privilege. </li></ul></ul></ul><ul><ul><ul><li>The Can Manage Alerts privilege. </li></ul></ul></ul>
    8. 8. 1. Data Studio Health Monitor <ul><li>Once you have logged into the DSHM application please press the button “Manage Database Connections” in order to add a New Connection. </li></ul>1.6 Adding a new Database Connection <ul><li>Then press the button “Add” to perform the action required. </li></ul><ul><li>Finally, complete the grid with all the information needed. (Marked with a red asterisk). </li></ul>Add a database to be monitored with just two clicks !!!
    9. 9. 1. Data Studio Health Monitor <ul><li>From the module “Manage Database Connections” of the application DSHM we can View, Test, Add, Delete, Modify, Import or Export database connections as often as necessary and also configure the availability monitoring. </li></ul>1.7 Checking Database Connections Quick review and modification of the settings for the database connections!
    10. 10. 1. Data Studio Health Monitor <ul><li>Once you have logged into the DSHM application please press the button “Task Manager” and then choose the option “Health Alerts Configuration”. </li></ul><ul><li>Select a database to view and then edit the configurable alert parameters. </li></ul>1.8 Health Alerts Configuration <ul><li>To edit alerts, you must have the Can Manage Alerts privilege on the database. </li></ul>
    11. 11. 1. Data Studio Health Monitor <ul><li>It provides instant visual indicators of the health of all monitored databases based on key availability indicators and visual alerts for problematic areas such as connections, storage and recovery. </li></ul><ul><li>Alerts parameters can be also set from the button &quot;Configure Alerts&quot; or by clicking the icon on the specific area analyzed inside the health monitor. </li></ul>1.9 Health Summary
    12. 12. 1. Data Studio Health Monitor <ul><li>For any alert displayed on the Health Summary, you can display more details about the alert and then drill down to detailed diagnostic dashboards. </li></ul><ul><li>Provide important metrics from the DB2 server status for immediate problem detection in order to provide a solution in a brief period of time. </li></ul><ul><li>Available diagnostic dashboards: </li></ul><ul><ul><li>Alert list. </li></ul></ul><ul><ul><li>Current Application Connections. </li></ul></ul><ul><ul><li>Current Table Spaces. </li></ul></ul><ul><ul><li>Utilities. </li></ul></ul>1.10 Diagnostic Dashboards
    13. 13. 1. Data Studio Health Monitor <ul><li>Alert List: Shows a historical summary of alerts in our database system. </li></ul>1.10 Diagnostic Dashboards
    14. 14. 1. Data Studio Health Monitor <ul><li>Current Application Connections: Displays active connections to the database, their ID, name and status, read and written roads. </li></ul>1.10 Diagnostic Dashboards
    15. 15. 1. Data Studio Health Monitor <ul><li>Current Table Spaces: Show tablespaces created, their type, state, utilization rate and size. </li></ul>1.10 Diagnostic Dashboards
    16. 16. 2. Optim Performance Manager <ul><li>Web based tool for database administrators (DBAs) to use to monitor performance indicators and identify and resolve performance problems in DB2 9 for LUW databases. </li></ul>2.1 Overview Benefits! <ul><li>Optim Performance Manager Extended Insight feature expands monitoring to entire application database system (client, server and network). </li></ul><ul><li>Provides: </li></ul><ul><ul><li>Preconfigured alerts. </li></ul></ul><ul><ul><li>Health summary view. </li></ul></ul><ul><ul><li>Interactive dashboards. </li></ul></ul><ul><ul><li>Delivers end-to-end database and application monitoring. </li></ul></ul><ul><ul><li>Quickly identification of potential problems using interactive and detailed dashboards. </li></ul></ul><ul><ul><li>Integration with the Optim family and Tivoli Composite Application Manager. </li></ul></ul><ul><ul><li>Keeps historical performance metrics for problem prevention, trend analysis, customizable reporting and growth planning. </li></ul></ul><ul><ul><li>Integration with workload management tool to prevent performance problems. </li></ul></ul>Optim Performance Manager helps organizations to identify and resolve database and application performance issues before they impact the business. http://www.redbooks.ibm.com/abstracts/sg247925.html
    17. 17. 2. Optim Performance Manager 2.2 Architecture Browser (IE/Firefox) Adobe Flex Performance Expert Client Repository DB2 LUW ESE Optim Performance Manager Console Server Repository Server DB2 LUW Monitored Databases TCP/IP TCP/IP TCP/IP HTTP RS API Insert Maintain <ul><li>DB2 Attachment </li></ul><ul><li>Snapshots </li></ul><ul><li>DBDB, DBM CFG </li></ul><ul><li>DB2 Connection </li></ul><ul><li>SQL Collection </li></ul><ul><li>Event Monitors </li></ul>Configuration, Dashboards, Alerts, Health All PE v3.2 level functionality Meta, Snapshot, E2E
    18. 18. 2. Optim Performance Manager 2.2 Architecture Browser (IE/Firefox) Adobe Flex OPM Extended Insight Client Repository DB2 LUW ESE Optim Performance Manager Console Server Repository Server DB2 LUW Monitored Databases DRDA TCP/IP Configuration, Extended Insight dashboard Access Insert Maintain <ul><li>DB2 Connection </li></ul><ul><li>SQL Connection </li></ul><ul><li>Event Monitors </li></ul><ul><li>SQL Text </li></ul><ul><li>SQL Metrics </li></ul><ul><li>Tx Metrixs </li></ul><ul><li>Client information </li></ul><ul><li>Tx Metrics </li></ul><ul><li>SQL Metrics </li></ul>HTTP Meta, Snapshot, E2E OPM Console .Net application C/C++ application .Net driver CLI driver OPM EI SAP DataStage Extended Insight Monitor Server Extended Insight Monitor Server Extended Insight controller Metric collectors Metric collectors DRDA OPM Extended Insight Client Java application JCC driver OPM EI OPM Extended Insight Client WAS Cognos SQW TCP/IP <ul><li>Client information </li></ul><ul><li>Tx Metrics </li></ul><ul><li>SQL Metrics </li></ul>DRDA
    19. 19. 2. Optim Performance Manager <ul><li>Download the Optim Performance Manager installation image to a temporary directory on the target computer and then extract it. </li></ul><ul><li>http://www-01.ibm.com/software/data/optim/performance-manager-extended-edition/ </li></ul><ul><li>Install OPM by using: </li></ul><ul><ul><li>Installation Wizard </li></ul></ul><ul><ul><li>Console mode </li></ul></ul><ul><ul><li>Response file (silent installation) </li></ul></ul>2.3 Installation System Requirements OPM Disk Space 2450 MB aprox. Memory 3 GB. Operative System AIX, Solaris, Linux & Windows. Data Server DB2 LUW v 9.1 or later. Application server WebSphere Application Server Version 7.0.0.3 or later. (Included) Web Browser Mozilla Firefox 3.6.x or later, Microsoft Internet Explorer 7 or later. Plugins Adobe Flash Player 9.0.124 or later
    20. 20. 2. Optim Performance Manager <ul><li>Write one of these two web address on your browser: </li></ul><ul><ul><li>http://localhost:9080/optimdatatools/console (Non-Secure console) </li></ul></ul><ul><ul><li>https://localhost:9443/optimdatatools/console (Secure Console) </li></ul></ul>2.4 Launching IBM Optim Performance Manager <ul><li>Enter your username and password (the one which was chosen in the installation) </li></ul>http://IP_address:port_number/optimdatatools/console https://IP_address:port_number/optimdatatools/console
    21. 21. 2. Optim Performance Manager 2.5 Setup <ul><li>Users Mode (Repository Database): </li></ul><ul><ul><li>To run DSHM on a multi-user mode, create and configure a DB2 database to use it as a configuration repository in order to store information about database connections, alert configurations, and to manage user authentication. </li></ul></ul><ul><ul><li>To run DSHM on a single-user mode do not create the repository database and the application will store all the information locally on the computer where you installed it. </li></ul></ul><ul><li>Console Security: </li></ul><ul><ul><li>Let you select a security method for authenticating users of the web console. </li></ul></ul><ul><ul><li>There are three types of authentication methods: </li></ul></ul><ul><ul><ul><li>Repository database authentication. </li></ul></ul></ul><ul><ul><ul><li>Web container-managed authentication. </li></ul></ul></ul><ul><ul><ul><li>No user authentication. </li></ul></ul></ul><ul><li>Manage Privileges: </li></ul><ul><ul><li>There are two types of privileges for users: </li></ul></ul><ul><ul><ul><li>The Can Monitor privilege. </li></ul></ul></ul><ul><ul><ul><li>The Can Manage Alerts privilege. </li></ul></ul></ul>
    22. 22. 2. Optim Performance Manager <ul><li>Once you have logged into the OPM application please press the button “Manage Database Connections” in order to add a New Connection. </li></ul>2.6 Adding a new Database Connection <ul><li>Then press the button “Add” to perform the action required. </li></ul><ul><li>Finally, complete the grid with all the information needed. (Marked with a red asterisk). </li></ul>Add a database to be monitored with just two clicks !!!
    23. 23. 2. Optim Performance Manager <ul><li>From the module “ Manage Database Connections ” of the application IBM Optim Performance Manager we can View, Test, Add, Delete, Modify, Import or Export database connections as often as necessary and also configure the performance monitoring. </li></ul>2.7 Checking Database Connections Quick review and modification of the settings for the database connections!
    24. 24. 2. Optim Performance Manager <ul><li>Once you have logged into the OPM application please press the button “Task Manager” and then choose the option “Health Alerts Configuration”. </li></ul><ul><li>Select a database to view and then edit the configurable alert parameters. </li></ul>2.8 Health Alerts Configuration <ul><li>To edit alerts, you must have the Can Manage Alerts privilege on the database. </li></ul>
    25. 25. 2. Optim Performance Manager <ul><li>Once you have logged into the OPM application please press the button “Task Manager” and then choose the option “Performance Alert Configuration”. </li></ul><ul><li>Select a database to view and then edit the configurable alert parameters. </li></ul>2.9 Performance Alert Configuration <ul><li>To edit alerts, you must have the Can Manage Alerts privilege on the database. </li></ul>
    26. 26. 2. Optim Performance Manager <ul><li>The alert notification allows us to send an mail every time there is a warning on our database system. </li></ul>2.10 Alert Notification Configuration <ul><li>To edit alerts, you must have the Can Manage Alerts privilege on the database and the email service must be already configured. </li></ul><ul><li>Once you have logged into the OPM application please press the button “Task Manager” and then choose the option “Alert Notification Configuration”. </li></ul><ul><li>Select a database and then press the button “Add” in order to create a new alert notification. </li></ul><ul><li>Complete all the fields of the form and finally press the button Ok. </li></ul>
    27. 27. 2. Optim Performance Manager <ul><li>After installation, you can directly launch the Web UI and add the databases you want to monitor. </li></ul>2.11 Creating New Analysis Monitors <ul><li>The Monitor configuration option, called “Configure Monitoring…” can be found in the “Manage Database Connections” module. </li></ul><ul><li>The monitoring settings for the monitored database can be added by choosing one of the predefined system templates or creating a new one. </li></ul><ul><li>Predefined Templates exist for: </li></ul><ul><ul><li>OLTP </li></ul></ul><ul><ul><li>BI </li></ul></ul><ul><ul><li>SAP databases. </li></ul></ul>
    28. 28. 2. Optim Performance Manager <ul><li>Exist two types of monitoring authorizations: </li></ul><ul><ul><li>The Can Monitor privilege: Allows the viewing of all dialogs and data. </li></ul></ul><ul><ul><li>The Can Manage Alerts privilege: Allows the control of alerts and their thresholds, which includes the ability to prune and delete alert instances. </li></ul></ul>2.12 Flexible administrative control with monitoring privileges <ul><li>This privilege system makes it easier to enable more people to monitor the database while restricting configuration control to a more select set of people. </li></ul>
    29. 29. 2. Optim Performance Manager <ul><li>Provides instant visual indicators of the health of all monitored databases based on key performance indicators and visual alerts for problematic areas, such as I/O, memory, logging, workload, sorting, and locking. </li></ul>2.13 Health Summary <ul><li>Alerts parameters can be set from the button &quot;Configure Alerts&quot; or by clicking the icon on the specific area analyzed. </li></ul>Automatically sends alerts via email!!!
    30. 30. 2. Optim Performance Manager <ul><li>For any alert displayed on the Health Summary, you can display more details about the alert and then drill down to detailed diagnostic dashboards for areas like I/O, memory, logging, workload, sorting, and locking. </li></ul><ul><li>Dashboards provide important performance metrics and running SQL statements for immediate problem detection. </li></ul>2.14 Diagnostic Dashboards <ul><ul><li>Inflight Dashboards </li></ul></ul><ul><ul><ul><li>Overview </li></ul></ul></ul><ul><ul><ul><li>Active SQL </li></ul></ul></ul><ul><ul><ul><li>Buffer pool and I/O </li></ul></ul></ul><ul><ul><ul><li>Extended Insight </li></ul></ul></ul><ul><ul><ul><li>Logging </li></ul></ul></ul><ul><ul><ul><li>Locking </li></ul></ul></ul><ul><ul><ul><li>Memory </li></ul></ul></ul><ul><ul><ul><li>System </li></ul></ul></ul><ul><ul><ul><li>Utility </li></ul></ul></ul><ul><ul><ul><li>Workload </li></ul></ul></ul><ul><ul><li>Dashboards </li></ul></ul><ul><ul><ul><li>Alert list </li></ul></ul></ul><ul><ul><ul><li>Current Table Spaces </li></ul></ul></ul><ul><ul><ul><li>Current Connections </li></ul></ul></ul><ul><ul><ul><li>Utilities </li></ul></ul></ul>
    31. 31. 2. Optim Performance Manager <ul><li>Alert List: Shows a historical summary of alerts in our database system </li></ul>2.14 Diagnostic Dashboards
    32. 32. 2. Optim Performance Manager <ul><li>Current Application Connections: Displays active connections to the database, their ID, name and status, read and written roads. </li></ul>2.14 Diagnostic Dashboards
    33. 33. 2. Optim Performance Manager <ul><li>Current Table Spaces: Show tablespaces created, their type, state, utilization rate and size. </li></ul>2.14 Diagnostic Dashboards
    34. 34. 2. Optim Performance Manager <ul><li>Overview: It shows a summary of all dashboards. </li></ul>2.14 Diagnostic Dashboards
    35. 35. 2. Optim Performance Manager <ul><li>Active SQL: Identifies and analyzes long-running queries in a certain time frame. </li></ul>2.14 Diagnostic Dashboards
    36. 36. 2. Optim Performance Manager <ul><li>Buffer pool and I/O: Checks and tunes database I/O on the buffer pool, table space, and table level. </li></ul>2.14 Diagnostic Dashboards
    37. 37. 2. Optim Performance Manager <ul><li>Extended Insight: Checks transaction response times of your database applications and determine where and why the response time was spent. </li></ul>2.14 Diagnostic Dashboards
    38. 38. 2. Optim Performance Manager <ul><li>Logging: Checks and tunes log performance. </li></ul>2.14 Diagnostic Dashboards
    39. 39. 2. Optim Performance Manager <ul><li>Locking: Identifies and analyzes deadlocks, timeouts, and locking conflicts. </li></ul>2.14 Diagnostic Dashboards
    40. 40. 2. Optim Performance Manager <ul><li>Memory: Checks the DB2 instance and database memory consumption. Determines whether memory can be decreased or whether it needs to be increased. </li></ul>2.14 Diagnostic Dashboards
    41. 41. 2. Optim Performance Manager <ul><li>System: Checks system resources. </li></ul>2.14 Diagnostic Dashboards
    42. 42. 2. Optim Performance Manager <ul><li>Workload: Get an overview of workload utilization. </li></ul>2.14 Diagnostic Dashboards
    43. 43. 2. Optim Performance Manager <ul><li>Optim Performance Manager provides you an interactive way to generate differents reports of analysis in a few steps. </li></ul><ul><li>Reports can be exported as PDF, XLS or PPT files. </li></ul><ul><li>Available Reports: </li></ul><ul><ul><li>Top n SQL statement. </li></ul></ul><ul><ul><li>Connected applications. </li></ul></ul><ul><ul><li>Database and database manager configurations. </li></ul></ul><ul><ul><li>Disk space consumption for table spaces, including growth rate. </li></ul></ul>2.15 Reports Top n SQL Statements Top n table spaces by growth/size
    44. 44. 2. Optim Performance Manager 2.16 DSHM vs. OPM DSHM OPM License Free Paid Disk Space 300 MB 2450 MB Memory 1 GB 3 GB Operative System AIX, Linux, Windows. AIX, Linux, Solaris, Windows. Data Server DB2 LUW 9.1 or later. DB2 LUW 9.1 or later. Application Server WebSphere Application Server Version 7.0.0.3 or later. Web Browser Mozilla Firefox 3.6.x or later. Microsoft Internet Explorer 7 or later. Mozilla Firefox 3.6.x or later. Microsoft Internet Explorer 7 or later. Plug-in Adobe Flash Player 9.0.124 or later. DSHM OPM Monitors Availability. Availability and Performance. Indicators Server Status, connections, storage and recovery. Server Status, I/O, connections, storage, memory, logging, workload, sorting, locking, transactions time. Dashboards Alert List, Utilities, Current Application Connections, Current Table Spaces. Overview, Active SQL, Application Connections, Table Spaces, Buffer pool and I/O, Extended Insight, Logging, Locking, Memory, System, Utility, Workload, Alerts. Interactive Reports WLM Configuration Tool Alert Notifications (Email) Manual. Automatic.
    45. 45. 2. Optim Performance Manager Video Demo
    46. 46. 3. Workload Manager Configuration Tool <ul><li>Is a workload management feature that gives you deeper insight into how your system is running, and finer control over resources and performance. </li></ul><ul><li>An effective workload management environment can be broken down into four basic stages: </li></ul><ul><ul><li>Define the business goals </li></ul></ul><ul><ul><li>Identify the activities to be managed </li></ul></ul><ul><ul><li>Manage the activities to meet the business goals </li></ul></ul><ul><ul><li>Monitor the activities on the data server </li></ul></ul>3.1 Review on WLM <ul><li>There are a number of common DB2 business problems that can be addressed through an effective workload management implementation: </li></ul><ul><ul><li>Protecting the system from rogue queries. </li></ul></ul><ul><ul><li>Maintaining consistent response times for activities. </li></ul></ul><ul><ul><li>Protecting the data server from a system slowdown during peak periods of </li></ul></ul><ul><ul><li>database activity. </li></ul></ul><ul><ul><li>Providing explicit resource control. </li></ul></ul><ul><ul><li>Enforcing Service Level Agreement (SLA) objectives. </li></ul></ul><ul><ul><li>Granular monitoring of database activities. </li></ul></ul><ul><li>The DB2 WLM architecture is primarily composed of the following components: </li></ul><ul><ul><li>Service classes </li></ul></ul><ul><ul><li>Workloads </li></ul></ul><ul><ul><li>Thresholds </li></ul></ul><ul><ul><li>Work action sets and Work classes sets </li></ul></ul>
    47. 47. 3. Workload Manager Configuration Tool <ul><li>Graphical user interface, included with OPM, used to configure and monitor DB2 Workload Manager V9.5 or higher. </li></ul><ul><li>Offers two solutions to set up DB2 WLM in order to control and manage database workload: </li></ul><ul><ul><li>Concurrency method. </li></ul></ul><ul><ul><li>Priority aging method. </li></ul></ul>3.2 Overview Concurrency method <ul><li>Implement business priorities by applying concurrency controls. </li></ul><ul><li>Dedicate shares of system resources to database work. </li></ul><ul><li>Manage the database activities of applications, users, groups, and more. </li></ul><ul><li>Prioritize work by categories and by estimated costs. </li></ul><ul><li>Control and stabilize response times. </li></ul><ul><li>Implement policies for disruptive work that over-consumes resources. </li></ul><ul><li>Refine policies by limiting diverse classes of work. </li></ul>Priority aging method <ul><li>Downgrade the priority of work as required automatically. </li></ul><ul><li>Set the initial priority of work by cost or category. </li></ul><ul><li>Adjust the cost limits of expensive activities. </li></ul><ul><li>Customize the runtime limits of database work. </li></ul><ul><ul><li>Before you can use the monitoring graphs and reports of Workload Manager, you need to configure Optim Performance Manager to monitor the WLM statistics. </li></ul></ul>
    48. 48. 3. Workload Manager Configuration Tool <ul><li>First, from the OPM Menu bar click Manage Database Connection </li></ul><ul><li>Select the database for which you want to collect WLM metrics, and click Configure Monitoring. </li></ul><ul><li>Step through the configure monitoring wizard and enable collection of WLM. </li></ul>3.3 Configuring OPM for collection of WLM statistics Only 3 steps!!!
    49. 49. 3. Workload Manager Configuration Tool <ul><li>First, from the OPM Menu bar click Task Manager and select WLM Configuration. </li></ul><ul><li>Select the database that you want to configure and click Connect to lunch the configuration wizard. </li></ul><ul><li>Choose one of the two WLM configurations types. </li></ul><ul><li>WLM configuration wizard will construct a template, which contains a service super class, several subclasses, and related WLM infrastructure. </li></ul>3.4 WLM template setup <ul><li>Review the summary of the state of your WLM configuration. </li></ul><ul><li>Finally, customize your WLM configuration further and deploy it to the database. </li></ul>Easy configuration guided by wizard s When you configure a concurrency solution, you work with the following set of WLM database objects: Service Superclasses, Workloads, Service Subclasses and Thresholds.
    50. 50. 3. Workload Manager Configuration Tool <ul><li>From WLM Configuration tool you can plot graphs of the Workload Manager monitoring statistics. You can also see tables of the graph data and reports that help you analyze the performance of your database. </li></ul>3.5 WLM Reports and Graphics Concurrency high water mark and CPU usage graph Concurrency and Time in queue graph for the performance objective service subclass DS_MED_CONC_SUBCLASS activity total time histogram
    51. 51. 3. Workload Manager Configuration Tool Video Demo
    52. 52. 4. Optim Query Tuner <ul><li>Optim Query Tuner cuts cost and improves performance by providing expert advice on writing high quality queries and improving database design. </li></ul>4.1 Overview Benefits! <ul><li>Reduces costs and risks by enabling developers to tune SQL during development. </li></ul><ul><li>Accelerates query tuning analysis </li></ul><ul><li>Foster collaboration among developers and DBAs. </li></ul><ul><li>Integration with Optim family product. </li></ul><ul><li>Captures and analyzes queries from a variety of sources: </li></ul><ul><ul><li>Packages, SQL stored procedures, triggers, and user-defined functions. </li></ul></ul><ul><ul><li>The integrated query editor and routine editor within IBM Data Studio or Optim Development Studio. </li></ul></ul><ul><ul><li>The SQL Outline and the Java editor </li></ul></ul><ul><ul><li>within Optim Development Studio </li></ul></ul><ul><ul><li>The DB2 catalog. </li></ul></ul><ul><li>Includes the following tools and advisors: </li></ul><ul><ul><li>Access Plan Graph </li></ul></ul><ul><ul><li>Query Annotation </li></ul></ul><ul><ul><li>Query Advisor </li></ul></ul><ul><ul><li>Access Path Advisor </li></ul></ul><ul><ul><li>Statistics Advisor </li></ul></ul><ul><ul><li>Index Advisor </li></ul></ul><ul><ul><li>Query Report </li></ul></ul>
    53. 53. 4. Optim Query Tuner <ul><li>Download the Optim Query Tuner installation image. </li></ul><ul><li>https://www-304.ibm.com/support/docview.wss?uid=swg24023064 </li></ul>4.2 Installation <ul><li>Install OQT by using: </li></ul><ul><ul><li>Installation Wizard </li></ul></ul><ul><ul><li>Console mode </li></ul></ul><ul><ul><li>Response file (silent installation) </li></ul></ul>Install OQT Server Configuration Kit where DB2 LUW is installed and OQT client in the machine from where you access the databases and set queries. System Requirements Optim Query Tuner Optim Query Tuner Client Processor 2 GHz Pentium IV processor equivalent or better. Disk Space 2 GB Memory 1 GB (2GB recommended) Operative System Linux, Unix, Windows. Windows. Data Server DB2 LUW v9.1.8 or later.
    54. 54. 4. Optim Query Tuner 4.3 Configuring a DB2 database for query tuning <ul><li>Configure your database to be tuned as follows: </li></ul><ul><ul><li>Connect the OQT client to the DB2 database. </li></ul></ul><ul><ul><li>In the Data Source Explorer, right-click the database that you want to configure and select Query Tuner > Configure for Tuning > Guided Configuration. </li></ul></ul><ul><li>Start tuning SQL statements by making right-click over the database selected and choose Query Tuner > Start Tuning. </li></ul><ul><li>Before begin ensure: </li></ul><ul><ul><li>A connection profile is created for the database that runs the SQL statements that you want to tune. </li></ul></ul><ul><ul><li>The client is connected to the database. </li></ul></ul><ul><ul><li>The product license is activated. </li></ul></ul><ul><ul><li>That you have the required authorities and privileges to configure a DB2 database from the client. </li></ul></ul>
    55. 55. 5. Activity Monitor <ul><li>Activity Monitor provides a set of predefined reports, based on a specific subset of monitor data, that allows you to focus monitoring on: </li></ul><ul><ul><li>application performance. </li></ul></ul><ul><ul><li>application concurrency. </li></ul></ul><ul><ul><li>resource consumption. </li></ul></ul><ul><ul><li>SQL statement. </li></ul></ul>5.1 Overview <ul><li>Also provides recommendations for most reports that can assist you to diagnose the cause of database performance problems, and to tune queries for optimal utilization of database resources. </li></ul><ul><li>Allows to compare previous values ​​of performance with the new results obtained after the corrective action. </li></ul>Activity Monitor has been deprecated in DB2 Version 9.7 Start using IBM Data Studio and IBM Optim tools.
    56. 56. 5. Activity Monitor <ul><li>Choose the database. </li></ul>5.2 How to configure reports 1 <ul><li>Select a monitoring task. </li></ul>2 <ul><li>Specify a filter for applications to be monitored. </li></ul>3 <ul><li>Select a report. </li></ul>4 <ul><li>Review details and recommendations. </li></ul>5 Interactive Wizards
    57. 57. 6. Event Analyzer <ul><li>Event analyzer provides a graphical interface to the information or data elements gathered by event monitors. </li></ul><ul><li>The information provided by the event Analyzer information can be used to determine how well a database activity was performed. </li></ul><ul><li>The levels of detail available are: </li></ul><ul><ul><li>Connections </li></ul></ul><ul><ul><li>Databases </li></ul></ul><ul><ul><li>Deadlocks </li></ul></ul><ul><ul><li>Deadlock connections </li></ul></ul><ul><ul><li>Overflows </li></ul></ul><ul><ul><li>Transactions </li></ul></ul><ul><ul><li>Statements </li></ul></ul><ul><ul><li>Tables </li></ul></ul><ul><ul><li>Table spaces </li></ul></ul><ul><ul><li>Buffer pools </li></ul></ul>6.1 Overview <ul><li>Included free in DB2. </li></ul>Event Analyzer has been deprecated in DB2 Version 9.7. Start using IBM Data Studio and IBM Optim tools.
    58. 58. 7. Health Center <ul><li>Assists database administrators by alerting them to potential problems and providing recommendations to resolve problems. </li></ul><ul><li>Gathers information about the health of the system using interfaces that do not impose a performance penalty. </li></ul><ul><li>Provides graphical interfaces to view, update, and reset health indicator configurations. </li></ul><ul><li>Database administrators can monitor: </li></ul><ul><ul><li>Instances. </li></ul></ul><ul><ul><li>Databases. </li></ul></ul><ul><ul><li>Table spaces. </li></ul></ul><ul><ul><li>Table space containers. </li></ul></ul>7.1 Overview <ul><li>Allows send notifications by email. </li></ul><ul><li>Included free in DB2. </li></ul>1 2 Health Center has been deprecated in DB2 Version 9.7 Start using IBM Data Studio and IBM Optim tools.
    59. 59. 7. Health Center <ul><li>Select the instance whose health indicators you want to configure. </li></ul><ul><li>From the Selected menu click Configure and then click on Health Indicator Settings. </li></ul><ul><li>Select the health indicator type: </li></ul><ul><ul><li>Instance </li></ul></ul><ul><ul><li>Global </li></ul></ul><ul><ul><li>Object </li></ul></ul>7.2 How to configure health indicators <ul><li>To update the health indicator settings, select the row of the health indicator in the Current health indicator settings table. </li></ul><ul><li>From the Select menu select Edit. </li></ul>1 2 3
    60. 60. 8. Memory Visualizer <ul><li>Helps database administrators to monitor the memory-related performance of an instance and all of its databases organized in a hierarchical tree. </li></ul><ul><li>Works only with DB2 instances that are Version 8.1 or later. </li></ul><ul><li>Displays the values for the following configuration parameters: </li></ul><ul><ul><li>appl_memory </li></ul></ul><ul><ul><li>instance_memory </li></ul></ul><ul><ul><li>mon_heap_sz </li></ul></ul><ul><ul><li>dbheap </li></ul></ul><ul><ul><li>stmtheap </li></ul></ul><ul><ul><li>stat_heap_sz </li></ul></ul><ul><ul><li>applheapsz </li></ul></ul><ul><ul><li>appgroup_mem_sz </li></ul></ul><ul><ul><li>groupheap_ratio </li></ul></ul><ul><ul><li>app_ctl_heap_sz </li></ul></ul><ul><ul><li>query_heap_sz </li></ul></ul>8.1 Overview Real time memory monitoring! <ul><li>Change settings for individual memory components by updating configuration parameters. </li></ul><ul><li>Load performance data from a file into a Memory Visualizer window. </li></ul><ul><li>Save the performance data . </li></ul>Benefits! <ul><li>Included free in DB2. </li></ul>Memory Visualizer has been deprecated in DB2 Version 9.7 Start using IBM Data Studio and IBM Optim tools.
    61. 61. 9. Indoubt Transaction Manager <ul><li>Included Free in DB2 </li></ul><ul><li>Helps to resolve transactions left in an indoubt state during two-phase commit processing by listing all indoubt transactions for a selected database and one or more selected partitions. </li></ul><ul><li>Allows to perform the following heuristic actions on indoubt transactions: </li></ul><ul><ul><li>Forget . </li></ul></ul><ul><ul><li>Commit. </li></ul></ul><ul><ul><li>Rollback. </li></ul></ul>9.1 Overview <ul><li>Shows the following transactions details: </li></ul><ul><ul><li>Status </li></ul></ul><ul><ul><li>Timestamp </li></ul></ul><ul><ul><li>Transaction ID </li></ul></ul><ul><ul><li>Application ID </li></ul></ul><ul><ul><li>Authorization ID </li></ul></ul><ul><ul><li>Sequence Number </li></ul></ul><ul><ul><li>Partition </li></ul></ul><ul><ul><li>Originator </li></ul></ul><ul><ul><li>Log Full </li></ul></ul><ul><ul><li>Type </li></ul></ul>Indoubt Transaction Manager has been deprecated in DB2 Version 9.7. Start using IBM Data Studio and IBM Optim tools.
    62. 62. 10. Summary <ul><li>Data Studio Health Monitor </li></ul><ul><li>Optim Performance Manager </li></ul><ul><li>Health Center </li></ul><ul><li>Event Analyzer </li></ul>Availability Performance Concurrency Consumption <ul><li>Optim Performance Manager </li></ul><ul><li>Activity Monitor </li></ul><ul><li>Health Center </li></ul><ul><li>Optim Query Tuner </li></ul><ul><li>Data Studio Health Monitor </li></ul><ul><li>Optim Performance Manager </li></ul><ul><li>Activity Monitor </li></ul><ul><li>Health Center </li></ul><ul><li>Event Analyzer </li></ul><ul><li>Data Studio Health Monitor </li></ul><ul><li>Optim Performance Manager </li></ul><ul><li>Health Center </li></ul><ul><li>Activity Monitor </li></ul><ul><li>Workload Manager </li></ul><ul><li>Memory Visualizer </li></ul><ul><li>Event Analyzer </li></ul>DSHM monitors database availability, number of connected users and free space. OPM monitors database availability, number of connected users, performance metrics and free space. Health Center gathers complete information about the health of the system. Activity Monitor provides a set of predefined reports that allows you to focus monitoring on performance, concurrency and resource consumption. Optim Query Tuner cuts cost and improves performance by providing expert advice on writing high quality queries and improving database design. Event analyzer provides a graphical interface to the information or data elements gathered by event monitors (tablespaces, deadlocks, connections, etc) Memory Visualizer helps to to monitor the memory-related performance WLM provides explicit resource control.
    63. 63. 11. Resources <ul><li>IBM Data Studio Information Center: </li></ul><ul><ul><li>http://publib.boulder.ibm.com/infocenter/idm/v2r2/topic/com.ibm.datatools.ds.nav.doc/topics/helpindex_ds.html </li></ul></ul><ul><li>IBM Data Studio Health Monitor Information Center: </li></ul><ul><ul><li>http://publib.boulder.ibm.com/infocenter/idm/docv3/index.jsp?topic=/com.ibm.datatools.db.web.health.doc/topics/introducingdshm.html </li></ul></ul><ul><li>IBM Optim Performance Manager Information Center: </li></ul><ul><ul><li>http://publib.boulder.ibm.com/infocenter/idm/v2r2/index.jsp?topic=/com.ibm.datatools.perfmgmt.overview.doc/topics/helpindex_opm.html </li></ul></ul><ul><li>IBM Optim Query Tuner Information Center: </li></ul><ul><ul><li>http://publib.boulder.ibm.com/infocenter/idm/v2r2/index.jsp?topic=/com.ibm.datatools.qrytune.nav.doc/topics/helpindex_qt.html </li></ul></ul><ul><li>IBM DB2 v9.7 for LUW Information Center: </li></ul><ul><ul><li>http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/index.jsp </li></ul></ul><ul><li>IBM developerWorks Main Site: </li></ul><ul><ul><li>http://www.ibm.com/developerworks/ </li></ul></ul><ul><li>IBM Redbooks Main Site: </li></ul><ul><ul><li>http://www.redbooks.ibm.com/ </li></ul></ul>

    ×