DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop Course Description

Duration: 4.00 days (32 hours)

Price: $2,680.00

Learn how to tune for optimum performance the IBM DB2 9 for Linux, UNIX, and Windows relational database management system and associated applications written for this environment. Learn about DB2 9 for Linux, UNIX, and Windows in a single partition database environment. Explore performance issues affecting the design of the database and applications using the database, the major database performance parameters, and the different tools that assist in performance monitoring and tuning.
Use tools that are common across the Linux, UNIX, and Windows environments. During labs running on DB2 9.7, develop your ability to use monitoring tools, Explain tools and DB2 utilities like RUNSTATS, REORG and db2batch to tune a database running on your local LINUX workstation.

Next Class Dates

Contact us to customize this class with your own dates, times and location. You can also call 1-888-563-8266 or chat live with a Learning Consultant.

Back to Top

Intended Audience for this DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop Course

  • » This is an advanced course for database designers, database administrators, and application developers working with DB2 for Linux, UNIX, and Windows who are concerned about performance.
  • » This course is appropriate for those using DB2 in a z/Linux environment.

Back to Top

Course Prerequisites for DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

  • » DB2 9 Database Administration Workshop for Linux, UNIX, and Windows (CL2X2)
  • » DB2 9 for Linux, UNIX, and Windows Quickstart for Experienced Relational DBAs (CL482)
  • » Have equivalent experience.

Back to Top

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop Course Objectives

  • » Define the impact of database design (tables, indexes, and data placement) on database performance
  • » Describe database application programming considerations and how they affect performance
  • » Identify and describe the parameters (database and non-database) that affect performance
  • » Tune parameters to achieve optimum performance
  • » Identify and use the tools that assist in monitoring and tuning of a database

