5.7.3 Example 2 (HiRDB/Parallel Server)

This example creates user RDAREAs in the following HiRDB file system area for RDAREAs on the server machine where the back-end server is defined:

Organization of this subsection
(1) Creating the control statement file
(2) Executing the database structure modification utility (pdmod)

(1) Creating the control statement file

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

Contents of the control statement file

create rdarea USER01 for user used by PUBLIC                  1
   server name b001
   extension use 50 segments
   file name "/rdarea02/user01"
        initial 500 segments;
create rdarea USER02 for user used by PUBLIC                  2
   server name b001
   extension use 50 segments
   file name "/rdarea02/user02"
        initial 500 segments;

Explanation:
  1. Definition of the user RDAREA (USER01)
    USER01 is a public RDAREA (PUBLIC). This example specifies the name of the back-end server (b001) that manages USER01. It creates a HiRDB file named user01 in the HiRDB file system area. This HiRDB file has 500 segments. The example uses the RDAREA automatic extension feature. The extension size is 50 segments.
  2. Definition of the user RDAREA (USER02)
    USER02 is a public RDAREA (PUBLIC). This example specifies the name of the back-end server (b001) that manages USER02. It creates a HiRDB file named user02 in the HiRDB file system area. This HiRDB file has 500 segments. The example uses the RDAREA automatic extension feature. The extension size is 50 segments.

(2) Executing the database structure modification utility (pdmod)

Example of command entry

pdmod -a /usr/hirdb/pdmod01

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