HiRDB Dataextractor Version 8 Description, User's Guide and Operator's Guide
This section describes the files that are required in order to use HiRDB Dataextractor. The files to be specified depend on the facility to be executed and the protocol to be used. Table 2-12 lists the files that are required in order to use HiRDB Dataextractor.
These files are specified at the host where HiRDB Dataextractor is installed. For details, see Table 2-2 Host used to install HiRDB Dataextractor.
Table 2-12 Files required in order to use HiRDB Dataextractor
| Filename | Description | Type | ||||
|---|---|---|---|---|---|---|
| Source system | Target system | File creation system | ||||
| Extractor | XDM/XT | Extractor | XDM/XT1 | |||
| HiRDB Dataextractor's environment variable information setup file (any file name) |
Specifies HiRDB Dataextractor's environment variables. | -- | R | R | R | R |
| /etc/services2 | Specifies the port number. | -- | R TCP | R TCP | R TCP | R TCP |
| /etc/inetd.conf2 | Specifies HiRDB Dataextractor startup. | -- | R TCP | R TCP | R TCP | R TCP |
| xtstart command execution file (any file name) | Specifies HiRDB Dataextractor startup. | -- | O OSI | -- | O OSI | O OSI |
| Communication configuration definition information file (any file name) |
Specifies communication configuration definitions. | -- | R OSI | -- | R OSI | R OSI |
| /etc/hosts | Specifies the target host name. | R TCP | -- | -- | -- | -- |
| Column name specification file Table expression specification file (any file name) |
Specify extraction conditions. For details, see 4.2.2 xtrep command and 5.1.2 xtrepO command. |
O | O | -- | -- | -- |
| Table name information file (any file name) |
Specifies the table expression up to the WHERE clause in the SELECT statement. | -- | O | -- | -- | -- |
| Null value information file (any file name) |
Specifies the default null value. For details, see 4.2.2 xtrep command and 5.1.2 xtrepO command. |
O | -- | -- | -- | -- |
| Lock information file (any file name) |
Specifies lock information during data extraction. For details, see 5.1.2 xtrepO command. |
O | O | -- | -- | -- |
| Import information file (any file name) |
Specifies column information and data type for data type conversion. For details, see 5.1.2 xtrepO command. |
O | -- | -- | -- | -- |
| SQL trace file | Collects SQL trace information. For details, see the PDCLTPATH environment variable in 2.2.3 Specifying environment variables. |
O | O | -- | -- | -- |
| pdload command line information file (any file name) |
Sets the HiRDB database load utility's (pdload) command line parameters. | -- | -- | O | O | -- |
| pdload control information file's source statement information file (any file name) |
Sets the source statement that is specified in the control information file, which is a parameter of the HiRDB database load utility (pdload). | -- | -- | O | O | -- |
R: Required.
O: Optional.
--: Not required.
TCP: Specify when the TCP/IP protocol is used.
OSI: Specify when the OSI protocol is used.
Extractor: Linking HiRDB Dataextractor to extract and import data
XDM/XT: Using XDM/XT to extract data, import data, or create sequential datasets between a mainframe database and HiRDB
1 TCP/IP is used to establish communication between the target server and the system manager when all three of the following conditions are satisfied: the OSI protocol is being used; the OSI protocol is used to connect the target server (front-end server or back-end server) and XDM/XT; and the system manager and XDM/XT are not connected with the OSI protocol. Therefore, specify the files used for TCP/IP (/etc/services and /etc/linetd.conf) for the system manager even if the OSI protocol is used. There is no need to specify the files used for the OSI protocol (/etc/localrc and communication configuration definition information file) for the system manager.
2 File name when the OS being used is UNIX. For details about the file name when the OS being used is Windows, see B. Functional Differences with Windows.
When the OS being used is UNIX, specify HiRDB Dataextractor's environment variable information setup file; for details, see 2.2.3 Specifying environment variables.
When the OS being used is Windows, see B. Functional Differences with Windows.
When the OS being used is UNIX, and the TCP/IP protocol is used, you must specify your HiRDB Dataextractor's service name and port number in /etc/services.
For the port number, specify a number that is unique within the network and that is not being used by any other service.
When the OS being used is Windows, see B. Functional Differences with Windows.
The following is an example of an entry to be registered.
/etc/services
# @(#) services 1.2 30/06/95
#
#UNIX specific services, Internet style
ftp 21/tcp
:
:
hirdbxt 20052/tcp #HiRDB Dataextractor...added
When the OS being used is UNIX and the TCP/IP protocol is used, HiRDB Dataextractor is started from the /etc/inetd.conf configuration file. Therefore, you must specify information about HiRDB Dataextractor in /etc/inetd.conf.
If you modify the contents of /etc/inetd.conf, either you must restart the machine or the superuser must issue a signal.
When the OS being used is Windows, the specification of /etc/inetd.conf is unnecessary.
Table 2-13 shows the information to be specified in /etc/inetd.conf.
Table 2-13 Information to be specified in /etc/inetd.conf
| Field name | Information to be specified |
|---|---|
| service name | HiRDB Dataextractor's service name that was specified in the /etc/services file. (Optional) |
| socket type | stream (Fixed) |
| Protocol | tcp (Fixed) |
| wait/nowait | nowait (Fixed) |
| User | UNIX login user name (Optional)* |
| server program | /opt/HIRDBXT/bin/pxtcntl (Fixed) |
| server program arguments | Argument 1: pxtcntl (Fixed) Argument 2: Absolute pathname of the environment variable information setup file |
* The specified user can start HiRDB Dataextractor. Note the following:
hirdbxt stream tcp nowait user01
/opt/HIRDBXT/bin/pxtcntl
pxtcntl /usr/home/user01/xtenv1
kill -HUP inetd-process-ID
When you use the OSI protocol to start HiRDB Dataextractor automatically, you must specify the xtstart command execution shell. For details about how to specify the xtstart command execution shell, see (1)(a) Automatic startup in 6.2.2 Starting and terminating HiRDB Dataextractor when using OSI.
To use the OSI protocol, you must specify the information required for communication in the communication configuration definition information file. The following is the specification format:
set T_selector=local-host's-T-selector-value
If the OS being used is UNIX, and the TCP/IP protocol is used, you must specify the target host name in the source system's /etc/hosts.
To import extracted data into a table, specify the name of the host at which the following server is located:
To create files from extracted data, specify the name of the host name at the file creation system.
If the OS being used is Windows, see B. Functional Differences with Windows.
The following is an example of an entry to be registered:
/etc/hosts
:
:
160.16.150.120 HOST2
:
:
When HiRDB Dataextractor is linked with XDM/XT and data is extracted from HiRDB, to use the function for specifying SQL statements that are to be issued, you set a table name information file in the source system, if necessary, and specify its file name in the XTTBLxxxx environment variable.
In the table name information file, specify the table expression up to the WHERE clause of the SELECT statement.
For details about specifying table expressions in the SELECT statement, see the HiRDB SQL Reference manual.
To use the function for specifying parameters of the HiRDB database load utility (pdload) when data is imported into a HiRDB table, you set a pdload command line information file in the target system, if necessary, and specify its file name in the XTLPRMxxxx environment variable.
In the pdload command line information file, specify the pdload command line parameters. You must ensure that none of the parameters listed below is specified; if any of these parameters is specified, operations cannot be guaranteed:
For details about the command line parameters, see the HiRDB Command Reference manual.
To use the function for specifying pdload parameters when data is imported into a HiRDB table, you set the pdload control information file's source statement information file in the target system, if necessary, and specify its file name in the XTPDSxxxx environment variable.
In the pdload control information file's source statement information file, specify the source statements that are specified in the control information file, which is a parameter of pdload. You must ensure that none of the parameters listed below is specified; if any of these parameters is specified, operations cannot be guaranteed:
All rights reserved. Copyright (C) 2007, Hitachi, Ltd.