Appendix D.1 Overview of environment setup using a batch file

This section describes the environment setup method using a batch file.

Notes about this chapter
For details about how to set up an environment using a batch file, see the description about the simple setup method in the HiRDB/Single Server or HiRDB/Parallel Server program folder. In this chapter, the description of a procedure is given assuming that the HiRDB/Single Server has been installed in the default installation directory (C:\win32app\hitachi\hirdb_s)

The following figure shows the procedure for setting up the environment using a batch file.

Figure D-1 Environment setup procedure using a batch file

[Figure]

Organization of this subsection
(1) Contents of the batch file (SPsetup.bat)
(2) Configuration of the system to be constructed
(3) HiRDB file system areas and files to be created

(1) Contents of the batch file (SPsetup.bat)

HiRDB provides the SPsetup.bat batch file (C:\win32app\hitachi\hirdb_s\sample\SPsetup.bat), which automatically sets up a HiRDB environment. SPsetup.bat automatically executes the following operations:

SPsetup.bat automatically generates the environment using the files shown in the table below. These files are called sample configuration. You can construct a system suitable for your applications by customizing the contents of these files. These files are located in the C:\win32app\hitachi\hirdb_s\conf directory.

Table D-1 Contents of sample configuration

FilenameDescription
pdsys
pdutsys
sds01
HiRDB system definition files
  • pdsys: System common definitions
  • pdutsys: Unit control information definitions
  • sds01: Single server definitions
fmkfile.batBatch file for creating the following HiRDB file system areas:
  • HiRDB file system area for RDAREAs
  • HiRDB file system area for work table files
fmkfs.batBatch file for creating the following HiRDB file system area:
  • HiRDB file system area for system files
sysfint.batBatch file for creating system files
initdb.batBatch file for creating RDAREAs. It executes the database initialization utility (pdinit).
MkinitBatch file containing the control statements of the database initialization utility (pdinit).

(2) Configuration of the system to be constructed

Figures D-2 and D-3 show the sample system configuration that is created when SPsetup.bat is executed. If not customized, the batch file creates this system configuration.

Figure D-2 Sample system configuration created by SPsetup.bat

[Figure]

Figure D-3 Organization of sample HiRDB file system areas created by SPsetup.bat

[Figure]

[Figure]

(3) HiRDB file system areas and files to be created

Tables D-2 and D-3 list the HiRDB file system areas and files that are created by SPsetup.bat. If not customized, the batch file creates these HiRDB file system areas and files.

Table D-2 Names and sizes of HiRDB file system areas created by SPsetup.bat

Type of HiRDB file system areaSize of HiRDB file system area (MB)HiRDB file system area name
For system files296rdsys011#1
rdsys012#1
rdsys013#1
rdsys014#1
rdsys015#1
rdsys016#1
For RDAREAs (system RDAREAs)80rdsys02#2
For work table files--rdsys03#2
For RDAREA (user RDAREAs)160rdsys04#2
For RDAREAs (user LOB RDAREAs)40rdsys05#2

#1: Created in the %PDDIR%\area directory.

#2: Created in the %PDDIR%\area directory.

Table D-3 Names of files created by SPsetup.bat

File typeFilenameRemarks
HiRDB system definition filesSystem common definition file%PDDIR%\conf\pdsysThe directory is created during installation.
Unit control information definition file%PDDIR%\conf\pdutsys
Single server definition file%PDDIR%\conf\sds01
System filesSystem log filesrdsys011\log1#1
rdsys012\log2#1
rdsys013\log3#1
rdsys014\log4#1
rdsys015\log5#1
rdsys016\log6#1
6 groups
Synchronization point dump filesrdsys014\spd1#1
rdsys015\spd2#1
rdsys016\spd3#1
3 groups
Unit status filesrdsys011\utsts1a#1
rdsys012\utsts1b#1
rdsys013\utsts2a#1
rdsys014\utsts2b#1
rdsys015\utsts3a#1
rdsys016\utsts3b#1
Dual files x 3 per unit
Server status filesrdsys011\sts1a#1
rdsys012\sts1b#1
rdsys013\sts2a#1
rdsys014\sts2b#1
rdsys015\sts3a#1
rdsys016\sts3b#1
Dual files x 3 per server
System RDAREAsMaster directory RDAREArdsys02\rdmast#2RDAREA name: RDMAST
Data directory RDAREArdsys02\rddirt#2RDAREA name: RDDIRT
Data dictionary RDAREArdsys02\rddict#2RDAREA name: RDDICT
Data dictionary LOB RDAREA (for storing source)rdsys02\rtn_src#2RDAREA name: DIC_RTN_SRC
Data dictionary LOB RDAREA (for storing object)rdsys02\rtn_obj#2RDAREA name: DIC_RTN_OBJ
Work table filerdsys03#2--
RPC trace file%PDDIR%\spool\pdrpctr--
User RDAREA (for storing data)rdsys04\rddata10#2RDAREA name: RDDATA10
User RDAREA (for storing indexes)rdsys04\rdindx10#2RDAREA name: RDINDX10
User LOB RDAREArdsys05\rlob1#2RDAREA name: RLOB1
rdsys05\rlob2#2RDAREA name: RLOB2

#1: Created in the %PDDIR%\area directory.

#2: Created in the %PDDIR%\area directory.