23.2.5 Setting the environment (HiRDB administrator's task)

Once the superuser has changed the HiRDB directory owner to the HiRDB administrator and has registered the directory into the OS, the HiRDB administrator can set the environment.

This section describes how the HiRDB administrator sets OS environment variables and creates HiRDB file system areas in order to construct the HiRDB system.

Organization of this subsection
(1) Setting HiRDB environment variables
(2) Setting environment variables to use the interactive SQL execution utility (HiRDB SQL Executor)

(1) Setting HiRDB environment variables

Executor: HiRDB administrator

The HiRDB administrator must set in the environment variable file shown in (a) as follows the values shown in (b) as follows.

(a) File to be used

The HiRDB administrator sets the environment variables in either of the following files, depending on the type of shell used:

(b) Information to be set

The HiRDB administrator uses an OS command to set the environment variables listed in Table 23-9 in the appropriate file (as indicated above).

For details about the command to be used, see the applicable OS documentation.

Table 23-9 Information to be set for environment variables

VariableInformation to be setDescription
PDDIR/opt/HiRDB_PAbsolute path of the HiRDB directory
PDCONFPATH$PDDIR/confDirectory for storing HiRDB system definitions
PATH$PDDIR/binDirectory for storing HiRDB commands and utilities
$PDDIR/client/utlDirectory for storing HiRDB client libraries
$PDDIR/plugin/phsgml/binDirectory for storing SGML plug-in commands and utilities of the HiRDB Text Search Plug-in
SHLIB_PATH$PDDIR/libDirectory for storing HiRDB programs, etc.
PDHOSTExample: hostA1,2Server machine's host name
PDUSER"manager"1Schema owner
PDNAMEPORTExample: 200001,2Server machine's port number
1 HiRDB client's environment variable.
2 If the HiRDB server and client are installed on separate server machines, set the server value at the destination. If the host name and port number are already set in the server machine before HiRDB is used, set those values.

(2) Setting environment variables to use the interactive SQL execution utility (HiRDB SQL Executor)

The interactive SQL execution utility (HiRDB SQL Executor) enables retrievals to be made interactively from SGML documents in a UNIX environment.

For details about the environment variable settings for the interactive SQL execution utility, see the documentation or document files provided with the corresponding software.