This section describes the environment setup method using a batch file.
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
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
Filename | Description |
---|---|
pdsys pdutsys sds01 | HiRDB system definition files
|
fmkfile.bat | Batch file for creating the following HiRDB file system areas:
|
fmkfs.bat | Batch file for creating the following HiRDB file system area:
|
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). |
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 D-3 Organization of sample HiRDB file system areas created by SPsetup.bat
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 area | Size of HiRDB file system area (MB) | HiRDB file system area name |
---|---|---|
For system files | 296 | rdsys011#1 rdsys012#1 rdsys013#1 rdsys014#1 rdsys015#1 rdsys016#1 |
For RDAREAs (system RDAREAs) | 80 | rdsys02#2 |
For work table files | -- | rdsys03#2 |
For RDAREA (user RDAREAs) | 160 | rdsys04#2 |
For RDAREAs (user LOB RDAREAs) | 40 | rdsys05#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 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\log1#1 rdsys012\log2#1 rdsys013\log3#1 rdsys014\log4#1 rdsys015\log5#1 rdsys016\log6#1 | 6 groups |
Synchronization point dump files | rdsys014\spd1#1 rdsys015\spd2#1 rdsys016\spd3#1 | 3 groups | |
Unit status files | rdsys011\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 files | rdsys011\sts1a#1 rdsys012\sts1b#1 rdsys013\sts2a#1 rdsys014\sts2b#1 rdsys015\sts3a#1 rdsys016\sts3b#1 | Dual files x 3 per server | |
System RDAREAs | Master directory RDAREA | rdsys02\rdmast#2 | RDAREA name: RDMAST |
Data directory RDAREA | rdsys02\rddirt#2 | RDAREA name: RDDIRT | |
Data dictionary RDAREA | rdsys02\rddict#2 | RDAREA name: RDDICT | |
Data dictionary LOB RDAREA (for storing source) | rdsys02\rtn_src#2 | RDAREA name: DIC_RTN_SRC | |
Data dictionary LOB RDAREA (for storing object) | rdsys02\rtn_obj#2 | RDAREA name: DIC_RTN_OBJ | |
Work table file | rdsys03#2 | -- | |
RPC trace file | %PDDIR%\spool\pdrpctr | -- | |
User RDAREA (for storing data) | rdsys04\rddata10#2 | RDAREA name: RDDATA10 | |
User RDAREA (for storing indexes) | rdsys04\rdindx10#2 | RDAREA name: RDINDX10 | |
User LOB RDAREA | rdsys05\rlob1#2 | RDAREA name: RLOB1 | |
rdsys05\rlob2#2 | RDAREA name: RLOB2 |
#1: Created in the %PDDIR%\area directory.
#2: Created in the %PDDIR%\area directory.