22.2.5 Setting the environment (HiRDB administrator's task)

Once the superuser has changed the HiRDB directory owner to the HiRDB administrator and 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 the environment variable file shown in (a) as follows with the values shown in (b) as follows.

(a) File to be used

The HiRDB administrator sets the environment variables in one 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 22-8 in the appropriate file (as indicated previously).

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

Table 22-8 Information to be set in environment variables

VariableInformation to be setDescription
PDDIR/opt/HiRDB_SAbsolute 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 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.