tSybaseIQOutputBulkExec
Gains in performance during Insert operations to a Sybase IQ database.
tSybaseIQOutputBulkExec executes the
Insert action on the data provided.
tSybaseIQOutputBulkExec Standard properties
These properties are used to configure tSybaseIQOutputBulkExec
running in the Standard Job framework.
The Standard
tSybaseIQOutputBulkExec component belongs to the
Databases family.
The component in this framework is generally available.
Basic settings
|
Property Type |
Either Built-In or
|
|
Use an existing connection |
Select this check box and in the Component 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 across Job levels, see This property is available only when |
|
DB Version and API type |
Select the version of the Sybase IQ database to be used and the API used for setting Note that for Sybase IQ 12 and Sybase IQ 16, the file to be bulk-loaded must be |
|
Host |
Enter the IP address of the Sybase IQ server. This property is available only when |
|
Port |
Enter the listening port number of the Sybase IQ server. This property is available only when |
|
Data Source |
Select the type of the data source to be used and complete the corresponding DSN When FILEDSN is selected, a […] This property is available only when Sybase IQ 15 by ODBC is |
|
Database |
Enter the name of the database. |
|
Username and Password |
Enter the DB user authentication data. To enter the password, click the […] button next to the |
|
Table |
Enter the name of the table to be written. Note that only |
|
Action on table |
On the table defined, you can perform one of the
|
|
Filename |
Enter the name of the file to be generated and loaded. |
|
Append the file |
Select this check box to add the new rows at the end of |
|
Schema and Edit schema |
A schema is a row description. It defines the number of fields (columns) to |
|
|
Built-In: You create and store the |
|
|
Repository: You have already created When the schema to be reused has default values that are integers or You can find more details about how to verify default |
|
|
Click Edit schema to make changes to the schema.
|
Advanced settings
|
Additional JDBC Parameters |
Specify additional connection properties in the existing |
|
Fields terminated by |
Enter the character, string or regular expression used to Warning:
As a combination of tSybaseOutputBulk and tSybaseIQBulkExec, this |
|
Lines terminated by |
Enter the character or sequence of characters used to |
|
Use enclosed quotes |
Select this check box to use data enclosure |
|
Include Head |
Select this heck box to include the column header. |
|
Blank as null |
Select this check box to store the input zero-length |
|
Encoding |
Select the encoding type from the list or select |
|
tStatCatcher Statistics |
Select this check box to collect log data at the |
Usage
|
Usage rule |
This component is mainly used when no particular |
|
Dynamic settings |
Click the [+] button to add a The Dynamic settings table is For examples on using dynamic parameters, see Scenario: Reading data from databases through context-based dynamic connections and Scenario: Reading data from different MySQL databases using dynamically loaded connection parameters. For more information on Dynamic |
|
Limitation |
This component requires installation of its related jar files. The jodbc.jar also needs to be installed separately in For Sybase IQ For Sybase IQ |
Scenario: Bulk-loading data to a Sybase IQ 12 database
This scenario describes a Job that writes data generated by a tRowGenerator component into a file and then bulk-loads the data from the
file to a Sybase IQ 12 database.
Adding and linking the components
-
Create a new Job and add a tRowGenerator
component and a tSybaseIQOutputBulkExec
component by typing their names in the design workspace or dropping them from
the Palette. -
Link the tRowGenerator component to the
tSybaseIQOutputBulkExec component using a
Row > Main connection.
Configuring the components
-
Double-click the tRowGenerator component to
open its RowGenerator Editor.
-
Click the [+] button to add two columns and
set their properties:-
id, Integer type, using Numeric.sequence(String,int,int) from the
Functions list to generate sequence
numbers. -
name, String type, using TalendDataGenerator.getFirstName() from the
Functions list to generate random
first names.
-
-
In the Number of Rows for RowGenerator field,
enter the number of rows to be generated. In this example, keep the default
value 100. -
Click OK to close the editor and in the
pop-up dialog box click Yes to propagate the
schema to the next component.
-
Double-click the tSybaseIQOutputBulkExec
component to open its Basic settings
view.
-
In the Host, Port, Database, Username and Password fields, enter the information required to access the
Sybase IQ 12 database. -
In the Table field, enter the name of the
table into which the data will be writen. In this example, it is staff. - In the Action on table list, select Create table if not exists.
-
In the Filename field, enter the full path of
the file to hold the data.
Saving and executing the Job
- Press Ctrl+S to save the Job.
-
Press F6 to run the Job.
-
In the Sybase Central console, open the table staff to check the data:
As shown above, the table is created with data inserted.
Related scenarios
For use cases in relation with tSybaseIQOutputBulkExec, see the following scenarios: