Skip to main content Skip to complementary content

Setting up a database for an individual report

You can store individual reports in databases other than the default report database.

Before you begin

You have selected the Profiling perspective.

Procedure

  1. In the DQ Repository tree view, expand Reports and double-click the report you want to open.
    If you have already defined a default report data mart or a context connection in the Talend Studio Preferences window, the connection settings are pre-filled with the values of the default data mart or context variables. For more information, see Setting up a distant database.
  2. If the Context view is not displayed:
    1. On the menu bar, click Window > Show view....
    2. Expand Profiling and double-click Context.
      The Context view is displayed.
      Overview of the Context view.
  3. To set a context data mart connection, click Manage variables in the Context view.
  4. Select the context variables from the Talend Studio Repository and click OK.
  5. Set a data mart connection:
    • From the DB Type list, select the database in which you want to store the current report results.
    • Define the connection parameters in the individual connection fields or in the Url field. When you modify any parameter in the Url field, it is modified automatically in the individual fields and vice versa.
    Database Details
    MySQL In the DB Name field, you can:
    • Enter a new database name (catalog). A catalog will be created and the required tables to store analyses and reports will be generated.
    • Use the default database name (talend_dq). In this database, you can have access to all analyses and results of generated reports.
    • Enter a database name that exists in the database.

      If there is no data mart structure in this database, it will be created.

      If the data mart structure already exists but in a lower version that the current one, the data mart structure is updated.

      If the data mart structure already exists but in an higher version that the current one, you cannot use this data mart structure.
      Information noteRemember: MySQL database names with a dot "." are allowed.
      You can connect to an Azure Database for MySQL.
    Oracle with SID

    Oracle with service name

    Oracle OCI

    • Fill the SID or the Service Name field with the name of an existing database.
    • Fill the Schema field with an Oracle schema to which the specified user in the User field has access, or leave it blank. If you leave this field blank, your reports will be written to the default schema of the defined user.
    Information noteImportant: The collation of the schema must be case sensitive. Otherwise the columns may not be analyzed and will be missing from the report. For more information, see the Oracle documentation.
    PostgreSQL
    • Fill in the connection information to the database.
      Information noteRemember: Database names with a dot "." or an hyphen "-" are allowed.
    • You can connect to an Azure Database for PostgreSQL or an Azure SQL database. When connecting to an Azure Database for PostgreSQL database, use the username@hostname syntax for the User field and leave the Additional parameters field empty.
    • You can use only the default schemas of PostgreSQL when you create the data mart on it.
    Microsoft SQL Server
    • Fill in the connection information to the database.
      Information noteRemember: Database names with a dot "." or an hyphen "-" are allowed.

      To enable writing reports to the defined database, make sure that the specified user has enough system privileges.

    • You can use only the default schemas of Microsoft SQL Server when you create the data mart on it.
    • If you want to connect using Windows authentication, leave the User and Password fields empty.

      When creating a connection to a Microsoft SQL Server database to store reports and analysis results, both Microsoft and Open source JTDS drivers are supported.

    • The collation used by the Microsoft SQL Server database must be case-insensitive, otherwise the report generation may not succeed. You may encounter the following error: java.sql.SQLException: Invalid column name 'rep_runtime'. For more information about collation rules, see Microsoft documentation.
    • For more information about setting up a connection to a Microsoft SQL Server database, see What you need to know about some databases.
  6. If you have not selected HSQL from the DB Type list, specify additional connection properties in the Additional parameters field.
    When connecting to a MySQL 8 database, configure the useSSL, requireSSL, and serverTimezone properties. Enter useSSL=false&requireSSL=false&serverTimezone=UTC for example.
    When connecting to an Azure SQL database, enter ssl=require.
  7. In the Database Connection Settings tab, click Check to see the status of your connection.
    A message prompts you to accept creating the database (catalog) if it does not exist.
    If the version of the database you define in the report editor is older than that of Talend Studio, a message prompts you to upgrade it.
  8. Click OK to close the message.
    A confirmation message is displayed.
  9. Click OK to close the confirmation message.
  10. Click the save icon on the report editor toolbar to save the database settings.
    Location of the Save icon in the report tab.
  11. Run the current report.
    The report will be written to the defined database.
    If the connection to the new database connection is not successful, the report will be written to the database defined in the Preferences window. For more information, see Setting up a distant database.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!