DB2 data point is used to configure connectivity to DB2 database. For each instance of DB2 database, a separate data point will have to be created. Multiple databases within the same DB2 instance can be added in single DB2 data point. The DB2 data point will be associated to any DB2 data object created.

To work with DB2 Data Point, follow below steps:

Step I: Create a New Data Point

Step II: Enter connection details

1. To connect to DB2 database following details need to be provided in the Properties tab.

  • Platform: A environment in which a data point is executed. Here, you can work on LUW, iSeries, or Mainframe platforms.
  • Host: Specify the hostname or the IP address of the DB2 system
  • Port: Specify the port associated to the DB2 system
  • App User: Specify the user id that will be used to connect to the DB2 system. This user should have necessary privileges to access the data in the schema.
  • Password: Specify the password for the App User
  • Jdbc OptionsSpecify the options that should be used along with JDBC URL to connect to DB2.
    For example, following details are provided in JDBC Options to connect to DB2: user=diyotta, password=******, db=TEST_DB.
  • Database: Collection of information that is organized so that it can be easily accessed, managed and updated.
  • Database Alias Name: For easy identification provide a reference name
  • Database Version: Specify the DB2 version being connected to
  • Code Page: A standardized code in which characters are represented for computer storage and transmission by the numbers 0 through 127. Here, you can select either ASCII or EBCDIC.
  • Security Authentication: Specifies the type of security protocol to connect to the instance and you can either select SSL or None.
  • Truststore: Specify TrustStore path which is placed in the agent location and this field is available for SSL authentication
  • Truststore Password: Specify password for TrustStore which is created while generating TrustStore file and this field is available for SSL authentication

Note:

  • Mandatory field names are suffixed with *. To establish the connection, provide all the mandatory property field values.
  • All the fields in the Properties tab can be parameterized using project parameters. To parameterize the fields, refer Working with Project Parameters.

2. Assign Agent: To assign or change the associated agent click Change. The Change Agent window appears and displays the list of available Agents. From the list, select the required Agent Name.

Note: To search for a specific agent, enter the keyword in the search bar, and the window displays the search result list. Select the required agent and click Ok.
  • If Default agent is assigned to the Project then automatically, the Default agent will be associated with the new Data point created.
  • If Default agent is not assigned to the Project then, no agent will be assigned automatically and appropriate agent needs to be assigned to the data point.
  • When connecting to the Agent server then, the agent installation user should have appropriate privilege to access the path where file will be placed.
  • When connecting to the remote server then, the firewall needs to be opened from the Agent server to it and user specified to connect should have appropriate privilege to access the path where file will be placed.

Step III: Test the data point connection

  • To validate that the data point is able to connect to the DB2 data point database using the details provided, refeTest Data Point Connection. 

Step IV: Enter the Schema details

Manage the required schemas to be accessed through the Schemas tab. Multiple schemas can be added here.

Note: To work with the application its mandatory to have at least one schema connection, by default the Default schema is associated with the new Data point created.

1. To add a new schema, click Add(+).

New entry for schema is generated and success message is displayed at the bottom right corner of the screen.

  • The "Name" field is a friendly name that can be assigned to the schema for easy identification. This friendly name is displayed when a schema needs to be chosen from the data point and when the schema association with other components is displayed.
  • Provide the physical name of the schema in the "Schema" field. When clicked on the entry in the "Schema" field a drop-down appears with the list of DB2 databases in the system. As you enter the schema keyword, the drop-down shows the specific schemas. The schema name can either be selected from this drop-down list or you can manually enter.
  • To assign a schema to be used for creating temporary tables as part of processing the data (generally referred to as tform schema), select the checkbox under Transforms field.

  • The Transforms field is available only for those type of data points which are supported by Diyotta as data processing platform.
  • It is mandatory to assign a schema as transform in the data point when, that data point needs to be assigned during the data flow creation and used as the processing platform.
  • To view the schema drop-down, it is a prerequisite to test the connection. For more information, refer Test Data Point Connection.
  • To search for a specific schema, enter the keyword in the search bar, and the page displays the related schemas.

Note:

  • Following operations are allowed on the schema entries: Add, Cut, Copy, Paste, Up, Down, Delete, and Search.
  • From the list of schemas, multiple schemas can be selected and we can perform/apply these operations.

Step V: Save the data point 

Note: 

Step VI: Modify the configured Extract and Load properties

When moving data from one system to another the data is extracted from the source system, moved over the network and loaded into the target system. The SQLs and commands generated during execution of the jobs to extract and load data are generated based on the properties defined for these. The properties associated with the extraction and load of data should depend on the format, performance and variety of the data being moved. These properties vary based on the environment and the type of the system. Diyotta comes with default properties that covers most of the known scenarios. 

To modify these properties, refer Editing Extract Properties in DB2 Data Point and Editing Load Properties in DB2 Data Point.

  • The default values for extract and load properties can be configured in the Admin module and these properties reflect in the Studio module.
  • The extract and load properties set in data point are by default used in the source and target instance of the data flow and the job flows.
  • It is a good practice to set the extract and load properties as per the company standards in the data point.
  • However, if needed any specific property can be overridden in the data flow or job flow.