Scalable Database Server, HiRDB Version 8 Description

[Contents][Glossary][Index][Back][Next]

6.4 Work table files

A file that stores temporary information needed for executing an SQL is called a work table file. Work table files are created automatically by HiRDB. The HiRDB administrator must create HiRDB file system areas for the work table files.

Organization of this section
(1) SQL statements and operations that require a work table file
(2) Organization of work table files
(3) Creating a HiRDB file system area for work table files

(1) SQL statements and operations that require a work table file

(a) SQL statements that require a work table file

A work table file is used when multiple tables are joined by a SELECT statement for retrieval or during execution of certain SQL processing, such as CREATE INDEX.

The following types of SQL processing require work table files:

  1. Retrieval specifying the UNION [ALL] or EXCEPT [ALL] clause
  2. Specification in an UPDATE or DELETE statement of a retrieval condition based on a column for which an index is defined
  3. DROP SCHEMA
  4. DROP TABLE
  5. DROP INDEX
  6. Revocation with REVOKE statement of access privileges
  7. CREATE INDEX
  8. Creation with ASSIGN LIST statement of a list from a base table
  9. Specification in a SELECT statement of any of the following:
    • Retrieval by joining multiple tables

* Applies to a HiRDB/Parallel Server only; not applicable to a HiRDB/Single Server.

(b) Operations that require a work table file

The following operations require a work table file:

(2) Organization of work table files

Work table files are required at the following servers:

(3) Creating a HiRDB file system area for work table files

The pdfmkfs command is used to create a HiRDB file system area for work table files. Additionally, you specify the pdwork operand of the server definition to create an environment in which a HiRDB file system area for work table files can be created. The name of the HiRDB file system area for work tables is specified in the pdwork operand.

For details (size, etc.) about designing and creating work table files, see the HiRDB Version 8 Installation and Design Guide.

Reference note
If you use either of the following environment setup support tools when you install HiRDB for the first time, a HiRDB file system area for work table files will be created based on the information you enter (the pdwork operand will also be configured):
  • Simple setup tool
  • Batch file (SPsetup.bat)