tDB2BulkExec
Insert operations to a DB2 database.
tDB2BulkExec Standard properties
These properties are used to configure tDB2BulkExec running in the Standard Job framework.
The Standard
tDB2BulkExec component belongs to the Databases family.
The component in this framework is available in all Talend
products.
connector. The properties related to database settings vary depending on your database
type selection. For more information about dynamic database connectors, see Dynamic database components.
Basic settings
Database |
Select a type of database from the list and click |
Property type |
Either Built-in or |
 |
Built-in: No property data stored |
 |
Repository: Select the repository |
Use an existing connection |
Select this check box and in the Component List click the relevant connection component to Note: When a Job contains the parent Job and the child Job, if you
need to share an existing connection between the two levels, for example, to share the connection created by the parent Job with the child Job, you have to:
For an example about how to share a database connection |
Host |
Database server IP address |
Port |
Listening port number of DB server. |
Database |
Name of the database |
Table Schema |
Name of the DB schema. |
Username and |
DB user authentication data. To enter the password, click the […] button next to the |
Table |
Name of the table to be written. Note that only one table can be |
Action on table |
On the table defined, you can perform one of the following
None: No operation is carried
Drop and create table: The table is
Create table: The table does not
Create table if not exists: The
Drop table if exists and create:
Clear table: The table content is |
Schema and Edit |
A schema is a row description. It defines the number of fields |
 |
Built-in: You create the schema |
 |
Repository: You have already |
 |
Click Edit
|
Use Ingest Command |
Select this check box to populate data into DB2 using the INGEST |
Load From |
Select the source of the data to be populated.
This list is available only when the Use |
Data File |
Name of the file to be loaded. Warning:
This file is located on the machine specified by the URI in This field is not visible when PIPE or FOLDER is |
Pipe Name |
Enter the name of the pipe. This field is available only when PIPE is selected from the Load |
Folder |
Specify the path to the folder holding the files to be This field is available only when FOLDER is selected from the Load From drop-down list. |
Action on Data |
On the data of the table defined, you can perform one of the
following operations:
Delete and Merge are available only when the Use Ingest Command check box is |
File Glob Pattern |
Specify the global expression for the files to be loaded. This field is available only when FOLDER is selected from the Load From drop-down list. |
Where Clause |
Enter the WHERE clause to filter the data to be processed. This field is available only when update or delete is |
Custom Insert Values Clause |
Select this check box and in the Insert This check box is available only when the Use Ingest Command check box is selected and |
Custom Update Set Clause |
Select this check box and specify the SET clause for the update operation by completing the This check box is available only when the Use Ingest Command check box is selected and |
Set Mapping |
Complete this table to specify the SET clause for the update operation.
This table is available only when the Custom |
Merge Clause |
Specify the MERGE clause for the merge operation. This table is available only when the Use |
Content Format |
Select the format of the input file, either Delimited or Positional. This list is available only when the Use |
Delimited By |
Enter the character that separates the fields in the delimited This field is available only when Delimited is selected from the Content Format drop-down list. |
Optionally Enclosed By |
Enter the character that encloses the string in the delimited This field is available only when Delimited is selected from the Content Format drop-down list. |
Fixed Length |
Enter the length (in bytes) of the record in the positional This field is available only when Positional is selected from the Content Format drop-down list. |
Mapping |
Complete this table to specify the mapping relationship between
This table is available only when the Use |
Script Generated Folder |
Specify the directory under which the script file will be This field is available only when the Use |
Advanced settings
Additional JDBC parameters |
Specify additional connection properties for the DB connection you Note:
You can set the encoding parameters through this field. |
Field terminated by |
Character, string or regular expression to separate fields. |
Date Format |
Use this field to define the way months and days are |
Time Format |
Use this field to define the way hours, minutes and seconds are |
Timestamp Format |
Use this field to define the way date and time are ordered. |
Remove load pending |
When the box is ticked, tables blocked in “pending” status |
Load options |
Click + to add data loading
Parameter: select a loading
Value: enter a value for the |
tStat |
Select this check box to collect log data at the component |
Global Variables
Global Variables |
NB_LINE: the number of rows processed. This is an After
NB_LINE_UPDATED: the number of rows updated. This is an
NB_LINE_INSERTED: the number of rows inserted. This is an
NB_LINE_DELETED: the number of rows deleted. This is an
QUERY: the query statement 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 dedicated component offers performance and flexibility of |
Dynamic settings |
Click the [+] button to add a row in the table The Dynamic settings table is For examples on using dynamic parameters, see Reading data from databases through context-based dynamic connections and Reading data from different MySQL databases using dynamically loaded connection parameters. For more information on Dynamic |
Related scenarios
For tDB2BulkExec related topics, see: