This component invokes Netezza’s nzload utility to insert records into a Netezza database.
This component can be used either in standalone mode, loading from an existing data file; or
connected to an input row to load data from the connected component.
Component family |
Databases/Netezza |
|
Function |
tNetezzaNzLoad inserts data into |
|
Purpose |
To bulk load data into a Netezza table either from an existing |
|
Basic settings |
Property type |
Either Built-in or Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
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 to be processed and passed on Since version 5.6, both the Built-In mode and the Repository mode are |
|
|
Built-In: You create and store the schema locally for this |
|
|
Repository: You have already created the schema and |
Click Edit schema to make changes to the schema. If the
|
||
|
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. NoteThis 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 |
Use existing control file |
Select this check box to provide a control file to be used with |
|
|
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 |
Parameter |
-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 Note 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 NoteThis option should only be used if this component is used by |
|
-maxRows <n> |
Maximum number of rows to load from the data file. NoteThis 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 NoteThis 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 NoteTrailing 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. NoteThe 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 “-” NoteThe 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. NoteThe 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 “:”. NoteThe 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 |
|
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
Note that when parallel execution is enabled, it is not possible to use global variables to Warning
|
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 Talend Studio |
|
Usage |
This component is mainly used when non particular transformation This component can be used as a standalone or an output |
|
Log4j |
The activity of this component can be logged using the log4j feature. For more information on this feature, see Talend Studio User For more information on the log4j logging levels, see the Apache documentation at http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Level.html. |
|
Limitation |
Due to license incompatibility, one or more JARs required to use this component are not |
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. Please refer to following examples:
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” |
“:” |
For a related use case, see Scenario: Inserting data in MySQL database.