ibm db2 courses, universidad cenfotec · pdf fileo two courses on programming (such as...

21
1 IBM DB2 courses, Universidad Cenfotec Contents Summary .........................................................................................................................................................................................................................2 Database Management (Information Management) course plan ..................................................................................................................................3 DB2 SQL Workshop..........................................................................................................................................................................................................4 DB2 SQL Workshop for Experienced Users .....................................................................................................................................................................5 DB2 9 Database Administration Workshop for Linux, UNIX and Windows ....................................................................................................................8 DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop..................................................................................................12 DB2 9 for LUW Advanced Database Administration for Experts ..................................................................................................................................16 Relational Database Design ...........................................................................................................................................................................................21

Upload: lydieu

Post on 28-Mar-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

1

IBM DB2 courses, Universidad Cenfotec

Contents Summary ......................................................................................................................................................................................................................... 2

Database Management (Information Management) course plan .................................................................................................................................. 3

DB2 SQL Workshop.......................................................................................................................................................................................................... 4

DB2 SQL Workshop for Experienced Users ..................................................................................................................................................................... 5

DB2 9 Database Administration Workshop for Linux, UNIX and Windows .................................................................................................................... 8

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

DB2 9 for LUW Advanced Database Administration for Experts .................................................................................................................................. 16

Relational Database Design ........................................................................................................................................................................................... 21

Page 2: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

2

Summary Content: The DB2 courses summarized below are based on IBM’s Academic Initiative courseware available to Costa Rican universities.

Instructors for IBM DB2 training: Professors Marco Hernández and William Montero, from Universidad Cenfotec, will be the instructors.

Both have training and certifications on IBM DB2 RDBMS and have current professional experience in the DB2 platform in a mission-

critical banking and finance environment. Both instructors have more than 5 years of teaching experience and have collaborated with

Cenfotec for over 4 years.

Pacing and schedule, IBM DB2 training: Two sessions per week, Thursdays (18:00 to 21:15) and Saturdays (08:00 to 15:30).

Type of delivery, IBM DB2 training: Lecture format, with support of Learning Management System.

Start date, IBM DB2 training: September 14th, 2013.

Requirements for participants, IBM DB2 training: o One course in Fundamentals of Database Systems (equivalent to the first Database course in a typical Computer Science or

Information Systems academic program), a second course or working experience with Database systems is a plus. o One course in Operating Systems (the typical introduction to Operating Systems in CS or IS university programs). o Two courses on programming (such as structured programming, object-oriented programming, data structures and algorithms,

scripting). No need to be expert programmers.

Page 3: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

3

Database Management (Information Management) course plan

Database Management (Information Management)

Courses

Dates (2 sessions of 4 hours

each week)

Hours per course Investment per participant

Maximum number of participants (recommended)

IBM DB2 courses

DB2 SQL Workshop (CL121) September 20 $360 16

DB2 SQL Workshop for Experienced Users (CE131)

October 20

$360 16

DB2 9 Database Administration Workshop for Linux, UNIX, and Windows (CL2X2)

October-November 32 $576 16

DB2 9 for Linux, UNIX, and Windows Performance Tuning (CL412)

November-December 32 $576 16

DB2 9 for Linux, UNIX, and Windows Advanced Database Administration for Experts (CL462)

January 40 $720 16

Total

144 $2592

Relational Database Design (CF187)

Optional

32

$576

16

Page 4: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

4

DB2 SQL Workshop1 This course provides an introduction to the SQL language.

Audience

This basic course is for everyone needing to write, support, or understand SQL queries. This includes but is not limited to end-users, programmers, application designers, database administrators, and system administrators who do not yet have knowledge of the SQL Data Manipulation Language (DML).

Prerequisites

You should have:

Basic computer literacy

Basic editing skills

Database skills are not required

Skills taught

Code SQL statements to retrieve data from a DB2 or Informix table, including the SELECT, FROM, WHERE, GROUP BY, HAVING and ORDER BY clauses

Code inner joins and non-correlated subqueries

Use SQL arithmetic operations

Use scalar and column functions

Use UNION and UNION ALL

INSERT, UPDATE and DELETE rows

Code simple CREATE TABLE and CREATE VIEW statements

Course outline

Introduction

Simple SQL Queries

Retrieving Data from Multiple Tables

Scalar Functions and Arithmetic

Column Functions and Grouping

UNION and UNION ALL

Using Subqueries

Maintaining data

1 Extract from DB2 SQL Workshop, course code CE121

Page 5: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

5

DB2 SQL Workshop for Experienced Users This course teaches you how to make use of advanced SQL techniques to access DB2 databases in different environments.

Audience

This intermediate course is for experienced SQL end users, application programmers, database administrators, and user support staff who need more advanced knowledge of SQL.

Prerequisites You should have experience with:

coding and executing basic SQL statements. These skills can be developed by attending

SQL Workshop (CE120), or equivalent experience.

Skills taught Discuss basic relational database concepts

Use some of the OLAP features of DB2, such as GROUPing and RANKing functions

Create tables, views and indexes

Use referential integrity, check constraints and triggers

Use outer joins, and join tables to themselves

Use CASE expressions, and the CAST function

Identify the impact of Summary Tables, Materialized Query Tables, and temporary tables

Use complex subqueries

Use a greater number of scalar SQL functions

Use advanced SQL constructs, such as recursive SQL and table expressions

Define User-Defined Distinct Types and User-Defined Functions

Avoid several of the most common causes for poorly-performing SQL

Course outline Introduction

Identify the purpose of the clauses in the SELECT statement

Describe the key differences among the IBM DB2 platforms

Page 6: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

6

Describe and use some of the OLAP features of DB2, such as GROUPING functions like CUBE and ROLLUP, and the RANK, DENSE_RANK and ROW_NUMBER functions

Create Objects

Code statements to: Create tables and views, Alter tables, Create indexes, Implement referential integrity (RI), and Define triggers and check constraints

Identify impacts and advantages of referential integrity, including impacts of delete rules

Identify considerations when using triggers and check constraints

Define and make use of INSTEAD OF triggers Join

Retrieve data from more than one table via inner and outer joins

Use outer joins (LEFT, RIGHT, FULL)

Use ANTI JOINS

Join a table to itself

Use UNION and UNION ALL

Use EXCEPT and INTERCEPT CASE, CAST, Summary Tables, and Materialized Query Tables

Identify when CASE expressions can be used

Code CASE expressions in SELECT list and in the WHERE clause

Identify when CAST specifications can be used

Identify the advantages of using Summary (Materialized Query) Tables and Temporary tables

Identify the advantages of using Materialized Query Tables (MQTs) o Identify when and how to use Temporary tables

Using Subqueries

Code subqueries using the ALL, ANY/SOME, and EXISTS keywords

Code correlated subqueries

Choose the proper type of subquery to use in each case Scalar Functions

Extend your knowledge of scalar functions which: Manipulate arithmetic data, Manipulate date values, and Manipulate character data

Examples of scalar functions that are addressed in this course: o SUBSTR o POSSTR

Page 7: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

7

o COALESCE/VALUE o DECIMAL o ROUND o DIGITS o CHAR o DATE/TIME

Table Expressions and Recursive SQL

Identify reasons for using table expressions and recursive SQL

Use nested and common table expressions

Identify the difference between views and table expressions

Code recursive SQL

Control the depth of recursion when coding recursive SQL UDTs/UDFs and Performance

Describe the concepts behind User-Defined Types, User-Defined Functions and Stored Procedures

Predict when queries will use indexes to get better performance

Identify concepts of predicate processing

State introductory concepts about index structure

State general best practices advice

Page 8: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

8

DB2 9 Database Administration Workshop for Linux, UNIX and Windows This course is designed to teach you how to perform database administration tasks using DB2 9. These tasks include creating DB2 instances, creating and populating databases, and using logical design to support concurrency and recovery requirements. New features, such as range partitioning, data row compression, and pure XML (native XML storage) will be introduced. Hands-on exercises provide an option of using either an AIX, Linux, or Windows operating system.

Audience

This is an intermediate course for system administrators, database administrators, and technical personnel involved in planning, implementing, and maintaining DB2 databases.

Prerequisites

Before taking this course you should be able to:

Use basic OS functions such as utilities, file permissions, hierarchical file system, commands, and editor

State the functions of the Structured Query Language (SQL), and be able to construct DDL, DML, and authorization statements

Discuss basic relational database concepts and objects such as tables, indexes, views, and joins

Skills taught

Administer a DB2 database system using commands and GUI tools

Manage System Managed Storage (SMS) and Database Managed Storage (DMS) databases and apply data placement principles

Implement a given logical database design using DB2 to support integrity and concurrency requirements

List and describe the components of DB2

Define a DB2 recovery strategy and perform the tasks necessary to support the strategy

Use autonomic features of DB2

Implement DB2 security

Course outline

Overview of DB2 9 on Linux, UNIX and Windows

Contrast the DB2 Family of products

Identify the DB2 Products

Describe the functions of DB2 components

Explore installation and parameters Command Line Processor (CLP) and GUI usage

Use the Command Line Processor

Explore the GUI environment

Page 9: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

9

Describe the DAS role with GUI tools The DB2 environment

Specify the key features of an Instance

Create and drop an Instance

Use db2start and db2stop

Distinguish between types of configuration

Describe and modify the Database Manager Configuration Creating databases and data placement

Review specifics of creating a database

Explore the System Catalog tables and views

Compare DMS versus SMS table spaces

Describe how to setup and manage a DB2 database with Automatic Storage enabled

Differentiate between table spaces, containers, extents, and pages

Define table spaces

Use the get snapshot for tablespaces command to display table space statistics

Explore Database configuration parameters Creating database objects

List DB2 object hierarchy and physical directories and files

Create the following objects: Schema, Table, View, Alias, Index

Explore the use of table partitioning

Review the use of Temporary Tables

Explore the use and implementation of Check Constraints, Referential Integrity and Triggers

Exploring the need for and the use of Large Objects

Recognize XML and its native store as critical infrastructure for emerging technologies Moving data

Discuss the INSERT statement and recognize its limitations

Explain the differences between IMPORT and LOAD

Explain the EXPORT, IMPORT, and LOAD syntax

Create and use Exception Tables and Dump-Files

Distinguish and resolve Table States: Load Pending and Set Integrity Pending

Use the SET INTEGRITY command

Page 10: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

10

Discuss the db2move and db2look commands Backup and recovery

Describe the major principles and methods for backup and recovery

State the three types of recovery used by DB2

Explain the importance of logging for backup and recovery

Describe how data logging takes place, including circular logging and archival logging

Use the BACKUP, RESTORE, and ROLLFORWARD commands

Perform a table space backup and recovery

Restore a database to the end of logs or to a point-in-time

Discuss the configuration parameters and the recovery history file and use these to handle various backup and recovery scenarios Locking and concurrency

Explain why locking is needed

List objects that can be locked

Describe and discuss the various lock modes and their compatibility

Explain four different levels of data protection

Set isolation level and lock time out for current activity

Explain lock conversion and escalation

Describe the situation that causes deadlocks Problem determination

Collect information for problem analysis and resolution

Use error logs for basic problem analysis

Describe four types of monitors: Snapshot Monitor, Event Monitor, Activity Monitor, and Health Monitor

Describe the function of EXPLAIN and use this facility to assist basic analysis

Use a series of basic commands to better work with connections and sessions

Retrieve statistics and other information from a running DB2 instance

Use RUNSTATS, REORGCHK, and REORG to resolve application performance problems Security

Use DB2 access control mechanisms to implement security within the database

Use group IDs to create a control hierarchy

Describe Label Based Access Control (LBAC)

Describe privileges within a database

Page 11: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

11

Describe privileges required for binding and executing a package

Describe the difference between explicit privileges and implicit privileges

Describe the different DB2 authorization levels

Page 12: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

12

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop 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.

Audience

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.

Prerequisites

You should complete:

DB2 9 Database Administration Workshop for Linux, UNIX, and Windows (CL2X2) or

DB2 9 for Linux, UNIX, and Windows Quickstart for Experienced Relational DBAs (CL482)

or have equivalent experience.

Skills taught

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

Course outline

Database Monitoring

Describe the basic principles in monitoring a DB2 database

List the tools for monitoring database and application activity

Use GET SNAPSHOT commands to produce reports for analysis of database performance

Utilize the administrative routines and views provided by to DB2 to simplify application access to database performance statistics

Use the db2pd to perform performance analysis or problem determination for a DB2 database

Page 13: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

13

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

Configure the DB2 Database configuration options that control the collection of request, activity and object level metrics on the entire database

Compare the enhanced table functions with the snapshot monitoring facilities provided by previous DB2 releases Database Input/Output (I/O) Management

Describe processing for reading database pages into buffer pools

Describe processing for writing database pages from buffer pools

Monitor database read and write activity using GET SNAPSHOT commands or Administrative Routines and Views

Monitor database logging activity and select appropriate values for SOFTMAX and MINCOMMIT

Describe how scan sharing can reduce the I/O workload for accessing large tables

Explain the alternate page cleaning processing associated with th DB2_USE_ALTERNATE_PAGE_CLEANING DB2 Registry variable Tablespace and Table Design for Performance

Select appropriate values for table space page size and extent size to support application performance requirements

Describe the calculation of prefetch size when PREFETCHSIZE is set to AUTOMATIC

List the advantages of selecting DMS or SMS table space management as well as using Automatic Storage-managed table spaces

Set file system caching options for table spaces to optimize table space performance

Describe the various row insertion algorithms for tables that are based on using the APPEND option or defining a clustering index

Plan and implement Row Compression to reduce disk and memory requirements and improve application performance

Describe how DB2's Index compression option can reduce disk storage requirements for indexes

Explain how DB2 can compress temporary data to improve application performance

Utilize the DB2 provided tools and functions to estimate compression results for Indexes and data DB2 memory management

Describe memory heap usage for instance memory, database shared memory and application memory

Explain the management of database shared memory based on setting the configuration option DATABASE_MEMORY to AUTOMATIC, COMPUTED or a specific number of pages

Select the mode for managing data sort memory using SHEAPTHRES, SORTHEAP, and SHEAPTHRES_SHR

Monitor DB2 memory usage using the db2mtrk commands and SQL statements

Utilize the db2pd command for monitoring current database memory usage Automated Memory Management

Describe how STMM can be used to automatically manage database shared memory heaps

Explain the differences in STMM processing based on the setting of DATABASE_MEMORY

Page 14: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

14

Plan and configure a database for self tuning memory

Activate or deactivate STMM for selected memory heaps

Describe the management of sortheap memory based on the configuration of sheapthres and sheapthres_shr

Explain how DB2 can automatically increase or decrease database memory for multiple DB2 databases running on the same server Application Performance Considerations

List examples of application coding techniques that can effect performance

Describe the performance advantages of using stored procedure

Design applications to maximize record blocking, minimize sort operations and minimize lock contention

Monitor application performance and lock waits using GET SNAPSHOT commands and SQL queries

Set the DB2 registry variables DB2_EVALUNCOMMITTED, DB2_SKIPINSERTED and DB2_SKIPDELETED to reduce lock contention based on application requirements

Utilize the currently committed form of locking to reduce lock contention between read-only and update applications Using Explain Tools

Describe the advantages of using Visual Explain

Describe the advantages of using db2exfmt

Create special tables used by Visual Explain and db2exfmt

Identify how to set the Explain snapshot and Explain mode registers to capture the information of interest

Differentiate between the different methods of viewing Explain information The DB2 Optimizer

Describe the stages of the SQL compiler

Choose the appropriate optimization class

Describe the catalog statistics and database configuration options impact on access plan selection

Implement a statistical view to provide better cardinality estimates for complex queries

Enable the statement concentrator using the STMT_CONC database manager configuration parameter to reduce SQL compilation overhead for dynamic SQL statements

Utilize the db2look utility to extract catalog statistics from existing tables to mimic an existing database environment

Create an optimizer profile Using Indexes for Performance

Describe the Indexing options that can be used to improve performance: Index Only Access, Clustered Index, Reverse Scans, Include Columns, and Index Freespace

Describe the Block Indexing capability for MDC tables

Page 15: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

15

Monitor index usage using the MON_GET_INDEX function and db2pd commands

Explain how multiple indexes can be combined using Index ORing and Dynamic Bitmap Index ANDing

Use the Design Advisor to predict performance gains from adding new indexes Complex SQL Performance

Review Explain reports for costly sort operations

Describe the differences between Nested Loop, Merge Scan and Hash Joins

Plan the implementation of Refresh Immediate or Refresh Deferred Materialized Query Tables to improve query performance

Utilize the Design Advisor to analyze SQL statements and recommend new MQTs

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

Explain the difference between partitioned and non-partitioned indexes for a range-partitioned table

Implement partitioned indexes to improve performance when you roll data out or roll data into a range-partitioned table

Use the DB2 Explain tools to determine if partition elimination is being used to improve access performance to large range-partitioned tables Tools and Utilities for Performance

Use the RUNSTATS utility to collect table and index statistics to enable the DB2 Optimizer to generate efficient access strategies

Select appropriate RUNSTATS options to collect Distribution Statistics or Column Group Statistics to improve cardinality estimates during SQL compilation

Use the table and indexes statistics to plan for table and index reorganization using the REORG utility

Set the policies and options for automation of catalog statistics collection

Monitor the activity associated with implementing real-time statistics collection

Use the db2batch utility to run SQL workloads and collect performance statistics that can be used to benchmark database and application changes Event Monitoring

Create Event Monitors to collect performance statistics at the database, application or SQL statement level

Implement simple Workload Management definitions to utilize the Workload Manager-based event monitoring including activities, statistics and threshold violations

Evaluate Event Monitor data using the Event Analyzer tool, the db2evmon text-based tool the db2evmonfmt application or using SQL queries

Define a LOCKING Event Monitor to capture deadlocks, lock timeout or lock waits

Configure a DB2 database to control information captured for deadlocks, lock timeouts or extended lock waits

Implement Event Monitors for units of work or lock-related events that store information in unformatted Event Monitor tables

Capture SQL section information using an ACTIVITIES Event Monitor and use the data to generate Explain reports

Page 16: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

16

DB2 9 for LUW Advanced Database Administration for Experts This course is designed to teach you how to:

Fully use the advanced technical functions and features of DB2 LUW.

Perform advanced monitoring using the DB2 administrative views and routines in SQL queries. Use the db2diag.log file messages to direct your investigation of problems using db2pd, INSPECT, db2support, and DB2 traces. Use DB2's health monitoring and Health Center to review the health indicator status for the instance, database, and table spaces. The type of problems monitored and resolved include buffer pool activity, lock contention, long running SQL statements, and log space utilization. Understand how automatic and manual first occurrence data capture can help to collect the diagnostic information needed to solve problems.

Configure and manage the implementation of DB2 instance or database level auditing, including using the db2audit command and creation of audit policies which can be assigned to specific tables, users or database roles to perform selective collection of audit records.

Explore DB2's management of disk space usage in Database Managed Storage (DMS) table spaces, including the activities of the rebalancer. Use DB2 commands and utilities to check the high water mark on table spaces and to monitor the rebalance operation. Move data from one table to another or from one database to another using utilities, such as db2move and db2relocatedb.

Implement automatic storage management for table spaces or enable automatic resize options for DMS managed table spaces to reduce administration requirements and complexity.

Exploit and monitor the REORG utility processing for offline and online table, and index reorganization This includes planning for the disk space and database log space necessary for reorganization. Configure the options and policies to automate the collection of table and index statistics or the reorganization of DB2 tables and indexes to improve performance and provide efficient disk space utilization. Monitor and review DB2's automated operations using health monitoring and diagnostic log messages.

Utilize the REORG Utility to implement row compression for large tables, to reduce disk utilization and improve I/O performance for a DB2 database and understand the automatic creation of compression dictionaries.

For Multidimensional Clustering (MDC) tables, determine how to select the dimension columns and table space extent size for efficient implementation of MDC tables. Compare the block indexes used for MDC table with rows based indexes. Select the MDC rollout option that best matches application needs and achieves the best performance results.

Determine configuration options to use for connecting DB2 clients to DB2 LUW database servers using TCP/IP using the configuration assistant. Implement DB2 support for Lightweight Directory Access Protocol (LDAP) or DB2 thin client support to reduce administration requirements. Enablement of remote administration through use of DB2 Administration Server (DAS).

Plan and implement range based table partitioning for large DB2 tables. Utilize the ALTER TABLE ATTACH and DETACH options to support roll-in and roll-out operations for range-partitioned tables. Compare the advantages of selecting or combining range partitioning with the hash-based partitioning used in DB2 DPF databases or the multiple dimensions provided by MDC tables.

You get practical experience in the planning and utilization of a wide variety DB2 LUW utilities and functions by performing a series of lab exercises using DB2 Enterprise 9.5 installed on a Linux platform. The exercises build skills that can be applied to DB2 database servers on any Linux, UNIX or Windows environment.

Audience

Page 17: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

17

This is an advanced course for DB2 LUW experienced database administrators who support DB2 for UNIX, Windows, and Linux databases.

Prerequisites

You should complete:

DB2 9 Database Administration Workshop for Linux (CL201) or

DB2 9 Database Administration Workshop for UNIX (CL211) or

DB2 9 Database Administration Workshop for Windows (CL231) or

Fast Path to DB2 9 for Experienced Relational DBAs (CL281) or

DB2 9 for Linux, UNIX, and Windows Quickstart for Experienced Relational DBAs (CL481) or

DB2 9 for LUW Multiple Partition DBA Workshop (CF24) or

DB2 9 for LUW Multiple Partition Environment for Single Partition DBAs (CG24)

or have equivalent experience

Skills taught

Monitor a DB2 LUW database using command line processor queries

Use the db2diag command to search the DB2 diagnostic log messages to resolve various common database problems

Implement DB2 Instance audit data collection using the db2audit command or database level auditing by creating audit policy objects and assigning the policies to objects using the AUDIT command.

Configure a DB2 database for autonomic utilities, including database statistics collection and table reorganization

Analyze REORGCHK reports to determine if the table or the index reorganization would improve database efficiency. Invoke and monitor the processing for the REORG utility running offline or online

Manage the disk space allocated in DMS table spaces using ALTER TABLESPACE to extend or to reduce the containers, and monitor the progress of the DB2 rebalancer process

Implement automatic resize for DMS table spaces or Automatic Storage management for table spaces to reduce the complexity of managing DB2 LUW databases

Use the DB2LOOK utility to extract the Data Definition Language (DDL) for existing database objects

Plan and execute the DB2MOVE utility to copy selected table data for an entire schema for objects from one DB2 database to another

Configure the TCP/IP connections from DB2 clients to DB2 database servers to support application access or remote administration by database administrators

Plan the movement of DB2 databases or table spaces using the Backup and Restore utilities or using the db2relocatedb command with non-DB2 utilities

Plan and implement MDC tables to improve application performance, including selecting the appropriate table space extent size

Utilize range-based partitioned tables to support large DB2 tables that require very efficient roll-in and roll-out capabilities

Course outline

Page 18: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

18

Advanced Connectivity and Remote Administration

Describe and verify the relevant registry variables for distributed architecture

Describe the flow through the different directories used by DB2 for connectivity between clients and servers

Maintain the directories for database connections

Enable DB2 LUW LDAP support

Explain the differences between the different options for client connectivity including the IBM Data Server Client and IBM Data Server Run Time Client

Implement automatic client rerouting and list the relevant entries

Describe the purpose of DB2 Administration Server (DAS)

Establish the TOOLS CATALOG database and identify how it is used

Utilize the Configuration Assistant to maintain database connection configurations for clients Advanced Locking for DB2 9

Describe the types of locks used by DB2 to support applications using different isolation levels

Configure the database parameters locklist and maxlocks to minimize lock escalations and lock waits

Utilize SNAPSHOT and Event monitors to analyze application lock waits and deadlocks

Set the DB2 registry variables to improve application efficiency, including DB2_EVALUNCOMMITTED, DB2_SKIPINSERTED and DB2_SKIPDELETED

Describe using DB2 expressions and functions to implement optimistic locking, including RID_BIT and ROW CHANGE TOKEN

Explain the use of Block level locks for Multidimensional Clustering, MDC tables Advanced Monitoring

Compare using GET SNAPSHOT commands to running SQL queries to collect snapshot monitor data

Describe the impact of enabling the Snapshot Monitor switches on the monitor data available and the performance overhead associated with collecting more detailed monitor data

Use the DB2 provided Administrative Views and Routines in SQL SELECT statements to retrieve snapshot performance statistics

Check database health indicators, like log space available and table space utilization using CLP queries with the Administrative Views Advanced Problem Determination

Describe the types of information collected by DB2 that can be used to diagnose problems, including the db2diag.log and the administration notification log

Plan the use of various diagnostic tools to address specific problems, including the db2diag command, db2pd, db2dart, inspect and db2level

Collect supporting information for DB2 database problems using db2support and db2trc

Explain how automatic and manual First Occurrence Data Capture (FODC) facilities can help collect diagnostic information

Analyze DB2 generated messages in the db2diag.log file and choose appropriate tools and commands to resolve the problems

Utilize the Health Monitoring functions of DB2 to check the health indicators for a DB2 instance, database, or table space DB2 Database Auditing

Page 19: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

19

Describe the tasks for DB2 database auditing performed by the SYSADM user

List the security administration tasks for DB2 databases that require the SECADM database authority in performing database level audits

Utilize the db2audit command in implement instance level auditing and to configure the audit data and archive locations

Create audit policies to enable collection of specific categories of audit data for a DB2 database

Assign audit policies to selected tables, users or database roles using the AUDIT statement Advanced Table Space Management

Describe the benefits and limitations of using SMS, DMS and Automatic Storage management for table spaces

Examine GET SNAPSHOT FOR TABLESPACES reports to obtain the current disk space usage, the High Water Mark and describe the mapping of extents to the DMS table space containers

Utilize the DB2DART utility to list and analyze the current High Water Mark for a DMS table space

Monitor the processing done by the Rebalancer using LIST UTILITIES and GET SNAPSHOT FOR TABLESPACES output

Plan and implement changes to disk space allocations using ALTER TABLESPACE options: ADD, EXTEND, RESIZE, DROP, and BEGIN NEW STRIPE SET

Plan the implementation of Large Row Identifiers and Large table spaces to support increased table size

Use the Health Monitor and Storage Management functions to track and monitor table space utilization Advanced Data Movement

Describe the options for moving data between tables including using the Import, Export and Load utilities as well as an SQL Insert with a subselect

Configure the LOAD Utility options to optimize the performance of loading data into DB2 tables

Select the best method for duplication of table and index definitions, including the db2look utility

Utilize the db2move utility to move a group of tables into the same or a different database

Copy the objects for a schema using the db2move utility or the ADMIN_COPY_SCHEMA procedure

Change the Automatic Storage paths for a database

Use the RESTORE Utility with a REDIRECT option to move an 1entire database or selected table spaces to a different location

Setup a db2relocatedb command file to rename a database, copy a database or move table space containers Advanced Table Reorganization

Describe the reasons for reorganizing tables and indexes

Examine a REORGCHK report to determine which tables and indexes to reorganize

Use GET SNAPSHOT commands, the db2pd command, or queries with DB2 provided table functions to monitor REORG Utility progress

Analyze DB2 generated messages in the db2diag.log file and administration notification log to resolve the problems

Utilize the REORG utility to implement row compression for a table

Compare using REORG to build a compression dictionary to automatic dictionary creation

Plan the use of offline and online table and index reorganizations to minimize the impact to applications and optimize performance

Page 20: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

20

Understand the locking and logging required for online and offline REORGs Multidimensional Clustering

Compare the features and performance advantages of multidimensional clustering (MDC) to single-dimensional clustering

Define the concepts of MDC tables, including cell, slice, and dimension

Describe the characteristics of the block indexes used for MDC tables including the index maintenance performed for SQL INSERT, DELETE, and UPDATEs

Explain how the block and row indexes can be combined to efficiently process SQL statements

Utilize the LOAD Utility to roll-in new data into a MDC table

Select options for efficient data roll-out and roll-in

Analyze the effects on table space size of selecting alternative dimensions and extent sizes Autonomic DB2 Utilities

Describe the automatic database maintenance facilities provided by DB2 for database backups, table statistics collection and table reorganization

Configure a database for automated utilities using the Configure Automatic Maintenance wizard

Explain the evaluation cycles for each of the automated utilities

Select options for automatic statistics collection, including real time statistics

Analyze the DB2 event messages generated by automatic utility evaluation and execution Table Partitioning

Describe the options for handling data roll-in and roll-out using DB2 Version 8.2 features, including DPF database partitioning, Multi-Dimensional Clustering (MDC) and UNION ALL views.

Describe the basic concepts for range-based table partitioning, including global indexing and multiple table spaces.

Define the data partition ranges for a table using the short and long form syntax.

List the steps used for data roll-in and roll-out for table partitioning, including ATTACH, DETACH and ADD for data partitions.

Compare the roll-in and roll-out functions for table partitioning to using DPF database partitions or MDC tables.

Plan the use of online SET INTEGRITY as part of the roll-in and roll-out processing for range-partitioned tables.

Describe the maintenance for refresh immediate materialized query tables when used with table partitioning.

Select between table partitioning, MDC, and DPF database partitioning depending on the application and data characteristics.

Page 21: IBM DB2 courses, Universidad Cenfotec · PDF fileo Two courses on programming (such as structured programming, ... DB2 9 Database Administration Workshop for Linux, UNIX, and Windows

21

Relational Database Design This course presents a methodology for modeling and designing relational databases.

Audience

This course is for people responsible for designing relational databases and people who need an in-depth understanding of data modeling.

Prerequisites

The course does not require any special prerequisites.

Skills taught

Design relational databases.

Consider logical and physical aspects including integrity requirements during the design

Course outline

Relational concepts

Views and results during database design

Problem statement

Entity-relationship modeling

Data and process inventories

Tuple types

From tuple types to tables

Integrity rules

Indexes

Logical data structures and views