tNetezzaNzLoad
Inserts data into a Netezza database table using Netezza’s nzload
utility.
tNetezzaNzLoad bulk loads data into a Netezza table
either from an existing data file, an input flow, or directly from a data flow in streaming
mode through a named-pipe.
tNetezzaNzLoad Standard properties
These properties are used to configure tNetezzaNzLoad running in the Standard Job framework.
The Standard
tNetezzaNzLoad component belongs to the Databases family.
The component in this framework is available in all Talend
products.
Basic settings
Property type |
Either Built-in or |
 |
Built-in: No property data stored |
 |
Repository: Select the repository |
Host |
Database server IP address. |
Port |
Listening port number of the DB server. |
Database |
Name of the Netezza database. |
Username and |
DB user authentication data. To enter the password, click the […] button next to the |
Table |
Name of the table into which the data is to be inserted. |
Action on table |
On the table defined, you can perform one of the following
None: No operation is carried
Drop and create a table: The table
Create a table: The table does not
Create table if not exists: The
Drop table if exists and create:
Clear table: The table content is
Truncate table: executes a truncate |
Schema and Edit |
A schema is a row description. It defines the number of fields |
 |
Built-In: You create and store the schema locally for this component |
 |
Repository: You have already created the schema and stored it in the |
 |
Click Edit
|
Data file |
Full path to the data file to be used. If this component is used |
Use named-pipe |
Select this check box to use a named-pipe instead of a data file. Note:
This component on named-pipe mode uses a JNI interface to |
Named-pipe name |
Specify a name for the named-pipe to be used. Ensure that the name |
Advanced settings
Additional JDBC Parameters |
Specify additional JDBC parameters for the |
Use existing control file |
Select this check box to provide a control file to be Note:
The global variable NB_LINE is not supported |
Control file |
Enter the path to the control file to be used, between double |
Field separator |
Character, string or regular expression used to separate Warning:
This is nzload’s delim argument. If you |
Wrap quotes around fields |
This option is only applied to columns of
None: do not wrap column values in
Single quote: wrap column values in
Double quote: wrap column values in Warning:
If using the Single quote or Double |
Advanced options |
Set the nzload arguments in the corresponding table. Click For details about the available parameters, see Parameters. |
Encoding |
Select the encoding type from the list. |
Specify nzload path |
Select this check box to specify the full path to the nzload |
Full path to nzload executable |
Full path to the nzload executable on the machine in use. It is |
tStatCatcher Statistics |
Select this check box to collect log data at the component |
Enable parallel execution |
Select this check box to perform high-speed data processing, by treating
multiple data flows simultaneously. Note that this feature depends on the database or the application ability to handle multiple inserts in parallel as well as the number of CPU affected. In the Number of parallel executions field, either:
Note that when parallel execution is enabled, it is not possible to use global Warning:
|
Global Variables
Global Variables |
NB_LINE: the number of rows processed. This is an After
ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see |
Usage
Usage rule |
This component is mainly used when non particular transformation This component can be used as a standalone or an output |
Parameters
The following table lists the parameters you can use in the Advanced options table in the Advanced settings tab.
-If |
Name of the log file to generate. The logs will be appended if the |
-bf |
Name of the bad file to generate. The bad file contains all the |
-ouputDir |
Directory path to where the log and the bad file are generated. If |
-logFileSize |
Maximum size for the log file. The value is in MB. The default |
-compress |
Specify this option if the data file is compressed. Valid values This option is only valid if this component is used by itself |
-skipRows <n> |
Number of rows to skip from the beginning of the data file. Set This option should only be used if this component is used by |
-maxRows <n> |
Maximum number of rows to load from the data file. This option should only be used if this component is used by |
-maxErrors |
Maximum number of error records to allow before terminating the |
-ignoreZero |
Binary zero bytes in the input data will generate errors. Set this |
-requireQuotes |
This option requires all the values to be wrapped in quotes. The This option currently does not work with input flow. Use this |
-nullValue <token> |
Specify the token to indicate a null value in the data file. The |
-fillRecord |
Treat missing trailing input fields as null. You do not need to Trailing input fields must be nullable in the database. |
-ctrlChar |
Accept control chars in char/varchar fields (must escape NUL, CR |
-ctInString |
Accept un-escaped CR in char/varchar fields (LF becomes only end |
-truncString |
Truncate any string value that exceeds its declared char/varchar |
-dateStyle |
Specify the date format in which the input data is written in. The date format of the column in the component’s schema must For more description on loading date and time fields, see Loading DATE, TIME and TIMESTAMP columns. |
-dateDelim |
Delimiter character between date parts. The default value is “-” The date format of the column in the component’s schema must |
-y2Base |
First year expressible using two digit year (Y2) dateStyle. |
-timeStyle |
Specify the time format in which the input data is written in. The time format of the column in the component’s schema must For more description on loading date and time fields, see Loading DATE, TIME and TIMESTAMP columns. |
-timeDelim |
Delimiter character between time parts. The default value is “:”. Note:
The time format of the column in the component’s schema must |
-timeRoundNanos |
Allow but round non-zero digits with smaller than microsecond |
-boolStyle |
Specify the format in which Boolean data is written in the data. |
-allowRelay |
Allow load to continue after one or more SPU reset or failed over. |
-allowRelay <n> |
Specify number of allowable continuation of a load. Default value |
Loading DATE, TIME and TIMESTAMP columns
When this component is used with an input flow, the date format specified inside
the component’s schema must match the value specified for -dateStyle, -dateDelim,
-timeStyle, and -timeDelim options.
DB Type |
Schema date format |
-dateStyle |
-dateDelim |
-timeStyle |
-timeDelim |
---|---|---|---|---|---|
DATE |
“yyyy-MM-dd” |
“YMD” |
“-“ |
n/a |
n/a |
TIME |
“HH:mm:ss” |
n/a |
n/a |
“24HOUR” |
“:” |
TIMESTAMP |
“yyyy-MM-dd HH:mm:ss” |
“YMD” |
“-“ |
“24HOUR” |
“:” |
Related scenario
For a related use case, see Inserting data in bulk in MySQL database.