Reducing MIPS Using InfoSphere Optim Query Workload Tuner TDZ-2755A. Lloyd Matthews, U.S. Senate

Similar documents
Empowering DBA's with IBM Data Studio. Deb Jenson, Data Studio Product Manager,

InfoSphere Guardium 9.1 TechTalk Reporting 101

How to Modernize the IMS Queries Landscape with IDAA

SCREEN COMBINATION FEATURE IN HATS 7.0

DB2 for z/os: Programmer Essentials for Designing, Building and Tuning

Innovate 2013 Automated Mobile Testing

[CONFIGURE NEW PAYMENT METHOD IN STORE FRONT]

Enhanced Monitoring Support in DB2 10 for z/os

IMS V13 Overview. Deepak Kohli IMS Product Management

IBM Infrastructure Suite for z/vm and Linux: Introduction IBM Tivoli OMEGAMON XE on z/vm and Linux

DB2 REST API and z/os Connect SQL/Stored Procedures Play a Role in Mobile and API Economics

Optimizing Data Transformation with Db2 for z/os and Db2 Analytics Accelerator

IBM Application Performance Analyzer for z/os Version IBM Corporation

DB2 for z/os Backup and Recovery Update - V9 and V10

Enterprise Caching in a Mobile Environment IBM Redbooks Solution Guide

DB2 REST API and z/os Connect SQL/Stored Procedures Play a Role in Mobile and API Economics

IBM InfoSphere Guardium

Using Hive for Data Warehousing

IBM Operational Decision Manager. Version Sample deployment for Operational Decision Manager for z/os artifact migration

What s new in DB2 9 for z/os for Applications

Innovations in Network Management with NetView for z/os

AD406: What s New in Digital Experience Development with IBM Web Experience Factory

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on Java SE

DB2 Optimization Service Center DB2 Optimization Expert for z/os

IMS Explorer for Development April 2012

IBM DB2 Analytics Accelerator for z/os, v2.1 Providing extreme performance for complex business analysis

MSS VSOC Portal Single Sign-On Using IBM id IBM Corporation

HATS 7.1 Performance and Capacity Planning

Continuous Availability with the IBM DB2 purescale Feature IBM Redbooks Solution Guide

WP710 Language: English Additional languages: None specified Product: WebSphere Portal Release: 6.0

Using Hive for Data Warehousing

Building and Managing Efficient data access to DB2. Vijay Bommireddipalli, Solutions Architect, Optim

DB2 purescale Active/Active High Availability is Here!

IBM Informix xC2 Enhancements IBM Corporation

IBM i 7.3 Features for SAP clients A sortiment of enhancements

Netcool/Impact Version Release Notes GI

Lotus Technical Night School XPages and RDBMS

Integrated use of IBM WebSphere Adapter for Siebel and SAP with WPS Relationship Service. Quick Start Scenarios

IBM WebSphere Sample Adapter for Enterprise Information System Simulator Deployment and Testing on WPS 7.0. Quick Start Scenarios

Build and Deploy Stored Procedures with IBM Data Studio

Lab DSE Designing User Experience Concepts in Multi-Stream Configuration Management

Using Hive for Data Warehousing

IBM Compliance Offerings For Verse and S1 Cloud. 01 June 2017 Presented by: Chuck Stauber

Db2 Analytics Accelerator V5.1 What s new in PTF 5

DB2 10 for z/os High Availability Updates for Distributed Access

Paul Bird June 2018 Db2 = JSON + SQL

Java Development on System z Best Practices

Lotus Learning Management System R1

IMS and VSAM replication using GDPS IBM Redbooks Solution Guide

IBM InfoSphere Data Replication s Change Data Capture (CDC) Fast Apply IBM Corporation

Help! I ve Inherited the Network and They Expect Me to Manage It!

DB2 Warehouse Manager for OS/390 and z/os White Paper

HATS APPLICATION DEVELOPMENT FOR A MOBILE DEVICE

IBM Optim Query Workload Tuner for DB2 for z/os 4.1. Hands-on Labs

WebSphere Portal content publishing and IBM Content Manager Workflow

Performance Tuning Guide

WebSphere Partner Gateway v6.2.x: EDI TO XML Transformation With FA

Migrating Classifications with Migration Manager

Getting Started with InfoSphere Streams Quick Start Edition (VMware)

IBM Db2 Event Store Simplifying and Accelerating Storage and Analysis of Fast Data. IBM Db2 Event Store

Rational Asset Manager V7.5.1 packaging October, IBM Corporation

