HiRDB Dataextractor Version 8 Description, User's Guide and Operator's Guide
Table 2-2 shows the host at which HiRDB Dataextractor is to be installed.
Table 2-2 Host used to install HiRDB Dataextractor
| Type | Source system | Target system | File creation system |
|---|---|---|---|
| Host used to install HiRDB Dataextractor1 | For a HiRDB/Single Server:
|
For a HiRDB/Single Server:
|
Host used to create the file |
For a HiRDB/Parallel Server, host at which one of the following is located:
|
For a HiRDB/Parallel Server, host at which one of the following is located:2
|
||
For ORACLE:
|
1 If you are using the OSI protocol, connection between XDM/XT and the host used to install HiRDB Dataextractor must be established with the OSI protocol.
2 Connection between XDM/XT and the server at the data transmission destination must be established with the OSI protocol. Use of the OSI protocol is optional for the connection between the host containing the system manager and XDM/XT.
3 If you are transmitting data to the front-end server, the target system is the host located at the front-end server (to which data is to be transmitted). If you are transmitting data stored by RDAREA directly to a back-end server, the target system is the host at which the back-end server is located.
Table 2-3 lists the directories and files that are created by HiRDB Dataextractor. HiRDB Dataextractor creates directories and files at the host where it is installed. If this host already contains a directory or file with one of these names, you must save the directory or file under a different name.
Table 2-3 Directories and files created by HiRDB Dataextractor
| Name of directory or file | Creation time | Description | Type | ||
|---|---|---|---|---|---|
| Source | Target | Creation | |||
| /opt/HIRDBXT/ | Installation | Directory used to store HiRDB Dataextractor's various directories and files | C | C | C |
| /opt/HIRDBXT/bin | Directory used to store HiRDB Dataextractor's executable files (HiRDB Dataextractor's load modules and commands are stored in this directory) | C | C | C | |
| /opt/HIRDBXT/bin/xtrep | Files for HiRDB Dataextractor's xtrep command | C | C | C | |
| /opt/HIRDBXT/bin/xtstart | Files for HiRDB Dataextractor's xtstart command | C | C | C | |
| /opt/HIRDBXT/bin/xtmsgtext | Text files used to output HiRDB Dataextractor messages | C | C | C | |
| /opt/HIRDBXT/obj | Object storage directory | C | C | C | |
| /opt/HIRDBXT/obj/pxto8160.o | Object for ORACLE extraction | C | C | C | |
| /opt/HIRDBXT/lib | Libraries storage directory | C | C | C | |
| /opt/HIRDBXT/lib/maptable/euc2jis.map | Mapping table for converting character codes (from EUC to SJIS) | C | C | C | |
| /opt/HIRDBXT/lib/maptable/eucg2jis.map | Mapping table for converting character codes (from EUC to SJIS) | C | C | C | |
| /opt/HIRDBXT/lib/maptable/euc2ucs2.map | Mapping table for converting character codes (from EUC to UCS2) | C | C | C | |
| /opt/HIRDBXT/lib/maptable/eucg2u.map | Mapping table for converting character codes (from EUC to UCS2) | C | C | C | |
| /opt/HIRDBXT/lib/maptable/jis2euc.map | Mapping table for converting character codes (from SJIS to EUC) | C | C | C | |
| /opt/HIRDBXT/lib/maptable/jis2ucs2.map | Mapping table for converting character codes (from SJIS to UCS2) | C | C | C | |
| /opt/HIRDBXT/lib/maptable/ucs22euc.map | Mapping table for converting character codes (from UCS2 to EUC) | C | C | C | |
| /opt/HIRDBXT/lib/maptable/ucs22jis.map | Mapping table for converting character codes (from UCS2 to SJIS) | C | C | C | |
| /opt/HIRDBXT/lib/usermap | When a mapping table is updated by the xtccnvedt command | Directory for mapping tables for converting user's character codes | -- | C | C |
| /opt/HIRDBXT/lib/pxtora01.sl | At make in user environment | Library for ORACLE extraction | C | -- | C |
| /opt/HIRDBXT/spool/1 | Installation | Directory used to store files output during HiRDB Dataextractor operation | C | C | C |
| /opt/HIRDBXT/spool/xter | HiRDB Dataextractor operation | HiRDB Dataextractor's error log file for TCP/IP | TCP2 | TCP3 | TCP3 |
| /opt/HIRDBXT/spool/xtlog... | HiRDB Dataextractor's error log file for OSI | OSI3 | OSI3 | OSI3 | |
| /opt/HIRDBXT/spool/pder... | HiRDB database load utility's error files | -- | C3 | -- | |
| /opt/HIRDBXT/spool/.xtpc... | HiRDB database load utility's temporary error files | -- | T3 | -- | |
| /opt/HIRDBXT/spool/pdin... or /opt/HIRDBXT/spool/.pdin... | HiRDB database load utility's input data files | -- | T3 | -- | |
| /opt/HIRDBXT/spool/pdcf... | HiRDB Dataextractor operation | HiRDB database load utility's control information files | -- | R3 | -- |
| /opt/HIRDBXT/spool/pdnf... | HiRDB database load utility's null value information files | -- | R3 | -- | |
| $XTTMPDIR/... | Output files For details about the filenames, see (3)(a) in 2.2.2 Installing HiRDB Dataextractor. |
-- | R4 | C | |
| /opt/HIRDBXT/spool/... | |||||
| /opt/HIRDBXT/spool/.pden... | EOF notification file for the HiRDB database load utility | -- | T3 | -- | |
| $XTTMPDIR/... | LOB input file storage directory For details about the filenames, see (3)(b) in 2.2.2 Installing HiRDB Dataextractor. |
-- | C5 | C5 | |
| /opt/HIRDBXT/spool/... | |||||
| $XTTMPDIR/.../xtlbf... | LOB input files For details about the filenames, see (3)(c) in 2.2.2 Installing HiRDB Dataextractor. |
-- | C5 | C5 | |
| /opt/HIRDBXT/spool/.../xtlbf... | |||||
| /opt/HIRDBXT/dump6 | Directory for storing the module trace files used by HiRDB Dataextractor | C | C | C | |
| /opt/HIRDBXT/dump/xtmt... | Module trace files that are output in the event of an error | C | C | C | |
| /opt/HIRDBXT/dump/process-ID | Directory for storing core files for each load operation | C | C | C | |
| /opt/HIRDBXT/dump/process-ID/core | Core files that are output in the event of an error | C | C | C | |
C: Created.
--: Not created.
T: File that is created temporarily when data is imported without creating an output file. Such a file is deleted when the processing is completed.
R: File that is retained even after the processing is completed because the -o option is specified in the xtrep command. If the -o option is omitted, such a file is deleted after processing is completed. However, if an error occurs during importing, the file is not deleted.
TCP: Created when the TCP/IP protocol is used.
OSI: Created when the OSI protocol is used.
Source: Source system
Target: Target system
Creation: File creation system
1 Because /opt/HIRDBXT/spool contains files that are created dynamically by HiRDB Dataextractor, you must not delete /opt/HIRDBXT/spool. Also, you must not reference or delete any file under /opt/HIRDBXT/spool while HiRDB Dataextractor is active. You should delete these files periodically while HiRDB Dataextractor is stopped.
2 This file is not created if an error occurs during parameter analysis. In such a case, error messages are output only to the standard output. You can output error messages to any file by specifying its filename in the -e option of the xtrep command. If the -e option is omitted, HiRDB Dataextractor assigns a unique filename. If you specify the XTTEMPNAM environment variable, you can use the date/time or the tempnam function to specify a name.
3 HiRDB Dataextractor assigns a unique filename. If you specify the XTTEMPNAM environment variable, you can use the date/time or the tempnam function to specify a name.
4 Such a file is created when the -o or -O option is specified in the xtrep command.
5 Such a file is created when the extracted data contains LOB data. If the -o option is specified in the xtrep command, this file is retained even after processing is completed; if the -o option is omitted, this file is deleted after processing is completed.
6 You should delete the files under /usr/HIRDBXT/dump periodically while HiRDB Dataextractor is stopped; use the XTTRCDIR environment variable to specify the desired directory name.
This section explains the conventions used by HiRDB Dataextractor to determine names for the following files, which are created by HiRDB Dataextractor:
HiRDB Dataextractor determines names for output files on the basis of the following specifications:
You can use the -o or -O option in the xtrep command or the XTFILESIZE environment variable to divide data and output it to multiple files. Table 2-4 lists the names of the output files. To specify the file mode for output files, use the XTFPERMIT environment variable.
Table 2-4 Names of output files
| Specification | Name of output file | |||
|---|---|---|---|---|
| -o or -O option specified | Value of -o or -O option | XTFILESIZE environment variable specified | XTTMPDIR environment variable specified | |
| Y | One file | Y | Y | $XTTMPDIR/specified-value-sequence-number |
| N | .../spool/specified-value-sequence-number | |||
| N | Y | $XTTMPDIR/specified-value | ||
| N | .../spool/specified-value | |||
| Multiple files | N/A | Y | $XTTMPDIR/specified-value-x-files-count | |
| N | .../spool/specified-value-x-files-count | |||
| Y | One directory | Y | Y | $XTTMPDIR/specified-value/file-prefix1-year.month.date-hour.minute.second-sequence-number |
| N | .../spool/specified-value/file-prefix1-year.month.date-hour.minute.second-sequence-number | |||
| N | Y | $XTTMPDIR/specified-value/file-prefix1-year.month.date-hour.minute.second | ||
| N | .../spool/specified-value/file-prefix1-year.month.date-hour.minute.second | |||
| Multiple directories | N/A | Y | $XTTMPDIR/specified-value/file-prefix1-year.month.date-hour.minute.second-sequence-number-x-directories-count | |
| N | .../spool/specified-value/file-prefix1-year.month.date-hour.minute.second-sequence-number-x-directories-count | |||
| Not specified | Y | Y | $XTTMPDIR/file-prefix1-year.month.date-hour.minute.second-sequence-number | |
| N | .../spool/file-prefix1-year.month.date-hour.minute.second-sequence-number | |||
| N | Y | $XTTMPDIR/file-prefix1-year.month.date-hour.minute.second | ||
| N | .../spool/file-prefix1-year.month.date-hour.minute.second | |||
| N | Not specified | N/A | N/A | .../spool/.pdin-year.month.date-hour.minute.second 2 |
1 When the XTSQL environment variable is set to 0 or omitted: extracted-table-name
When the XTSQL environment variable is set to 1: xtof-process-ID
2 If the value 0 is specified in the XTTEMPNAM environment variable, HiRDB Dataextractor uses the value created by the tempnam function for -year.month.date-hour.minute.second.
To only create a file, assigning a unique name to the output file:
When you specify the -o option but do not specify a value, HiRDB Dataextractor assigns a unique filename. The file is created under the directory specified in the XTTMPDIR environment variable.
XTFILESIZE: None XTTMPDIR: /tmp
xtrep -R -o TBL_NAME
/tmp/TBL_NAME-99.06.11-10.00.00
To import data into a HiRDB table, dividing the data and creating multiple files in the same partition:
Specify the XTFILESIZE environment variable in order to divide the file. Because the XTTMPDIR environment variable is not specified in this example, the file is created under .../spool.
XTFILESIZE: 100000 XTTMPDIR: None
xtrep -o TBL_NAME
.../spool/TBL_NAME-99.06.11-10.00.00-1
.../spool/TBL_NAME-99.06.11-10.00.00-2
:
:
.../spool/TBL_NAME-99.06.11-10.00.00-n
A file is divided in units of 100,000 bytes, and the maximum file size is as follows because no record spans files:
100K/L
x L
L: Record length
To only create files, dividing the data and creating multiple DAT-format files in separate partitions:
If you specify multiple partitions with the -o option, HiRDB Dataextractor creates files in separate partitions. Because the XTFILESIZE environment variable is not specified in this example, HiRDB Dataextractor fills one partition, and then creates a file in another partition.
HP-UX
XTFILESIZE: None XTTMPDIR: /
xtrep -R dat -o HD000/, HD001/ TBL_NAME
/HD000/TBL_NAME-99.06.11-10.00.00 /HD001/TBL_NAME-99.06.11-10.00.00
When /HD000 becomes full, HiRDB Dataextractor creates a file in /HD001.
Windows
XTFILESIZE: None XTTMPDIR: \
xtrep -R dat -o C:\DATA\,D:\DATA\ TBL_NAME
C:\DATA\TBL_NAME-99.06.11-10.00.00 D:\DATA\TBL_NAME-99.06.11-10.00.00
When C:\DATA becomes full, HiRDB Dataextractor creates a file in D:\DATA.
If extracted data contains BLOB columns, HiRDB Dataextractor creates a LOB input file for each LOB data item. The directory used to store these LOB input files is the LOB input file storage directory.
HiRDB Dataextractor determines the name of the LOB input file storage directory on the basis of the following specifications:
Table 2-5 shows the name of the LOB input file storage directory.
Instead of creating LOB input files, you can store data for BLOB columns in the same output file for non-BLOB data by specifying the XTLOBKIND environment variable. Additionally, you can use the XTDPERMIT environment variable to specify a file mode for the LOB input file storage directory.
Table 2-5 Name of the LOB input file storage directory
| Specification | Name of LOB input file storage directory | |
|---|---|---|
| -b option | XTTMPDIR environment variable | |
| Y | Y | $XTTMPDIR/-b-option-value |
| N | .../spool/-b-option-value | |
| N | Y | $XTTMPDIR/xtlb-year.month.date-hour.minute.second-process-ID* |
| N | .../spool/xtlb-year.month.date-hour.minute.second-process-ID* | |
HiRDB Dataextractor creates LOB input files with a unique filename for each LOB data item in the LOB input file storage directory.
The following shows the convention for naming LOB input files:
xtlbf-data-item-number-BLOB-column-number
Use the XTFPERMIT environment variable to specify the file mode for LOB input files.
All rights reserved. Copyright (C) 2007, Hitachi, Ltd.