Scalable Database Server, HiRDB Version 8 Installation and Design Guide

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

Appendix C.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)

Figure C-1 shows the environment setup procedure using a batch file.

Figure C-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 uses the files listed in Table C-1 to automatically create an environment. 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 C-1 Contents of sample configuration

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

(2) Configuration of the system to be constructed

Figures C-2 and C-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 C-2 Sample system configuration created by SPsetup.bat

[Figure]

Figure C-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 C-2 and C-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 C-2 Names and sizes of HiRDB file system areas created by SPsetup.bat

Type of HiRDB file system area Size of HiRDB file system area (MB) HiRDB file system area name
For system files 296 rdsys0111
rdsys0121
rdsys0131
rdsys0141
rdsys0151
rdsys0161
For RDAREAs (system RDAREAs) 80 rdsys022
For work table files [Figure] rdsys032
For RDAREA (user RDAREAs) 160 rdsys042
For RDAREAs (user LOB RDAREAs) 40 rdsys052

1 Created in the %PDDIR%\area directory.

2 Created in the %PDDIR%\area directory.

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

File type Filename Remarks
HiRDB system definition files System common definition file %PDDIR%\conf\pdsys The directory is created during installation.
Unit control information definition file %PDDIR%\conf\pdutsys
Single server definition file %PDDIR%\conf\sds01
System files System log files rdsys011\log11
rdsys012\log21
rdsys013\log31
rdsys014\log41
rdsys015\log51
rdsys016\log61
6 groups
Synchronization point dump files rdsys014\spd11
rdsys015\spd21
rdsys016\spd31
3 groups
Unit status files rdsys011\utsts1a1
rdsys012\utsts1b1
rdsys013\utsts2a1
rdsys014\utsts2b1
rdsys015\utsts3a1
rdsys016\utsts3b1
Dual files [Figure] 3 per unit
Server status files rdsys011\sts1a1
rdsys012\sts1b1
rdsys013\sts2a1
rdsys014\sts2b1
rdsys015\sts3a1
rdsys016\sts3b1
Dual files [Figure] 3 per server
System RDAREAs Master directory RDAREA rdsys02\rdmast2 RDAREA name: RDMAST
Data directory RDAREA rdsys02\rddirt2 RDAREA name: RDDIRT
Data dictionary RDAREA rdsys02\rddict2 RDAREA name: RDDICT
Data dictionary LOB RDAREA (for storing source) rdsys02\rtn_src2 RDAREA name: DIC_RTN_SRC
Data dictionary LOB RDAREA (for storing object) rdsys02\rtn_obj2 RDAREA name: DIC_RTN_OBJ
Work table file rdsys032 [Figure]
RPC trace file %PDDIR%\spool\pdrpctr [Figure]
User RDAREA (for storing data) rdsys04\rddata102 RDAREA name: RDDATA10
User RDAREA (for storing indexes) rdsys04\rdindx102 RDAREA name: RDINDX10
User LOB RDAREA rdsys05\rlob12 RDAREA name: RLOB1
rdsys05\rlob22 RDAREA name: RLOB2

1 Created in the %PDDIR%\area directory.

2 Created in the %PDDIR%\area directory.