HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
This section explains the environment variables for a target Datareplicator and includes specification examples.
You specify the environment variables for a target Datareplicator in the user environment where the target Datareplicator's commands are executed. The following table shows the information that is specified in the environment variables for a target Datareplicator.
Table 2-9 Information specified in the environment variables for a target Datareplicator
| Environment variable | Description |
|---|---|
| PATH | Specify the name of the target Datareplicator's commands library.#1 |
| LANG | Specify the character code set to be used in the target Datareplicator's messages and definitions. Be sure to specify the correct character code set based on the information specified in the dblocale and msglocale operands in the import system definition. |
| TZ | Specify the time zone of the messages output from the target Datareplicator. |
| PDDIR#2 | Specify the target HiRDB directory. |
| PDNAMEPORT#2 | Specify the target HiRDB's port number. |
| PDHOST#2 | Specify the target HiRDB's host name. |
| PDLANG#2 | If the character code set used in the target HiRDB is UTF-8, specify UTF-8. If the character code set used in the target HiRDB is not UTF-8, there is no need to specify this environment variable. |
| SHLIB_PATH#2, #3 | Specify $PDDIR/lib. If you use the Linux (IPF) or HP-UX (IPF) edition, specify $PDDIR/lib:$PDDIR/client/lib. |
| HDSPATH | Specify the target Datareplicator's operation directory. The target Datareplicator's definition files, status files, error information files, and activity trace files are created in this directory.
|
| HDS_MST_STDCLOSE | Specify whether the standard input, standard output, and standard error output are to be closed by the target Datareplicator.
If an import information editing UOC routine uses the standard input, standard output, or standard error output when this environment variable is not specified, data might not be imported correctly. If you plan to have an import information editing UOC routine use the standard input, standard output, or standard error output, make sure that you specify FALSE in this environment variable. |
| HDS_RFI_ELANG#4 | Specify the character encoding used in the source system. If this information has not been specified, the system automatically identifies the character encoding on the basis of the import status file. This automatic identification is not available when the definition information is displayed immediately after the target system has been initialized. If automatic identification is not available, ja_JP.SJIS is assumed. |
| HDS_RFI_PLANG#4 | Specify the character encoding used in the target system. If this information has not been specified, ja_JP.SJIS is assumed. |
| HDSCLTWAITTIME | Specify whether the values of PDCWAITTIME (client's maximum wait time) and PDSWAITTIME (server's maximum wait time)#5 specified in the HiRDB client environment definition are to take effect on the target Datareplicator. This environment variable is optional; we recommend that you omit it if it is not needed.
|
| EXTSHM (AIX only) |
Specify ON, which indicates that there is no limit to the number of shared memory spaces in the process space. Specify it if a shortage occurs in the shared memory. If there is no shortage, specification of this environment variable is optional. |
| PSALLOC (AIX only) |
Specify early, which indicates that a required paging space is to be allocated immediately during memory allocation. With AIX, paging space is not normally allocated during memory allocation. Make sure that this variable is set. |
| LDR_CNTRL (AIX only) |
MAXDATA=memory-size Specify the size of the memory required for program execution. The maximum available memory size is 2 gigabytes, in the range from 0x20000000 to 0x80000000. Set the memory in units of 256 megabytes. The memory must be allocated in good balance because the memory size is common to both shared memory and mmap memory. Specify it if a shortage occurs in the shared memory. If there is no shortage, specification of this environment variable is optional. If a memory shortage occurs, set 0x20000000 and then start. If the memory shortage recurs, increase the memory in increments of 0x10000000 and then restart. |
| NODISCLAIM (AIX only) |
For free(), set True as the call processing method, indicating that issuance of nodisclaim() is to be suppressed. Make sure that this variable is set. |
| Environment variable | Character encoding | |||
|---|---|---|---|---|
| JIS8 Shift JIS |
EUC | Unicode (UTF-8) | EBCDIC/KEIS EBCDIK/KEIS |
|
| HDS_RFI_ELANG | ja_JP.SJIS | ja_JP.UJIS | ja_JP.UTF8 | EBCDIK |
| HDS_RFI_PLANG | ja_JP.SJIS | ja_JP.UJIS | ja_JP.UTF8 | -- |
The following are examples of environment variables for a target Datareplicator. These examples are for the HP-UX Datareplicator.
$ PATH=$PATH:/opt/hirdbds/bin $ LANG=ja_JP.SJIS# $ HDSPATH=/opt/hirdbds/define $ HDSCLTWAITTIME=USER $ export PATH LANG HDSPATH HDSCLTWAITTIME
% set path=($path /opt/hirdbds/bin) % setenv LANG ja_JP.SJIS# % setenv HDSPATH /opt/hirdbds/define % setenv HDSCLTWAITTIME USER
#: For details about how to specify the LANG environment variable, see the applicable manual.
These examples assume that the target Datareplicator definitions are stored in the /opt/hirdb/define/ directory. These examples omit the TZ environment variable as well as the HiRDB environment variables.
For details about how to specify the TZ environment variable, see the applicable manual.
For an example of specifying a target HiRDB's environment variables ($PDDIR, $PDCONFPATH, $PDNAMEPORT, $PDHOST, and $SHLIB_PATH), see the HiRDB Version 9 Installation and Design Guide.
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.