Back to Top

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop Course Outline

      1. Database Monitoring
        1. Describe the basic principles in monitoring a DB2 database
        2. List the tools for monitoring database and application activity
        3. Use GET SNAPSHOT commands to produce reports for analysis of database performance
        4. Utilize the administrative routines and views provided by to DB2 to simplify application access to database performance statistics
        5. Use the db2pd to perform performance analysis or problem determination for a DB2 database
        6. Utilize the enhanced table functions with SQL in reporting and monitoring of the database system, data objects, and the package cache to help you quickly identify issues that might be causing problems
        7. Configure the DB2 Database configuration options that control the collection of request, activity and object level metrics on the entire database
        8. Compare the enhanced table functions with the snapshot monitoring facilities provided by previous DB2 releases
        9. Database Input/Output (I/O) Management
      2. Describe processing for reading database pages into buffer pools
        1. Describe processing for writing database pages from buffer pools
        2. Monitor database read and write activity using GET SNAPSHOT commands or Administrative Routines and Views
        3. Monitor database logging activity and select appropriate values for SOFTMAX and MINCOMMIT
        4. Describe how scan sharing can reduce the I/O workload for accessing large tables
        5. Explain the alternate page cleaning processing associated with th DB2_USE_ALTERNATE_PAGE_CLEANING DB2 Registry variable
      3. Tablespace and Table Design for Performance
        1. Select appropriate values for table space page size and extent size to support application performance requirements
        2. Describe the calculation of prefetch size when PREFETCHSIZE is set to AUTOMATIC
        3. List the advantages of selecting DMS or SMS table space management as well as using Automatic Storage-managed table spaces
        4. Set file system caching options for table spaces to optimize table space performance
        5. Describe the various row insertion algorithms for tables that are based on using the APPEND option or defining a clustering index
        6. Plan and implement Row Compression to reduce disk and memory requirements and improve application performance
        7. Describe how DB2's Index compression option can reduce disk storage requirements for indexes
        8. Explain how DB2 can compress temporary data to improve application performance
        9. Utilize the DB2 provided tools and functions to estimate compression results for Indexes and data
      4. DB2 memory management
        1. Describe memory heap usage for instance memory, database shared memory and application memory
        2. Explain the management of database shared memory based on setting the configuration option DATABASE_MEMORY to AUTOMATIC, COMPUTED or a specific number of pages
        3. Select the mode for managing data sort memory using SHEAPTHRES, SORTHEAP, and SHEAPTHRES_SHR
        4. Monitor DB2 memory usage using the db2mtrk commands and SQL statements
        5. Utilize the db2pd command for monitoring current database memory usage
      5. Automated Memory Management
        1. Describe how STMM can be used to automatically manage database shared memory heaps
        2. Explain the differences in STMM processing based on the setting of DATABASE_MEMORY
        3. Plan and configure a database for self tuning memory
        4. Activate or deactivate STMM for selected memory heaps
        5. Describe the management of sortheap memory based on the configuration of sheapthres and sheapthres_shr
        6. Explain how DB2 can automatically increase or decrease database memory for multiple DB2 databases running on the same server
      6. Application Performance Considerations
        1. List examples of application coding techniques that can effect performance
        2. Describe the performance advantages of using stored procedure
        3. Design applications to maximize record blocking, minimize sort operations and minimize lock contention
        4. Monitor application performance and lock waits using GET SNAPSHOT commands and SQL queries
        5. Set the DB2 registry variables DB2_EVALUNCOMMITTED, DB2_SKIPINSERTED and DB2_SKIPDELETED to reduce lock contention based on application requirements
        6. Utilize the currently committed form of locking to reduce lock contention between read-only and update applications
      7. Using Explain Tools
        1. Describe the advantages of using Visual Explain
        2. Describe the advantages of using db2exfmt
        3. Create special tables used by Visual Explain and db2exfmt
        4. Identify how to set the Explain snapshot and Explain mode registers to capture the information of interest
        5. Differentiate between the different methods of viewing Explain information
      8. The DB2 Optimizer
        1. Describe the stages of the SQL compiler
        2. Choose the appropriate optimization class
        3. Describe the catalog statistics and database configuration options impact on access plan selection
        4. Implement a statistical view to provide better cardinality estimates for complex queries
        5. Enable the statement concentrator using the STMT_CONC database manager configuration parameter to reduce SQL compilation overhead for dynamic SQL statements
        6. Utilize the db2look utility to extract catalog statistics from existing tables to mimic an existing database environment
        7. Create an optimizer profile
      9. Using Indexes for Performance
        1. Describe the Indexing options that can be used to improve performance: Index Only Access, Clustered Index, Reverse Scans, Include Columns, and Index Freespace
        2. Describe the Block Indexing capability for MDC tables
        3. Monitor index usage using the MON_GET_INDEX function and db2pd commands
        4. Explain how multiple indexes can be combined using Index ORing and Dynamic Bitmap Index ANDing
        5. Use the Design Advisor to predict performance gains from adding new indexes
      10. Complex SQL Performance
        1. Review Explain reports for costly sort operations
        2. Describe the differences between Nested Loop, Merge Scan and Hash Joins
        3. Plan the implementation of Refresh Immediate or Refresh Deferred Materialized Query Tables to improve query performance
        4. Utilize the Design Advisor to analyze SQL statements and recommend new MQTs
        5. Describe the features of range-partitioned tables to support large DB2 tables using multiple table spaces, including the roll-in and roll-out of data ranges
        6. Explain the difference between partitioned and non-partitioned indexes for a range-partitioned table
        7. Implement partitioned indexes to improve performance when you roll data out or roll data into a range-partitioned table
        8. Use the DB2 Explain tools to determine if partition elimination is being used to improve access performance to large range-partitioned tables
      11. Tools and Utilities for Performance
        1. Use the RUNSTATS utility to collect table and index statistics to enable the DB2 Optimizer to generate efficient access strategies
        2. Select appropriate RUNSTATS options to collect Distribution Statistics or Column Group Statistics to improve cardinality estimates during SQL compilation
        3. Use the table and indexes statistics to plan for table and index reorganization using the REORG utility
        4. Set the policies and options for automation of catalog statistics collection
        5. Monitor the activity associated with implementing real-time statistics collection
        6. Use the db2batch utility to run SQL workloads and collect performance statistics that can be used to benchmark database and application changes
      12. Event Monitoring
        1. Create Event Monitors to collect performance statistics at the database, application or SQL statement level
        2. Implement simple Workload Management definitions to utilize the Workload Manager-based event monitoring including activities, statistics and threshold violations
        3. Evaluate Event Monitor data using the Event Analyzer tool, the db2evmon text-based tool the db2evmonfmt application or using SQL queries
        4. Define a LOCKING Event Monitor to capture deadlocks, lock timeout or lock waits
        5. Configure a DB2 database to control information captured for deadlocks, lock timeouts or extended lock waits
        6. Implement Event Monitors for units of work or lock-related events that store information in unformatted Event Monitor tables
        7. Capture SQL section information using an ACTIVITIES Event Monitor and use the data to generate Explain reports
      13. Agenda Day 1
        1. Welcome
        2. Unit 1: Database monitoring
        3. Exercise 1: Database Monitoring
        4. Unit 2: Database I/O Management
        5. Unit 3: Table Space and Table Design for Performance
        6. Exercise 2: I/O Management and Table Space Design
      14. Agenda Day 2
        1. Unit 4: DB2 Memory Management
        2. Exercise 3: Memory Management
        3. Exercise 4: Section 1 - Setup for STMM lab
        4. Unit 5: Automatic Memory Management
        5. Exercise 4: Sections 2, 3 - Using STMM to Manage Memory
        6. Unit 6: DB2 Application Performance Considerations
        7. Exercise 5: Application Performance
      15. Agenda Day 3
        1. Unit 7: Using Explain Tools
        2. Exercise 6: Using Explain Tools
        3. Unit 8: The DB2 Optimizer
        4. Exercise 7: DB2 Optimizer
        5. Unit 9: Using Indexes for Performance
        6. Exercise 8: Index Performance
      16. Agenda Day 4
        1. Unit 10: Complex SQL Performance
        2. Exercise 9: Complex SQL Performance
        3. Unit 11: Tools and Utilities for Performance
        4. Exercise 10: Tools and Utilities
        5. Unit 12: Event Monitoring
        6. Exercise 11: Event Monitors

