Table of Contents

Search

  1. Preface
  2. Introduction to PowerExchange for JDBC V2
  3. PowerExchange for JDBC V2 Configuration Overview
  4. JDBC V2 Connections
  5. PowerExchange for JDBC V2 Data Objects
  6. JDBC V2 Mappings
  7. PowerExchange for JDBC V2 Dynamic Mappings
  8. JDBC V2 Lookup
  9. JDBC V2 Run-Time Processing
  10. JDBC V2 Datatype Reference

PowerExchange for JDBC V2 User Guide

PowerExchange for JDBC V2 User Guide

Developing and Running Dynamic Mappings

Developing and Running Dynamic Mappings

Perform the following tasks to develop and run a dynamic mapping to read or write to JDBC V2. The tasks and the order in which you perform the tasks depend on the mapping scenario and the transformations that you plan to use in the mapping.
  1. Create a JDBC V2 mapping and add the JDBC V2 objects.
  2. Configure a JDBC V2 dynamic source for the Read or Lookup transformation to get metadata changes from the JDBC V2 source at run time. Select the JDBC V2 source object and perform one of the following tasks based on your requirement:
    • Use a parameter as a source for a dynamic mapping source object.
    • Configure data sources for source objects in mappings to get metadata changes at run time. To dynamically get columns from the data source file at run time, select
      At run time, get data object columns from the data source
      .
  3. Create dynamic ports in transformations and link ports.
  4. Define input rules for dynamic ports to determine which generated ports to create.
  5. Configure a Write transformation to write to a JDBC V2 dynamic target. Select the JDBC V2 target object and perform one of the following tasks based on your requirement:
    • Use a parameter as the data object for the transformation and then change the parameter at run time.
    • To dynamically get data object columns from the data source at run-time, enable the option
      At run time, get data object columns from the data source
      .
    • Define target object columns by mapping flow to enable upstream mapping objects to update the incoming ports for the Write transformation.
      To do this, select
      Columns defined by: Mapping flow
      in the
      Ports
      tab of the Properties view and then select
      Create or replace table at run time
      in the
      Target Schema Strategy
      list.
  6. Create and configure a run-time link to determine which ports to link at run time.
  7. Validate the mapping.
  8. Compile and run the dynamic mapping.

0 COMMENTS

We’d like to hear from you!