This course is not scheduled. Inquire about Onsite training at your facility.
Overview
| Course code | 3L482 | Skill level | Intermediate |
|---|---|---|---|
| Duration | 4.0 days | Delivery type | Instructor Led - Online Training
(Hands-on labs) |
| Course type | Public or Private on-site | ||
| Public price | USD $2,600.00 plus tax | ||
ILO classes are closed to further enrollment 5 business days before the start of class so that we can ensure students will have their materials on time. Please enroll in the next offering if the class start date is less than 5 days from today.
This is an online course. Please do not make travel arrangements for this course.After you receive confirmation that you are enrolled, you will be sent further instructions to access audio, video and remote labs.
This course teaches you to perform basic and advanced database administrative tasks using DB2 9 for Linux, UNIX, and Windows. These tasks include creating and populating databases and implementing a logical design to support recovery requirements. The access strategies selected by the DB2 optimizer will be examined using the DB2 Explain tools. Various diagnostic methods will be presented, including using the db2diag.log file messages to direct your investigation of problems, as well as using the commands db2pd, INSPECT, and db2support and DB2 traces. Students will learn how to implement automatic archival for database logs and how to plan a redirected database restore to relocate either selected table spaces or an entire database. This course provides a quick start to DB2 database administration skills for experienced relational Database Administrators (DBA).
You will get practical experience in the basic and advanced database administrative tasks of a wide variety of DB2 LUW utilities and functions by performing a series of lab exercises on a Linux platform. The exercises build skills that can be applied to DB2 database servers on any Linux, UNIX or Windows environment.
Course Materials
The course materials address DB2 9 for Linux, UNIX, and Windows, Version 9.7.
Hands-On Labs
Ten labs are included to address DB2 9 for Linux, UNIX, and Windows, Version 9.7.
This is the Instructor-led online version of classroom course CL482.
View this course in other countries
Training Paths that reference this course are:
Audience
This is an intermediate course for experienced DBAs and technical individuals, with experience on other relational database platforms, who plan, implement, and maintain DB2 9 for Linux, UNIX, and Windows databases.
Prerequisites
Before taking this course you should be able to:
- Perform basic database administration tasks on a relational database system
- 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
These skills can be developed by taking:
- OS Training:
- AIX 5L Basics
- Linux Basics and Administration
- Windows Systems Administration or
- by having equivalent HP-UX or Solaris administration experience
- DB2 SQL Workshop
- DB2 Fundamentals
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
- Describe the application development process with respect to DB2 considerations
- Use autonomic features of DB2
- Implement DB2 security
- Effectively apply advanced techniques to administer a DB2 database
- Explore the DB2 recovery facilities and database configuration options
- Perform the implementation of automated archival and retrieval of database logs
- Identify Explain tools to examine access strategies
- Select the appropriate utility to relocate a database or a portion of a database, including using the RESTORE utility or the db2relocatedb command
- Use the DB2 Design Advisor to analyze SQL statements to suggest new indexes to improve application performance
- Examine Explain output to determine access strategy chosen by Optimizer
- Use the db2diag.log file messages to direct your investigation of problems using db2pd, INSPECT, db2support, and DB2 traces
- Use DB2 health monitoring and Health Center to review the health indicator status for the instance, database and table space
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
- 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
- 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 concurrencyExplain 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
- Describe privileges required for binding and executing a package
- Describe the difference between explicit privileges and implicit privileges
- Describe the different DB2 authorization levels
DB2 Recovery Log Management
- Select the DB2 Database parameters that support the DB2 logs
- Configure the database options to automate archive log management
- Implement infinite active logging to support applications that require large amounts of logged database changes
- Describe the options provided by DB2 9 for Linux, UNIX, and Windows to reduce log volume, including the NOT LOGGED INITIALLY option
DB2 Database and Table Space Relocation
- Understand the facility of the DB2 RESTORE command to recover table spaces to different containers
- Use the SET TABLESPACE CONTAINERS command to define new containers during a redirected restore
- Plan the use of redirected restore as part of a disaster recovery
- Use db2relocatedb when moving or copying DB2 databases with non-DB2 utilities
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
Using Indexes for Performance
- Describe the Indexing options that can be used to improve
- performance Index Only Access, Clustered Index, Reverse Scans, Include Columns, Index Freespace
- Describe the Block Indexing capability for MDC tables
- 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
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
Agenda
Day 1
Welcome
- Unit 1 Overview of DB2 9 for Linux, UNIX, and Windows
- Unit 2 Command Line Processor (CLP) and GUI usage
- Unit 3 The DB2 environment
- Lab 1 (Customization)
- Unit 4 Creating databases and data placement
- Lab 2 (Creating DB/TBSP)
- Unit 5 Creating database objects
- Lab 3 (Creating database objects)
- Unit 6 Moving data
Day 2
- Lab 4 (Moving data)
- Unit 7 Backup and recovery
- Lab 5 (recovery)
- Unit 8 Locking and Concurrency
- Unit 9 Problem determination
- Lab 6 (Locking)
- Unit 10 Security
Day 3
- Unit 11 DB2 Recovery Log Management
- Lab 7 (Recovery Log Management)
- Unit 12 Database and table space relocation
- Lab 8 (Table space relocation)
- Unit 13 Using Explain Tools
Day 4
- Unit 14 Using Indexes for performance
- Lab 9 (Using Indexes for performance)
- Unit 15 Advanced Problem Determination
- Lab 10 (DB2 Advanced problem determination)