Back to Top

Do you have the right background for DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop?

Skills Assessment

We ensure your success by asking all students to take a FREE Skill Assessment test. These short, instructor-written tests are an objective measure of your current skills that help us determine whether or not you will be able to meet your goals by attending this course at your current skill level. If we determine that you need additional preparation or training in order to gain the most value from this course, we will recommend cost-effective solutions that you can use to get ready for the course.

Our required skill-assessments ensure that:

  1. All students in the class are at a comparable skill level, so the class can run smoothly without beginners slowing down the class for everyone else.
  2. NetCom students enjoy one of the industry's highest success rates, and pass rates when a certification exam is involved.
  3. We stay committed to providing you real value. Again, your success is paramount; we will register you only if you have the skills to succeed.
This assessment is for your benefit and best taken without any preparation or reference materials, so your skills can be objectively measured.

Take your FREE Skill Assessment test »

Back to Top

Award winning, world-class Instructors

Our instructors are passionate at teaching and are experts in their respective fields. Our average NetCom instructor has many, many years of real-world experience and impart their priceless, valuable knowledge to our students every single day. See our world-class instructors.   See more instructors...

Back to Top

Client Testimonials & Reviews about their Learning Experience

We are passionate in delivering the best learning experience for our students and they are happy to share their learning experience with us.
Read what students had to say about their experience at NetCom.   Read student testimonials...

Back to Top

Ways to contact us

Back to Top