2014 IBM Corporation

Managing IBM Db2 Analytics Accelerator by using IBM Data Server Manager 1

Reliability and Performance with IBM DB2 Analytics Accelerator Version 4.1 IBM Redbooks Solution Guide

Optimizing Data Integration Solutions by Customizing the IBM InfoSphere Information Server Deployment Architecture IBM Redbooks Solution Guide

Embarcadero PowerSQL 1.1 New Features Guide. Published: July 14, 2008

Optimizing Database Administration with IBM DB2 Autonomics for z/os IBM Redbooks Solution Guide

IBM. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns. Version 2 Release 1 BA

Smart Transformation. Smart Transformation. Ravi Indukuri IBM Commerce

Accessing Hadoop Data Using Hive

Using Hive for Data Warehousing

IMS Connect Much More Than a TCP/IP Gateway

Tivoli Access Manager for Enterprise Single Sign-On

Accelerate IMS Transaction Management Modernization

Tivoli Netcool/Impact

Build integration overview: Rational Team Concert and IBM UrbanCode Deploy

REST APIs on z/os. How to use z/os Connect RESTful APIs with Modern Cloud Native Applications. Bill Keller

Front cover. DB2 Universal Database Programming Workshop for Linux, UNIX, and Windows (Course Code CF10) Lab Set Up Guide

IBM Maximo for Aviation MRO Version 7 Release 6. Installation Guide IBM

Version 2 Release 1. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns IBM BA

DB2 11 for z/os Application Compatibility What you Need to Know

WebSphere Commerce Integration with ebay: Using the ebay SDK and Web Services

DB2 for z/os: Data Sharing Update

DB2. Migration Guide. DB2 Version 9 GC

IBM Content Analytics with Enterprise Search Version 3.0. Expanding queries and influencing how documents are ranked in the results

Using Tivoli Workload Scheduler event-driven workload automation

What s New in IBM Rational Software Architect 8.5 and Rational Software Architect Design Manager 4.0 Beta

Implementing IBM CICS JSON Web Services for Mobile Applications IBM Redbooks Solution Guide

IBM Lotus Domino WebMail

Efficiently Accessing WebSphere MQ Messages from an IMS Application Using the MQ API)

Integrate IBM Rational Application Developer and IBM Security AppScan Source Edition

Luncheon Webinar Series June 3rd, Deep Dive MetaData Workbench Sponsored By:

IBM Copy Services Manager Version 6 Release 1. Release Notes August 2016 IBM

IBM Maximo for Service Providers Version 7 Release 6. Installation Guide

Performance 101 for DB2 for LUW

IBM CICS Transaction Server V4.2

IBM. Avoiding Inventory Synchronization Issues With UBA Technical Note

DB2 for z/os Stored Procedure support in Data Server Manager

Embarcadero DB Optimizer 1.5 New Features Guide. Published: March 16, 2009

Hands-on Lab Session 9909 Introduction to Application Performance Management: Monitoring. Timothy Burris, Cloud Adoption & Technical Enablement

Transcription:

Reducing MIPS Using InfoSphere Optim Query Workload Tuner TDZ-2755A Lloyd Matthews, U.S. Senate 0

Disclaimer Copyright IBM Corporation 2010. All rights reserved. U.S. Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. THE INFORMATION CONTAINED IN THIS PRESENTATION IS PROVIDED FOR INFORMATIONAL PURPOSES ONLY. WHILE EFFORTS WERE MADE TO VERIFY THE COMPLETENESS AND ACCURACY OF THE INFORMATION CONTAINED IN THIS PRESENTATION, IT IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN ADDITION, THIS INFORMATION IS BASED ON IBM S CURRENT PRODUCT PLANS AND STRATEGY, WHICH ARE SUBJECT TO CHANGE BY IBM WITHOUT NOTICE. IBM SHALL NOT BE RESPONSIBLE FOR ANY DAMAGES ARISING OUT OF THE USE OF, OR OTHERWISE RELATED TO, THIS PRESENTATION OR ANY OTHER DOCUMENTATION. NOTHING CONTAINED IN THIS PRESENTATION IS INTENDED TO, NOR SHALL HAVE THE EFFECT OF, CREATING ANY WARRANTIES OR REPRESENTATIONS FROM IBM (OR ITS SUPPLIERS OR LICENSORS), OR ALTERING THE TERMS AND CONDITIONS OF ANY AGREEMENT OR LICENSE GOVERNING THE USE OF IBM PRODUCTS AND/OR SOFTWARE. IBM, the IBM logo, ibm.com, DB2,IBM Optim Query Workload Tuner and DB2 SQL Performance Analyzer are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both. If these and other IBM trademarked terms are marked on their first occurrence in this information with a trademark symbol ( or ), these symbols indicate U.S. registered or common law trademarks owned by IBM at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks is available on the Web at Copyright and trademark information at www.ibm.com/legal/copytrade.shtml Other company, product, or service names may be trademarks or service marks of others.

