Know Db2

Db2 for z/OS - Database Administration

From Start to Finish: Part 1

Db2 Database Administration Part 1 is a customized hands-on SQL and Command workshop that is designed to take the student through coding complex SQL statements, developing SQL performance tuning methods and using Db2 Commands.

Topics Covered:

Duration:5 days, Hands-on labs

Audience: Anyone who will be coding complex joins and queries and is concerned with optimum performance; programmers, application designers, database administrators, system administrators.

Prerequisites: Working knowledge of basic SQL, TSO, SPUFI and optionally QMF.

Db2 for z/OS Database Administration

Part 1 Class Outline:

Db2 Concepts & Facilities Review

  • Db2 Environment- Subsystem Look
  • Products and Utilities Review
  • Data Structures – A Detail Look into Tables, Table spaces, and ,Indexes
  • Db2 Catalog for Programmers
  • RUNSTATS – what it does
  • Structured Query Language Review
  •  

Complex Single Table SQL

  • Data Retrieval & Result tables
  • SELECT Statement Structure
  • Using Functions and Expressions
  • Ordering the result table rows
  • Merging intermediate results
  • Special Registers
  • Workshop
  •  

Introduction to Performance

  • What is the Optimizer?
  • Predicate Types (Indexable, Stage 1 and Stage 2)
  • Access Paths - how they work
  • Matching Indexes to Predicates
  • Explain - the Basics and more
  • Workshop
  •  

Working with Multiple Tables

  • Joining Data from multiple Tables
  • Inner join
  • Full Outer Join
  • Left Outer Join
  • Right Outer Join
  • Using Multiple join types in a Query
  • Nested Table Expressions
  • Using Global Temporary Tables
  • Workshop
  •  

Tuning Complex Queries

  • Complex Access Paths
  • -Nested Loop Joins
  • -Merge Scan Joins
  • -Hybrid Joins
  • Intermediate Tables & the DSNDB07
  • Explain - Complex
  • Workshop
  •  

Summary Processing, Functions & Advanced Coding

  • Column Functions
  • Correlated subqueries
  • Non-correlated subqueries
  • Scalar Functions & Case Expression
  • Statement Cost Comparisons
  • Recursive SQL
  • Volatile Tables
  • Materialized Query Tables (MQT)
  • SQL Limits
  • Multi-Row Insert, Update, Fetch
  • Insert within Select
  • Dynamic Scrollable Cursors
  • Get Diagnostics
  • Current Package Path
  • Enhanced Unicode Support
  • Start Join Enhancements
  • Type 2 & 4 Java, DB2 Universal Drivers
  • Query Performance Enhancements
  • Visual Explain New Features
  • EXPLAIN Global Prepare Cache
  • More and More changes to SQL
  • Workshop
  •  

Advanced Tuning - Parallelism, Preserving & Influencing Access Paths

  • Partitioned Table spaces
  • Parallel Operations
  • Enabling & Limiting Parallelism
  • Column Correlation
  • Preserving a Prior Access Path
  • Filter Factors
  • Influencing the Access Path Optimizer
  • Dynamic SQL Governor
  • Workshop
  •  

Embedded SQL Coding &Tuning

  • Update with Subselect
  • Using Savepoints
  • Using Global Temporary Tables
  • Cursor Processing: Open, Fetch, Close
  • Deleting, Updating using a Cursor
  • Cursor with Hold and Read Only
  • -Scrolling
  • -Using OPTIMIZE FOR
  • -Existence Checking
  • Code Structure / Coding Techniques
  •  

Tuning Your Application for Optimum Concurrency

  • Aspects of Locking
  • Bind Options – Package & Plans
  • Database Design
  • Coding Techniques
  • SQLCA & SQLCODE handling
  • Restartability in programs
  •  

Applying techniques learned to your data

  • NOTE: Each attendee should bring 2 or more complex queries to work with in class.
  •  

Operator Commands

  • Review of the syntax
  • Resource Codes for Messages
  • Privileges and authorizations
  • Working with Commands
  • Output from Commands
  •  

Commands in Db2

  • -DISPLAY DATABASE (Db2)
  • -START DATABASE (Db2)
  • -DISPLAY THREAD (Db2)
  • -CANCEL THREAD (Db2)
  • Workshop - Commands
  •  

More Commands

  • -RECOVER INDOUBT (Db2)
  • -RECOVER POSTPONED (Db2)
  • -RESET INDOUBT (Db2)
  • -DISPLAY UTILITY (Db2)
  • -ALTER UTILITIY (Db2)
  • -TERM UTILITY (Db2)
  • Workshop - Commands
  •  

More Commands

  • -ALTER BUFFERPOOL (Db2)
  • -DISPLAY BUFFERPOOL (Db2)
  • -DISPLAY GROUP BUFFERPOOL (Db2)
  • -ALTER GROUP BUFFERPOOL (Db2)
  • -DISPLAY GROUP (Db2)
  • Workshop - Commands
  •  
  • More Commands

  • -DISPLAY ARCHIVE (Db2)
  • -SET ARCHIVE (Db2)
  • -DISPLAY LOG (Db2)
  • -SET LOG (Db2)
  • -ARCHIVE LOG (Db2)
  • -RECOVER BSDS (Db2)
  • Workshop - Commands
  •  

More Commands

  • BIND PACKAGE (DSN)
  • -REBIND PACKAGE (DSN)
  • BIND PLAN (DSN)
  • REBIND PLAN (DSN)
  • -FREE PACKAGE (DSN)
  • -FREE PLAN (DSN)
  • DCLGEN (DSN)
  • Workshop - Commands
  •  

More Commands

  • -DISPLAY ARCHIVE (Db2)
  • -DISPLAY DDF (Db2)
  • -DISPLAY LOCATION (Db2)
  • -DISPLAY PROCEDURES (Db2)
  • -STOP PROCEDURES (Db2)
  • -DISPLAY RLIMIT (Db2)
  • -STOP RLIMIT (Db2)
  • Workshop - Commands
  •  

More Commands

  • -DISPLAY TRACE (Db2)
  • -START TRACE (Db2)
  • -MODIFY TRACE (Db2)
  • -SET SYSPARM (Db2)
  • Workshop - Commands
  •  

More Commands

  • -START DB2 (Db2)
  • -STOP DB2 (Db2)
  • -START DDF (Db2)
  • -STOP DDF (Db2)
  • -STOP FUNCTION SPECIFIC (Db2)
  • -STOP irlmproc (z/OS IRLM) (Db2)
  •  

Class Review

  • ©2017 Computer Business International, Inc.

 

 

Would you like to schedule or customize this class?
Please call our toll free number (866-224-4968) or email us at info@cbi4you.com.