Table 24-6 lists and explains the configuration files that are to be created for the HiRDB/Single Server; Table 24-7 lists and explains the configuration files that are to be created for the HiRDB/Parallel Server.
To use these files, they must be copied under $PDDIR/conf, then appropriate changes must be made to them according to the notes provided in Table 23-6 or 23-7.
Specify the HiRDB directory path in the PDDIR environment variable.
Table 24-6 Files to be created for HiRDB/Single Server
File name | Contents | Notes |
---|---|---|
pdsys | System common definition |
|
pdutsys | Unit control information definition | None |
sds01 | Single server definition | |
sysfmkfs | Command for creating HiRDB file system areas for system files | |
sysfint | Command for initializing system files | |
logunld | Command for unloading system log files |
|
Table 24-7 Files to be created for HiRDB/Parallel Server
File name | Contents | Notes |
---|---|---|
pdsys | System common definition |
|
pdutsys1 | Unit control information definition for unt1 of host1 | After copying it to host1's environment, change the file name to pdutsys. |
pdutsys2 | Unit control information definition for unt2 of host2 | After copying it to host2's environment, change the file name to pdutsys. |
pdsvrc | Server common definition | None |
fes1 | Definition for front-end server fes1 | |
bes1 | Definition for back-end server bes1 | |
bes2 | Definition for back-end server bes2 | |
dic1 | Definition for dictionary server dic1 | |
sysfmkfs1 | Command for creating HiRDB file system areas for system files to be used by unt1 of host1 | Input from host1. |
sysfmkfs2 | Command for creating HiRDB file system areas for system files to be used by unt2 of host2 | Input from host2. |
sysfint | Command for initializing system files to be used by host1 and host2 |
|
Feslogunld | Command for unloading system log files for pdfes |
|
bes1logunld | Command for unloading system log files for pdbes1 | |
bes2logunld | Command for unloading system log files for pdbes2 | |
dic1logunld | Command for unloading system log files for pddic |
The following instruction must be executed to create the HiRDB file system areas:
$PDDIR/sample/sampleconf/fmkfile |
$PDDIR/sample/sampleconf/fmkfile |
The following instruction must be executed to allocate files such as system log files:
$PDDIR/sample/sampleconf/sysfmkfs |
$PDDIR/sample/sampleconf/sysfmkfs1 |
$PDDIR/sample/sampleconf/sysfmkfs2 |
The following instruction must be executed to initialize files such as system log files:
$PDDIR/sample/sampleconf/sysfint |
$PDDIR/sample/sampleconf/sysfint |
The instruction shown as follows must be executed to create the initialization control statement file.
The name of the initialization control statement file is $PDDIR/sample/sampleconf/rdinit01.
$PDDIR/sample/sampleconf/mkinit |
$PDDIR/sample/sampleconf/mkinit |
Use the pdstart command to start HiRDB.
The database definition utility (pddef) is executed shown as follows:
$PDDIR/bin/pddef < $PDDIR/sample/sampleDB/tblecreate_e |
Execute the following shell script to load data using the database load utility (pdload). For details about data loading, see the manual HiRDB Version 8 Command Reference.
$PDDIR/sample/sampleDB/loadinf_e |
It may not be possible to execute a HiRDB operation command because it has the same name as an OS command or a command provided by another program. In this case, the following actions can be taken:
If neither of these actions can be taken, there is a way to execute a HiRDB operation command under a user-defined name. HiRDB provides a sample shell script for this purpose.
HiRDB provides a sample shell script file appropriate to each platform. These files are listed in Table 24-8; they are stored in the following directory:
Table 24-8 Sample shell script files for executing commands under aliases
File name | Contents | Notes |
---|---|---|
aliascmdbsh | Sample file for Bourne shell | Do not copy in the bin or lib directory under the HiRDB directory |
aliascmdcsh | Sample file for C shell |
To create an alias for an operation command:
Figure 24-4 Sample file for Bourne shell
Figure 24-5 Sample file for C shell
This procedure enables a HiRDB operation command to be executed under any desired name. Options can be specified in the alias command in the same manner as with the normal HiRDB operation command.