Scalable Database Server, HiRDB Version 8 Installation and Design Guide
This section describes the environment setup method using a batch file.
Figure C-1 shows the environment setup procedure using a batch file.
Figure C-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 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
|
| 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 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 C-3 Organization of sample HiRDB file system areas created by SPsetup.bat
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 | 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 |
|
| Server status files | rdsys011\sts1a1 rdsys012\sts1b1 rdsys013\sts2a1 rdsys014\sts2b1 rdsys015\sts3a1 rdsys016\sts3b1 |
Dual files |
|
| 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 | ||
| RPC trace file | %PDDIR%\spool\pdrpctr | ||
| 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.
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.