tJDBCConnection Standard properties - 6.4

JDBC

author
Talend Documentation Team
EnrichVersion
6.4
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Database components > JDBC components
Data Quality and Preparation > Third-party systems > Database components > JDBC components
Design and Development > Third-party systems > Database components > JDBC components
EnrichPlatform
Talend Studio

These properties are used to configure tJDBCConnection running in the Standard Job framework.

The Standard tJDBCConnection component belongs to the Databases and the ELT families.

The component in this framework is available in all Talend products.

Basic settings

 

 

JDBC URL

Enter the JDBC URL to connect to the desired DB. For example, enter: jdbc:mysql://IP address/database name to connect to a mysql database.

Driver JAR

Click the plus button under the table to add lines of the count of your need for the purpose of loading several JARs. Then on each line, click the three dot button to open the [Select Module] wizard from which you can select a driver JAR of your interest for each line.

Driver Class

Enter the driver class related o your connection. For example, enter com.mysql.jdbc.Driver as a driver class to connect to a mysql database.

Username and Password

Enter your DB authentication data.

To enter the password, click the [...] button next to the password field, and then in the pop-up dialog box enter the password between double quotes and click OK to save the settings.

Use or register a shared DB Connection

Select this check box to share your connection or fetch a connection shared by a parent or child Job. This allows you to share one single DB connection among several DB connection components from different Job levels that can be either parent or child.

This option is incompatible with the Use dynamic job and Use an independent process to run subjob options of the tRunJob component. Using a shared connection together with a tRunJob component with either of these two options enabled will cause your Job to fail.

Shared DB Connection Name: set or type in the shared connection name.

Specify a data source alias

Select this check box and specify the alias of a data source created on the Talend Runtime side to use the shared connection pool defined in the data source configuration. This option works only when you deploy and run your Job in Talend Runtime . For a related use case, see Deploying your Job on Talend Runtime to retrieve data from a MySQL database.

Advanced settings

Use Auto-Commit

Select this check box to display the Auto Commit check box. Select it to activate auto commit mode.

Once you clear the Use Auto-Commit check box, the auto-commit statement will be removed from the codes.

Auto Commit

Select this check box to commit any changes to the database automatically upon the transaction.

With this check box selected, you cannot use the corresponding commit component to commit changes to the database; likewise, when using the corresponding commit component, this check box has to be cleared. By default, the auto commit function is disabled and changes must be committed explicitly using the corresponding commit component.

Note that the auto commit function commits each SQL statement as a single transaction immediately after the statement is executed while the commit component does not commit only until all of the statements are executed. For this reason, if you need more room to manage your transactions in a Job, it is recommended to use the commit component.

tStatCatcher Statistics

Select this check box to collect log data at the component level.

Usage

Usage rule

This component is more commonly used with other tJDBC* components, especially with the tJDBCCommit and tJDBCRollback components.