IBM Books

Administration Getting Started


SmartGuide Options for Tuning a Database

To tune a database to your requirements, use the Next push button in the Create Database SmartGuide to progress through the pages of the SmartGuide. You can specify:

Adding an Additional Table Space

The default user table space, USERSPACE1, is fine to use for simple tables that you create for experimental purposes. However, you should create your own table space for "real" tables.

To create a new table space:

  1. From the Control Center, click mouse button 2 on the Table Spaces folder icon, and select Create -> Table space using SmartGuide. The Create Table Space SmartGuide opens.

    Figure 16. Create Table Space SmartGuide


    * Figure SQLK0CTS not displayed.

  2. If you just need a basic table space:

    1. Enter a new name

    2. Define a container for the table space on the Containers page of the SmartGuide.

    3. Click on the Done push button

  3. Optional: If you want to specify more details about the table space, click on the Next or Back push buttons. For example, you can choose:

    The SmartGuide will step you through panels that prompt you for information. See the online help for explanations of all the choices.

From this point on, if you want a table to belong to a particular table space, you must provide the name of that table space when you create the table. For each table space, a row exists in the SYSCAT.TABLESPACES catalog view. If you do not specify a table space, the table will be placed in the first table space that was created (that is, the first one listed in SYSCAT.TABLESPACES). If you have not created any table spaces, the table will be placed in the default table space (IBMDEFAULTGROUP, or a table space created by the same user ID that is creating the table, or USERSPACE1, in that order). If none of the default table spaces exist, table creation will fail.

The Administration Guide describes more advanced table space design considerations:

Suggestions for Allocating Storage for a Dedicated Server

We suggest the following for setting up your disks, containers, table spaces, and tables, and their relationships among each other. Note that the suggestions below reflect only one sample implementation which allows you to add more containers later as your data grows. Each disk is used as a raw device (unpartitioned drive). This suggested implementation may not apply to a large database configuration.

Creating a Container

This section describes how to access the Change Container window from which you can create a container.

  1. From the Control Center, click mouse button 2 on the Table Spaces folder icon, and select Create ->Table space using SmartGuide. The Create Table Space SmartGuide opens.

  2. Click on the Management tab.

  3. Select Low maintenance to create an SMS container. Select High performance to create a DMS container (file or raw device).

    An SMS container uses the file system's services to perform I/O. The attributes of this method are:

    A DMS container bypasses the file system's services and accesses the file or disk directly (this is often referred to as using raw I/O). The attributes of this method are:

    In general, small personal databases are easiest to manage with SMS table spaces. If you choose to use DMS table spaces with device containers, you must be prepared to tune and administer your environment.

  4. Click on the Next push button so that you move to the Containers page.

  5. Click on the Add push button. The Add Container window opens. If you require assistance while creating a container, invoke the online help.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

[ DB2 List of Books | Search the DB2 Books ]