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 developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

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 9 table partitioning

Improved large database management

Paul Read (paul_read@uk.ibm.com), Product Introduction Manager, EMC
Paul Read
Paul Read is a Product Introduction Manager in the Global BetaWorks team based in the IBM Lab in Hursley, Hampshire, United Kingdom. He is responsible for Beta and Early Support Programs for Information Management products on Linux, UNIX and Windows.
(An IBM developerWorks Contributing Author)
Richard Hewitt (richard_hewitt@uk.ibm.com), IT Specialist, DB2 LUW Consultant, IBM UK
Author Photo: Richard Hewitt
Richard is a DB2 consultant in the Application and Integration Middleware Software pan-IOT Cross-Brand Services Team based in the IBM Lab in Hursley, UK. He is responsible for application projects with DB2 on Linux, Unix, and Windows.

Summary:  This tutorial is designed to demonstrate the functionality of Range Partitioning in DB2® 9. Participants will receive the hands-on experience of using the features of range partitioning with DB2 tables. Table partitioning is a data organization scheme in which table data is divided across multiple storage objects called data partitions, or ranges, according to values in one or more table columns. Each data partition is stored separately. These storage objects can be in different table spaces, in the same table space, or a combination of both.

Date:  14 Dec 2006
Level:  Intermediate PDF:  A4 and Letter (813 KB | 37 pages)Get Adobe® Reader®

Activity:  9754 views
Comments:  

Before you start

Table data is partitioned as specified in the PARTITION BY clause of the CREATE TABLE statement. The columns used in this definition are referred to as the table partitioning key columns.

Further description of the feature can be found in "Table partitioning in DB2 9" (developerWorks, May 2006).

Table partitioning offers the following:

  • Easy roll-in and roll-out of table data
  • Easier administration of large tables
  • Flexible index placement
  • Improved performance for business intelligence style queries

About this tutorial

The following exercises enable you to work with the table partitioning feature and demonstrate the roll-in and roll-out of table data, easier administration of large tables, flexible index placement, and improved performance for business intelligence style queries.

They have been developed to demonstrate one or more tasks found within each of the areas.


Objectives

The objective of this session is to explore the features and benefits of DB2 9 range partitioning in the following areas:

  • Creating range partitioned tables
  • Roll-in and roll-out of partitions
  • Partitioned table management
  • Index management and placement


Prerequisites

This tutorial is written for DB2 specialists whose skills and experience are at a beginning to intermediate level. You should have a general familiarity with using the DB2 command line, DB2 administration tools, and a working knowledge of SQL.

System Requirements

To run the examples in this tutorial, you need the following:

  • DB2 9 Data Server
  • Microsoft® Windows® 2000 or later, and an account with administrator privileges, or Linux® (Validated edition) with root access.
  • Make sure the Java Runtime Environment is 1.4.2 or later on your system.
  • Refer to the DB2 9 system requirements page to ensure that your hardware meets the requirements.

DB2 9 Express C is available from the above link. For steps on installing DB2, refer to the "DB2 XML Evaluation Guide" (developerWorks, June 2006). Unless the DB2 configuration is altered, DB2 automatically starts after installation.

Use the samples scripts and the data provided in the partition.zip file to demonstrate the concepts in this tutorial. Extract the contents into a sub-directory called scripts (C:\scripts or home/userid/scripts). This directory is referred to simply as stmm_scripts throughout this tutorial. This tutorial assumes that you have used the default directories for the DB2 installation, and all the DB2 exercises are performed by a database administrator ID.

1 of 9 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management
ArticleID=183833
TutorialTitle=DB2 9 table partitioning
publish-date=12142006
author1-email=paul_read@uk.ibm.com
author1-email-cc=
author2-email=richard_hewitt@uk.ibm.com
author2-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.