866.224.4968
Computer Business International, Inc.,
is an on-site or virtual, hands-on
instructor led
Db2 for z/OS
education, training and consulting
company
with over 30 years of Db2 experience.
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 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
Data Retrieval & Result tables
SELECT Statement Structure
Using Functions and Expressions
Ordering the result table rows
Merging intermediate results
Special Registers
Workshop
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
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
Complex Access Paths
Intermediate Tables & the DSNDB07
Explain - Complex
Workshop
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
Db2 Universal Drivers
Query Performance Enhancements
Visual Explain New Features
EXPLAIN Global Prepare Cache
More and More changes to SQL
Workshop
Partitioned Table spaces
Universal Table Spaces
Column Correlation
Preserving a Prior Access Path
Filter Factors
Influencing the Access Path Optimizer
Dynamic SQL Governor
Workshop
Update with Subselect
Using Save points
Using Global Temporary Tables
Cursor Processing: Open, Fetch, Close
Deleting, Updating using a Cursor
Cursor with Hold and Read Only
Code Structure / Coding Techniques
Aspects of Locking
Bind Options – Package & Plans
Database Design
Coding Techniques
SQLCA & SQLCODE handling
Restartability in programs
NOTE: Each attendee should bring 2 or more complex queries to work with in class.In each of the following sections we will:
Review of the syntax of each command
Look at Resource Codes for Messages
Privileges and authorizations Required
Work with Commands in our labs
Review How and When to use Commands