Further requirements

The following data base requirements exist for each database that QMF is installed in. The sections that follow describe the items in this list.

QMF DBSPACE requirements

DB2 for VM stores tables and indexes in tables within DBSPACEs. A DBSPACE is a logical allocation of space in the database. A DBSPACE holds data in 4,096-byte blocks called pages. QMF requires the use of public DBSPACEs, which allow multiple user access at the same time; any one user can be doing update, insert, or delete functions.

Because you cannot extend DBSPACEs after they are defined, you should overestimate the required number of pages. The penalty for overestimating DBSPACE pages is nominal because the unused DBSPACE pages are not stored. On the other hand, the penalty for underestimating DBSPACE pages can be quite expensive in terms of reorganization activities required to reestablish the data in a larger DBSPACE later.

DBSPACEs must first be created and then acquired for use through the DB2 ACQUIRE DBSPACE command. Because QMF issues the ACQUIRE DBSPACE command, you must be sure you have already created the appropriate DBSPACEs.

The DBSPACEs required by QMF, as well as their contents and default sizes, are shown in Table 27.

Table 27. DBSPACEs Required by QMF
DBSPACE Name Contents Default Size
DSQTSCT1 Q.OBJECT_DIRECTORY table 256
DSQTSCT2 Q.OBJECT_REMARKS table 256
DSQTSCT3 Q.OBJECT_DATA table 5120
DSQTSPRO Q.PROFILES table 128
DSQTSSYN Q.COMMAND_SYNONYMS table 128
DSQTSLOG Q.ERROR_LOG table 128
DSQTSGOV Q.RESOURCE_TABLE table 128
DSQTSRDO Q.DSQ_RESERVED table 128
DSQ2STBT QMF sample tables 128
DSQTSDEF QMF SAVE DATA 128
Notes:
  1. The default size of these DBSPACEs may not be correct for your installation. You should evaluate the DBSPACE requirements of your installation before creating the DBSPACEs.
  2. DSQTSCT3 should be your largest DBSPACE because it contains all your QMF queries, procedures, and forms. DBSPACEs DSQTSCT1 and DSQTSCT2 are created and acquired with a size of one page for each 25 pages in DBSPACE DSQTSCT3.
  3. DSQTSDEF is the default name for the DBSPACE to be used by the QMF SAVE DATA command. This DBSPACE name can be changed.
  4. Do not use SYS as the first three characters of a DBSPACE name; SYS denotes a DBSPACE reserved for DB2 system usage.
  5. The smallest DBSPACE size that DB2 for VM allows is 128 pages. DB2 may actually give you more pages than you request because it acquires storage in units of 128 pages. DB2 determines the number of pages you receive by rounding the number you specify to the next higher multiple of 128 pages.

    Example:  If you specify PAGES=53, DB2 acquires a block of 128 pages; if you specify PAGES=130, DB2 acquires 256 pages.

To determine how many of the ten DBSPACEs you need to create for your installation, perform these steps:

  1. Identify the number of additional DBSPACEs that you need, based on the following considerations:
  2. Run the following query to list the DBSPACEs defined and their sizes. To run this query, you must have DB2 for VM DBA authority or have SELECT authority on table SYSTEM.SYSDBSPACES. Run this query using QMF or ISQL:
    SELECT * FROM SYSTEM.SYSDBSPACES
      WHERE  DBSPACETYPE=1 AND OWNER=''

    Note: If you plan to create DBSPACEs while installing QMF, see the discussion in Step 2--Creating DB2 for VM DBSPACEs: DSQ2DBSC. If you need to create additional DBSPACEs after QMF is installed, use the procedures described in DB2 Server for VSE & VM Database Administration

QMF control tables

There are eight QMF control tables, each created in its own DB2 for VM DBSPACE. (Separate DBSPACEs improves performance.) The contents of each control table are:

Table 28. The QMF control tables
Table DB space Contents
Q.OBJECT_DIRECTORY DSQTSCT1 General information on all queries, forms, and procedures in the database
Q.OBJECT_REMARKS DSQTSCT2 Comments that were saved with the queries, forms, and procedures in the database
Q.OBJECT_DATA DSQTSCT3 Text defining the queries, forms, and procedures in the database
Q.PROFILES DSQTSPRO User session profiles
Q.ERROR_LOG DSQTSLOG Information on system, resource, and "unexpected condition" errors
Q.COMMAND_SYNONYMS DSQTSSYN Command synonyms
Q.RESOURCE_TABLE DSQTSGOV Resource and limit values for the QMF governor
Q.DSQ_RESERVED DSQTSRDO The information needed during QMF initialization

QMF catalog views

QMF requires the following three catalog views for the QMF LIST command and Prompted Query functions:

QMF sample tables

The sample tables are placed in DBSPACE DSQ2STBT. The table contents are described in the following list. (Each table provided by QMF contains information on the fictional J & H Supply Company.)

Table
Contains Information on:
Q.ORG
The company organization
Q.STAFF
The company personnel
Q.APPLICANT
New candidates for hire
Q.PRODUCTS
The company's products
Q.SALES
Sales and commissions
Q.PROJECT
Projects undertaken, by department
Q.INTERVIEW
Interviews of new hires
Q.SUPPLIER
Vendor information
Q.PARTS
Product parts data

QMF SQL packages

QMF contains SQL packages which must be loaded into each database in which QMF is installed. QMF Version 7.2 access modules contain the DSQD prefix in the SYSTEM.SYSACCESS table. For more information on access modules see DB2 Server for VM System Administration.

[ Previous Page | Next Page | Contents | Index ]