Scalable Database Server, HiRDB Version 8 System Definition

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

Appendix C.2 Example 2 (HiRDB/Single Server: with utility special unit)

In this example, a utility special unit is installed in the HiRDB/Single Server defined in Example 1. System definitions for the HiRDB/Single Server and the utility special unit are created. The system configuration is shown below:

Unit configuration

[Figure]

System files configuration for the utility special unit

[Figure]

Organization of this subsection
(1) System common definition for the HiRDB/Single Server
(2) System common definition for the utility special unit
(3) Unit control information definition for the utility special unit

(1) System common definition for the HiRDB/Single Server

         :
pdunit -x host2 -u UNT2 -d "/HiRDB" -p 20002
         :

Explanation
This coding modifies the system common definition created in Example 1 (by adding the pdunit operand).
The added pdunit operand defines the unit configuration of the utility special unit.

(2) System common definition for the utility special unit

 
set pd_system_id = PDB2                                                1
set pd_name_port = 20002                                               2
pdunit -x host1 -u UNT1 -d "/HiRDB" -p 20001                           3
pdunit -x host2 -u UNT2 -d "/HiRDB"                                    4
pdstart -t SDS -s sds1 -u UNT1                                         5
 

Explanation
  1. Specifies the HiRDB identifier.
  2. Specifies the HiRDB port number.
  3. Specifies the unit configuration in the HiRDB/Single Server.
  4. Specifies the unit configuration in the utility special unit.
  5. Specifies the server configuration in the HiRDB/Single Server.

(3) Unit control information definition for the utility special unit

 
set pd_unit_id = UNT2                                                  1
set pd_syssts_file_name_1 = "untsts1","/sysfile_a/usts1a",\            2
                                      "/sysfile_b/usts1b"
set pd_syssts_file_name_2 = "untsts2","/sysfile_a/usts2a",\
                                      "/sysfile_b/usts2b"
 

Explanation
  1. Specifies the unit identifier.
  2. Specifies the configuration of the unit status files.