Home About Courses Schedule Services Webinars Contact Search

Advanced Query Tuning with IBM Data Studio on Db2 for z/OS


Duration: 3.0 days

Method: Instructor led, Hands-on workshops

Price: $1800.00

Course Code: DB1037

View Related Video


Application Architects, analysts, developers and DBAs involved in the development and support of Db2/SQL applications.


Get ready for a deep dive into Db2 for z/OS Optimization. This course is for the Db2 for z/OS development professional who desires to understand the fundamental issues associated with performance for SQL applications. Emphasis is placed on new considerations for the latest releases of Db2 and the use of IBM Data Studio as an optimization tool. Concepts discussed will be reinforced with appropriate workshops.


Upon successful completion of this course, the student will be able to:

  • When different types of access paths are desirable
  • The new statistics available in the latest releases of Db2 and their impact on access path selection
  • New optimization techniques available with the Db2 9 optimizer
  • How to use the information provided by IBM Data Studio to improve the performance of Db2 applications


A basic understanding of SQL optimization is helpful.


  1. Optimization Goals & Tools
    • Goals of Optimization
    • Deciding what to tune
    • What causes CPU and I/O
      • Use of Functions, triggers, etc.
      • Keeping too much data too long
    • Optimizer overview
    • Explain output
      • PLAN_TABLE
      • Additional Explain Tables
    • Viewing explain output in IBM Data Studio
  2. Access Paths with IBM Data Studio
    • Single Table Access
      • Tablespace Scan
      • Sequential Prefetch
      • Index Scans
      • Index Screening
      • List Prefetch
    • Multiple Table Access
      • Optimizing Inner and Outer Joins
      • Join method selection
      • Sorting
      • Avoiding sorts
      • Join order
    • Predicate Transitive Closure
  3. Filter Factors & Performance
    • Catalog Statistics via IBM Data Studio
    • What is a filter factor?
    • Use in index selection
    • Use in join order selection
    • Use in join method selection
    • How are filter factors calculated?
  4. Predicate Types
    • Software levels
    • Predicate processing order
    • Viewing predicate details in IBM Data Studio
    • Stage 1 vs Stage 2 processing
  5. Case Studies in Optimizer Problems
    • Case 1: 2 Possible Indexes
    • Case 2: Join Order
    • Case 3: Range Predicates
    • Case 4: Host Variables
  6. Design for Performance
    • Index Only Access for screening and data retrieval
    • Clustering decisions
    • Multiple Index Access
    • Sort Avoidance
    • Index on Expression
    • Partitioning
  7. IBM Data Studio Features
    • Saving access paths as XML files
    • Building SQL statements
    • Formatting SQL statements
    • Explaining SQL statements
    • Query Formatting
    • Obtaining queries from packages
    • Generating Service SQL
    • Statistics Advisor
  8. Top 35+ Tuning Tips for Db2 SQL Developers
    • (and More)
    • SQL Standards and Guidelines
    • Programming guidelines
    • Db2 SQL Tuning Tips