HiRDB Dataextractor Version 8 Description, User's Guide and Operator's Guide
Of the functions used during data extraction from an ORACLE database and during data import into a HiRDB table, this subsection describes the following functions:
HiRDB Dataextractor enables the user to specify desired information in the following SQL statements that are issued when data is extracted from an ORACLE database.
Table 5-2 explains the scope of this function.
Table 5-2 Scope of the SQL user specification function during ORACLE data extraction
| Data linkage type | Source | Target | Applicability |
|---|---|---|---|
| XDM/XT linkage | XDM/RD | HiRDB | -- |
| Sequential dataset | -- | ||
| ORACLE | XDM/RD | Y | |
| Sequential dataset | Y | ||
| HiRDB Dataextractor linkage | ORACLE | HiRDB | Y |
| Binary-format file | Y | ||
| DAT-format file | Y |
Y: Applicable
--: Not applicable to HiRDB Dataextractor
To use this function when data is extracted from an ORACLE database with XDM/XT linkage, the following specifications are required:
The following table lists the environment variables that must be specified in the environment variable information setup file:
| Environment variable | Specification |
|---|---|
| PDHOST | As required* |
| PDNAMEPORT | As required* |
| XTEXTRACTDB | Mandatory |
| XTLCKxxxx | As required |
| XTTBLxxxx | As required |
| XTCLMxxxx | As required |
| XTWHExxxx | As required |
Mandatory: Specification is mandatory.
As required: Specify as appropriate.
* This environment variable is required when the RDBDEF statement is specified in XDM/XT's JXUMCTL control statement.
For details about the environment variables, see 2.2.3 Specifying environment variables.
To use this function when data is extracted from an ORACLE database with HiRDB Dataextractor linkage, you execute the xtrepO command.
The XTSQL environment variable must be specified in the source system.
The following table describes the options whose specification is related to this function:
| Command | Option | Value | Import to HiRDB | Binary or DAT file creation | ||
|---|---|---|---|---|---|---|
| XTSQL | XTSQL | |||||
| 0 | 1 | 0 | 1 | |||
| xtrepO | -g | -- | O | M | O | M |
| lock-information-file | ||||||
| -r | [authorization-identifier,]table-identifier | O | M | N | N | |
| -R | -- | N | N | M | M | |
| {bin|dat} | ||||||
| -s | column-name-specification-file-name | O | O | O | O | |
| -w | table-expression-specification-file-name | O | N | O | N | |
| [authorization-identifier,]table-identifier | -- | M | N | M | N | |
| table-expression-specification-file-name | -- | N | M | N | M | |
M: Mandatory
O: Optional
N: Not specifiable
--: Not specified
| XTSQL | -g option | Action | |
|---|---|---|---|
| 0 | Omitted | -- | Issue LOCK TABLE using the table name entered on the command line. |
| Specified | No value specified | Do not issue LOCK TABLE. | |
| Value specified | Issue LOCK TABLE based on information in the lock information file. | ||
| 1 | Omitted | -- | Error |
| Specified | No value specified | Do not issue LOCK TABLE. | |
| Value specified | Issue LOCK TABLE based on information in the lock information file. | ||
For details about these options, see 5.1.2 xtrepO command.
This subsection describes the specification of files in options.
| XTSQL | Specification |
|---|---|
| 0 | Specify the lock options that follow LOCK TABLE table-name. |
| 1 | Specify the lock options that follow LOCK TABLE. |
| XTSQL | Specification |
|---|---|
| 0 | Specify the table expression that follows FROM table-name in the SELECT statement. |
| 1 | Specify the table expression that follows FROM in the SELECT statement. |
When 1 is specified in the XTSQL environment variable, no column name can be specified in the null value information file. If you specify information such as a default null value or data format of repetition columns, specify applicable field numbers. Specifying column names results in an error.
When data is imported into a HiRDB table, HiRDB Dataextractor starts HiRDB's database load utility (pdload). The loader parameter specification function enables you to specify desired parameters for pdload.
Table 5-3 explains the scope of this function.
Table 5-3 Scope of loader parameter specification function (when ORACLE data is extracted)
| Data linkage type | Source | Target | Applicability |
|---|---|---|---|
| HiRDB Dataextractor linkage | ORACLE | HiRDB | Y |
Y: Applicable
To use this function when data is extracted from an ORACLE database, execute the xtrepO command.
At the source system, specify the following environment variables as necessary:
The following table describes the options whose specification is related to this function:
| Command | Option | Value | Requirement |
|---|---|---|---|
| xtrepO | -d | -- | 1' |
| -f | server-name | O | |
| -i | {c|s|n|x} | 1' | |
| -I | XTPDCFxxxx | O | |
| XTLPRMxxxx | M, 1 | ||
| XTPDSRxxxx | M, 2 | ||
| -j | RDAREA-name | O | |
| -l | {a|p|n} | 1' | |
| -n | buffer-sectors-count | 1' | |
| -q | error-data-file-name,count | 2' | |
| -v | null-value-information-file | O | |
| -z | -- | 1' |
M: One of these items is required in order to use this function.
O: This item is optional.
1, 1': These items are mutually exclusive
2, 2': These items are mutually exclusive
This function converts the character codes of the data extracted from the ORACLE database according to specified environment variables and then imports the data.
Table 5-4 explains the scope of this function.
Table 5-4 Scope of the character code conversion function (when ORACLE data is extracted)
| Data linkage type | Source | Target | Applicability |
|---|---|---|---|
| HiRDB Dataextractor linkage | ORACLE | HiRDB | Y |
| Binary-format file | Y | ||
| DAT-format file | Y |
Y: Applicable
By specifying environment variables and a null value information file, you can convert the character codes during data import processing.
For details about the environment variables, see (3) Character code conversion function in 4.2.3 Additional data extraction and import functions. For details about the null value information file, see (5) Null value information file in 5.1.4 Contents of files specified with the xtrepO command.
For details about converting Gaiji codes, see (3) Character code conversion function in 4.2.3 Additional data extraction and import functions.
All rights reserved. Copyright (C) 2007, Hitachi, Ltd.