Agenda U.S. Senate Technical Environment U.S. Senate Objectives Why Tune Difficulties with SQL Tuning Tools to Assist with SQL Tuning U.S. Senate Scenarios Conclusions Questions 2

U.S. Senate Technical Environment Server System Layer SLES Enterprise Linux for Z/Series DB2 V9 NFM (z9 Series) DB2 v9.7 (Sun) Middleware Software z/os V1.9 Solaris CICS TS (3.2) Websphere 7.0 ACF2/RACF JDBC Java SE v6.0 3

U.S. Senate Objectives The ability to meet our SLA The ability to be pro-active in tuning SQL The ability to monitor, capture and analyze SQL The ability to support multiple platforms 4

Why Tune Why is query tuning important DB2 won t know what queries are going to be submitted DB2 won t know object sizes or cardinality unless statistics are gathered DB2 won t know how many rows will be fetched, unless told Performance problems can appear without warning, especially dynamic SQL Transaction goes from 1 second to 3 minutes Minimize Production outage 5

Why is query tuning Difficult Lack of Query Tuning Expertise DBA s with minimal experience Monitoring tools help but provide no direct actionable insight Complexity of analysis requires specialized skills Knowledge of DB2 engine Knowledge of workload and application Larger percentage of SQL generating applications Application development done via frameworks/code generators, so hard to pinpoint section of application code generating bad SQL Disconnect between developers and DBAs 6

IBM Tooling to Assist with Tuning Optim Query Workload Tuner (OQWT) for DB2 z/os & LUW 7 7

IBM Tooling to assist with tuning Optim Query Workload Tuner for DB2 Eclipse based interface tool Analyze one query or entire workload Rules-based analysis of SQL statement text Able to invoke Visual EXPLAIN to understand access path and cost of query blocks Able to annotate queries with statistics Able to Invoke Statistics Advisor to understand what statistics are interesting to DB2 and statistics that maybe in conflict or missing Able to invoke Index Advisor and create Virtual Indexes for What If scenarios Able to invoke Query Advisor with recommendation Able to capturing SQL from various sources (i.e., cache, catalog, file, text, QMF) Able to produce detail reports on objects Profile monitoring Supports multiple platforms 8 8

U.S. Senate approach to SQL Tuning Identify bad SQL both dynamic and static Creation of workload filtering by different criteria Run advisors on single query or workload Forecast SQL Performance Enhanced Explain Reporting 9

10 Capture SQL

Capture SQL Statement Cache 11 11

Capture SQL - Filter Name 12 12

Capture SQL - Display 13

Capture SQL - Filter Rows 14 14

15 Tuning Activities

Tuning Activities 16

Tuning Activities - Recommendations 17

Tuning Activities Access Path Graph (APG) 18

Tuning Activities Access Path Graph (APG) 19

Tuning Activities - Annotation 20

Tuning Activities Statistics Table space, Table, Index and column group statistics 21

Tuning Activities - Statistics 22

Tuning Activities - Index 23 23

Tuning Activities Virtual Index 24

Tuning Activities - Compare Graph Compare before/after table scan index scan 25

Tuning Activities Path Advisor 26 26

Tuning Activities - Query 27 27

28 Workload Scenario

Workload Scenario - Create 29

Workload Scenario Source Type 30

Workload Scenario - Filter 31

Workload Scenario Capture Type 32

Workload Scenario - Captured 33

Workload Scenario List Statements 34

Workload Scenario Filter 35 35

Workload Scenario - Explain 36

Workload Scenario - Explained 37

Workload Scenario Run Advisors 38

Workload Scenario Query Summary 39 39

Workload Scenario Query Recommendations 40 40

Workload Scenario Query Recommendation Highlighted 41 41

Workload Report Scenario 42 42

Workload Report Scenario 43 43

Conclusion We use the following features extensively when tuning SQL Statistics Advisor Query Advisor Index Advisor / What-if-Analysis Access Plan Graph and Query Annotation Workload Forecast Reports Enhanced Explain Reports 44