Creating a JDBC connection and importing a database driver - 7.1

Talend Data Management Platform Studio User Guide

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Data Management Platform
task
Design and Development
EnrichPlatform
Talend Studio

Procedure

  1. To create a JDBC connection from scratch, expand Metadata in the Repository tree view, right-click Db Connections and select Create connection from the contextual menu to open the database connection setup wizard.
    To centralize database connection parameters you have defined in a Job into a JDBC connection, click the icon in the Basic settings view of the relevant database component with its Property Type set to Built-In to open the database connection setup wizard.
    To modify an existing JDBC connection, right-click the connection item from the Repository tree view, and select Edit connection to open the connection setup wizard.
  2. Fill in the schema generic information, such as the connection Name and Description, and then click Next to proceed to define the connection details.
    For further information, see the section on defining general properties in Setting up a database connection.
  3. Select JDBC from the DB Type list.
  4. If the library to be imported isn't available on your machine, either download and install it using the Modules view or download and store it in a local directory.
  5. In the Drivers table, add one row to the table by clicking the [+] button.
  6. Click the newly added row and click the [...] button to open the Module dialog box where you can import the external library.
  7. If you have installed the library using the Modules view:
    • Select the Platform option and then select the library from the list.
    • Select the Artifact repository (local m2/nexus) > Find by name or Artifact repository (local m2/nexus) > Find by Maven URI option, then specify the full name or Maven URI of the library module, and click the Detect the module install status button to validate its installation status.
  8. If you have stored the library file in a local directory:
    1. Select the Artifact repository (local m2/nexus) option.
    2. Select the Install a new module option, and click the [...] button to browse to library file.
    3. If you need to customize the Maven URI of the library, select the Custom MVN URI check box, specify the new URI, and then click the Detect the module install status button to validate its installation status.
      Note:

      Changing the Maven URI for an external module will affect all the components and metadata connections that use that module within the project.

      When working on a remote project, your custom Maven URI settings will be automatically synchronized to the Talend Artifact Repository and will be used when other users working on the same project install the external module.

  9. Click OK to confirm your changes.
    The imported library file is listed in the Drivers table.
    Note: You can replace or delete the imported library, or import new libraries if needed.