Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

DB2 10.1 fundamentals certification exam 610 prep, Part 6: Data concurrency

Roger E. Sanders (roger_e_sanders@yahoo.com), Senior Consultant Corporate Systems Engineer, EMC Corporation
Roger Sanders
Roger E. Sanders is the president of Roger Sanders Enterprises Inc. and a senior consultant corporate systems engineer with EMC Corp. He has been working with DB2 for Linux, UNIX, and Windows since DB2 was introduced on the IBM Personal Computer (as part of OS/2 1.3 Extended Edition) and has been working in the storage industry for over a decade. He has written articles for IDUG Solutions Journal and Certification Magazine, authored DB2 tutorials and articles for IBM developerWorks, presented at several International DB2 Users Group (IDUG) and regional DB2 Users Group (RUG) conferences/meetings, taught numerous classes on DB2 Fundamentals and DB2 for LUW database administration, and is the author of 21 books on DB2 and one book on ODBC. For the past nine years, he has authored the Distributed DBA column in IBM Data Management Magazine (formerly DB2 Magazine), and he has helped IBM develop 18 DB2 for LUW certification exams. In 2008-2012, he was recognized as an IBM Champion (for data management); in 2010, he was recognized as an IBM developerWorks Contributing Author; and in 2011, he was recognized as an IBM developerWorks Professional Author.

Summary:  This article is designed to introduce you to the concept of data consistency and the mechanisms DB2® uses to maintain data consistency in single- and multi-user database environments. This will also help you prepare for Section 6 of the DB2 10.1 Fundamentals certification exam (Exam 610).

View more content in this series

Date:  30 Aug 2012
Level:  Intermediate PDF:  A4 and Letter (739 KB | 36 pages)Get Adobe® Reader®

Activity:  13695 views
Comments:  

Before you start

About this series

Thinking about obtaining the IBM Certified Database Associate — DB2 10.1 Fundamentals certification? If so, you've come to the right place. This DB2 10.1 Fundamentals certification preparation series is designed to cover all the topics you need to know before you sit down to take the DB2 10.1 Fundamentals certification exam (Exam 610). Even if you're not planning to seek certification right away, the information presented in this series can help you learn about many of the features and functionality available in DB2 10 for z/OS® and DB2 10.1 for Linux®, UNIX®, and Windows®.

You don't see the tutorial you're looking for yet? You can review the DB2 9 tutorials in the DB2 9 Fundamentals certification 730 prep series.


About this tutorial

Thirteen percent of the DB2 10.1 Fundamentals certification exam (Exam 610) is designed to test your knowledge of the mechanisms DB2 uses to allow multiple users and applications to interact with a database without adversely affecting data consistency. The questions that make up this portion of the exam are designed to evaluate:

  • Your ability to identify the appropriate isolation level to use for a given situation.
  • Your ability to identify the characteristics of DB2 locks.
  • Your ability to list objects for which locks can be acquired.
  • Your ability to identify factors that can influence locking.

This tutorial is designed to introduce the concept of data consistency and to the two important mechanisms DB2 uses to maintain data consistency in single- and multi-user database environments: isolation levels and locks. This tutorial is the sixth in a series of six tutorials you can use to prepare for the DB2 10.1 Fundamentals certification exam (Exam 610).


Objectives

The material in this tutorial covers the objectives in Section 6 of the DB2 10.1 Fundamentals certification exam (Exam 610). (You can view these objectives at http://www-03.ibm.com/certify/tests/obj610.shtml.)

After completing this tutorial, you should be able to:

  • Identify factors that influence locking.
  • List objects on which locks can be obtained.
  • Use the LOCK TABLE statement appropriately.
  • Identify characteristics of DB2 locks (common locks shared across all platforms).
  • Identify isolation levels that should be used for a given situation.
  • Know how and when to use currently committed (CC) semantics.

Prerequisites

In order to understand some of the material presented here, you should be familiar with the following terms:

  • Structured Query Language (SQL) — A standardized language used to define objects and manipulate data in a relational database.
  • Object — Anything in a database that can be created or manipulated with SQL (e.g., tables, views, indices, packages, etc.).
  • Table — A logical structure used to present data as a collection of unordered rows with a fixed number of columns. Each column contains a set of values, each value of the same data type. The definitions of the columns make up the table structure, and the rows contain the actual data.
  • Record — The storage representation of a row in a table.
  • Field — The storage representation of a column in a table.
  • Value — A specific data item that can be found at each intersection of a row and column in a table.
  • DB2 optimizer — A component of the SQL precompiler that chooses an access plan for a Data Manipulation Language (DML) SQL statement by modeling the execution cost of several alternative access plans and choosing the one with the minimal estimated cost.

System requirements

You do not need a copy of DB2 to complete this tutorial, but if you have access to a DB2 database server, you will be able to test some of the commands and concepts presented.

You can download a complimentary copy of DB2 Express-C from IBM.

1 of 8 | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management
ArticleID=831886
TutorialTitle=DB2 10.1 fundamentals certification exam 610 prep, Part 6: Data concurrency
publish-date=08302012
author1-email=roger_e_sanders@yahoo.com
author1-email-cc=roger_e_sanders@yahoo.com