
The Initialization process of the NPAM
The Teradata Named Pipe Access Module (NPAM) provides an inter-process communication link between a writer process (such as FastExport) and a reader process (such as FastLoad). The NPAM can also be used by Teradata Parallel Transporter (TPT) for data transfer.
The reader process will initialize the NPAM module via an Initialization string and this article details the various parameters that are initialized during this process.
NPAM – Initialization string
The initialization string contains the sets of parameter keywords and their respective values (to be initialized with). The format of the Initialization string is as follows:
"keyword1=value1 keyword2=value2 keyword3=value3 ..."
keywordidentifies the initialization parametersvalueis either an integer or a string, sometimes enclosed in single or double quote characters
The Initialization string is used in the Teradata Client utility job script to specify or override the default values of the parameters. The Initialization string can contain the values of the parameters listed below.
block_sizeconfirm_fallback_deletionfallback_directoryfallback_filelog_directorylog_levelneed_full_blockpipe_waitsignature_check
The NPAM parses the Initialization string, validates and sets the parameters with their respective values (specified in the Initialization string).
Example illustrating the Initialization string
The NPAM can be initialized using the following statement in the TPUMP job script. Please note that the string displayed within the single quotes 'log_level= ... ' is the initialization string.
.IMPORT INFILE np_one /* “np_one” is the name of the Named pipe */ LAYOUT LAY1A /* LAY1A is the data layout name */ APPLY LABELA /* LABELA is the label name */ FORMAT TEXT /* TEXT is the data format type */ axsmod np_axsmod.so 'log_level=5 log_directory=. buffer_size=6500 fallback_directory=. fallback_file=test.fbf confirm_fallback_deletion=y need_full_block=n pipe_wait=320 signature_check=2';
The following table details the purpose and significance of each parameter used in the Initialization string.
|
Parameter |
Usage |
Description |
|
|
|
Block size (in bytes) of the data transfer operation where |
|
|
|
The values can be either ' This flag informs the NPAM whether to present a confirmation prompt before deleting the fallback data file. The default value of |
|
|
or
|
Path of the fallback data file directory. The default directory of the fallback_directory parameter is:
|
|
|
or
|
Name of the fallback data file. |
|
|
or
|
Path of the log file directory. The default directory of the
|
|
|
or
|
The values can be The default value of “0” : Indicates Disable. Disables the log operation. This is the default “1” : Indicates Critical. Logs events where a critical resource, such as memory or its message strings cannot be obtained. “2” : Indicates Error. Logs error conditions. “3” : Indicates Warning. Logs unusual events that do not halt processing. “4” : Indicates Information. Logs operational events or statistics. “5” : Indicates Debug. Logs details normally required for debugging purpose. “6” : Indicates Trace. Logs all available information about each I/O operation. |
|
|
or
|
The values can be either ' Used to determine if a full data buffer block is required prior to returning to the calling process. The default value of |
|
|
or
|
Holds the sleep interval (in milliseconds) for polling the pipe when |
|
|
or
|
The values can be Sets the signature check level. The default value of the signature_check is ‘ “0” : Indicates Disabled. A signature is neither calculated nor checked. “1” : Indicates Enabled / No Return Calculates, checks the signature and logs a warning if the check fails. It does not return an error condition. “2” : Indicates Enabled / Return Calculates, checks the signature and logs an error if the check fails. It returns an error condition. |
Recent comments
