5.5.2 Example 1 (HiRDB/Single Server)

This example creates system RDAREAs in the following HiRDB file system area for RDAREAs:

Organization of this subsection
(1) Creating the control statement file
(2) Executing the database initialization utility (pdinit)

(1) Creating the control statement file

Create the control statement file that is to be specified in the database initialization utility's (pdinit) argument. You can create the control statement file at any location. This example creates a file under the following filename:

Contents of the control statement file

create rdarea RDMAST for masterdirectory                      1
   file name "/rdarea01/rdmast01"
         initial 10 segments;
create rdarea RDDIR for datadirectory                         2
   file name "/rdarea01/rddir01"
         initial 5 segments;
create rdarea RDDIC for datadictionary                        3
   extension use 50 segments
   file name "/rdarea01/rddic01"
         initial 20 segments;

Explanation:
  1. Definition of the master directory RDAREAs
    This example creates a HiRDB file named rdmast01 in the HiRDB file system area. This HiRDB file has 10 segments.
  2. Definition of data directory RDAREAs
    This example creates a HiRDB file named rddir01 in the HiRDB file system area. This HiRDB file has five segments.
  3. Definition of the data dictionary RDAREAs
    This example creates a HiRDB file named rddic01 in the HiRDB file system area. This HiRDB file has 20 segments.
    The example uses the automatic RDAREA extension feature. The extension size is 50 segments.

(2) Executing the database initialization utility (pdinit)

Example of command entry

pdinit -d /usr/hirdb/pdinit01

Explanation:
-d: Specifies the name of the control statement file that was previously created in (1).