Nonstop Database, HiRDB Version 9 Description

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

7.5.3 RDAREA automatic extension

When a space shortage is about to occur in an RDAREA, the size of the RDAREA can be expanded by adding segments to the HiRDB files of that RDAREA. This is called RDAREA automatic extension. The following two methods are available for automatically extending an RDAREA:

  1. Automatically expanding the HiRDB file system area
  2. Expanding HiRDB files within the HiRDB file system area

The following figure illustrates RDAREA automatic extension.

Figure 7-18 RDAREA automatic extension

[Figure]

Explanation
In Method 1, when adding a segment causes the HiRDB file system area to exceed its upper size limit, the HiRDB file system area is automatically expanded to the necessary size. With this method, you can create only one HiRDB file in each HiRDB file system area. The single HiRDB file that can be created is allocated to an RDAREA as the last HiRDB file area comprising the RDAREA.
In Method 2, HiRDB files are automatically expanded or added within the HiRDB file system area, up to its upper size limit.

For details about RDAREA automatic extension, see the HiRDB Version 9 System Operation Guide.

Organization of this subsection
(1) RDAREAs eligible for automatic extension
(2) Automatic extension triggers
(3) Criteria for selecting an RDAREA automatic extension method
(4) Setting automatic extension

(1) RDAREAs eligible for automatic extension

Automatic extension can be applied to the following RDAREAs:

(2) Automatic extension triggers

HiRDB automatically extends RDAREAs when any of the automatic extension triggers described below occur.

You can specify an automatic extension trigger in the pd_rdarea_extension_timing operand. For details, see the manual HiRDB Version 9 System Definition.

(3) Criteria for selecting an RDAREA automatic extension method

To apply RDAREA automatic extension, we generally recommend that you select Method 1. Because Method 1 automatically expands the HiRDB file system area to the maximum HiRDB file size (64 gigabytes), it is easy to estimate the area size and expand the database.

However, because Method 1 is subject to the following restrictions, select Method 2 for systems to which Method 1 cannot be applied.

(4) Setting automatic extension

The following subsections describe the procedures for setting automatic extension.

(a) Method 1

With this method, if RDAREA automatic extension causes the HiRDB file system area to exceed its upper size limit, the HiRDB file system area is automatically extended to the maximum HiRDB file size (64 gigabytes).

Procedure
  1. If necessary, change the HiRDB system definition.
    Specify an automatic extension trigger in the pd_rdarea_extension_timing operand. For details about how to change the HiRDB system definition, see the HiRDB Version 9 System Operation Guide.
  2. When you create the HiRDB file system area using the pdfmkfs command, specify the -a option.
  3. When you create the RDAREA, use a utility control statement# to specify the number of segments by which the RDAREA can be extended.
#
This can be specified in the CREATE RDAREA, EXPAND RDAREA, INITIALIZE RDAREA, or ALTER RDAREA statement of the database initialization utility, the database structure modification utility, or the registry facility initialization utility.
(b) Method 2

With this method, RDAREAs are automatically extended to the upper size limit set for the HiRDB file system area. If the HiRDB file system area has no free space available, automatic extension cannot occur. In such a case, either extend the RDAREA or reorganize the tables and indexes within it. If the number of extents exceeds the upper limit of 24, combine the extents of the HiRDB file system area into a single extent, or extend the RDAREA. For details about how to combine extents and HiRDB file system areas, see the HiRDB Version 9 System Operation Guide.

Procedure
  1. If necessary, change the HiRDB system definition and specify an automatic extension trigger in the pd_rdarea_extension_timing operand. For details about how to change the HiRDB system definition, see the HiRDB Version 9 System Operation Guide.
  2. When you create the HiRDB file system area using the pdfmkfs command, specify the maximum number of extensions (in the -e option).
  3. When you create the RDAREA, use a utility control statement# to specify the number of segments by which the RDAREA can be extended.
#
This can be specified in the CREATE RDAREA, EXPAND RDAREA, INITIALIZE RDAREA, or ALTER RDAREA statement of the database initialization utility, the database structure modification utility, or the registry facility initialization utility.