HiRDB Datareplicator Version 8 Description, User's Guide and Operator's Guide
This section explains the environment variables for a source Datareplicator and includes specification examples.
You specify the environment variables for a source Datareplicator in the user environment where the source Datareplicator's commands are executed. The following table shows the information that is specified in the environment variables for a source Datareplicator.
Table 2-8 Information specified in the environment variables for a source Datareplicator
| Environment variable | Description |
|---|---|
| PATH | Specify the name of the source Datareplicator's commands library.#1 |
| LANG | Specify the character code set to be used in the source 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 extraction system definition. |
| TZ | Specify the time zone of the messages output from the source Datareplicator. |
| PDDIR#2, #3 | Specify the source HiRDB directory. |
| PDCONFPATH#2, #3 | Specify the directory for storing the source HiRDB's system definition files. |
| PDNAMEPORT#2 | Specify the source HiRDB's port number. |
| PDHOST#2 | Specify the source HiRDB's host name. |
| PDUSER#2 | Specify the user connected to the source HiRDB. |
| PDLANG#2 | If the character code set used in the source HiRDB is UTF-8, specify UTF-8. If the character code set used in the source HiRDB is not UTF-8, there is no need to specify this environment variable. |
| SHLIB_PATH#2, #3, #4, #5 | Specify $PDDIR/lib. If you use the Linux (IPF) or HP-UX (IPF) edition, specify $PDDIR/lib:$PDDIR/client/lib. |
| HDEPATH | Specify the source Datareplicator's operation directory. The source Datareplicator's definition files, status files, error information files, and activity trace files are created in this directory.
|
| HDE_BIN_COL_MAXLEN | Specify a value (kilobytes) that is smaller than the actual definition length of any BLOB-type column that is handled internally in Datareplicator. If a BLOB-type column has a definition length of 2 GB or greater but its actual data is small, this environment variable enables the column data to be linked without having to redefine the table.
|
| 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 on 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 memory required for program execution. 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 on 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 a 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. |
#1: The name of the commands library is opt/hirdbds/bin/.
#2: This is a source HiRDB environment variable. For details about the HiRDB design, see the HiRDB Version 9 Installation and Design Guide.
#3: If the source HiRDB is a parallel server and this setting varies from one server to another, extraction system definitions can be used to define this information for each server machine. If definitions for a specific server are omitted from the extraction system definitions, the corresponding server uses the values of the environment variables that were specified for the user environment where the source Datareplicator's commands are executed.
#4: This environment variable for the Solaris and Linux Datareplicators is LD_LIBRARY_PATH. The environment variable for the AIX Datareplicator is LIBPATH.
The following are examples of environment variables for a source Datareplicator. These examples are for the HP-UX Datareplicator.
$ PATH=$PATH:/opt/hirdbds/bin $ LANG=ja_JP.SJIS# $ HDEPATH=/opt/hirdbds/define $ export PATH LANG HDEPATH
% set path=($path /opt/hirdbds/bin) % setenv LANG ja_JP.SJIS# % setenv HDEPATH /opt/hirdbds/define
#: For details about how to specify the LANG environment variable, see the applicable manual.
These examples assume that the source 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 source HiRDB's environment variables ($PDDIR, $PDCONFPATH, $PDNAMEPORT, $PDHOST, $PDUSER, and $SHLIB_PATH), see the HiRDB Version 9 Installation and Design Guide.
All rights reserved. Copyright (C) 2007, 2013, Hitachi, Ltd.