官术网_书友最值得收藏!

Creating a mapping and using transformation features

In the earlier section, we learned about all the prerequisites for creating mapping. Mapping is a structural flow of data from the source to the target through transformations.

To understand the basic steps of creating mapping, let's start by creating a pass-through mapping. A pass-through mapping inserts all the source rows into the target without any modification. A pass-through mapping is a simple flow from source to target without any changes in data.

We will use the EMPLOYEE Oracle table as the source and the TGT_EMPLOYEE as the target for creating a pass-through mapping.

In the following steps, you create a mapping and link columns in the source EMPLOYEES table to a Source Qualifier transformation.

  1. Go to Tools | Mapping Designer | Mappings | Create... to create a new mapping:
  1. In the Mapping Name dialog box, enter m_PASS_THROUGH_EMPLOYEES, and click on OK.
  1. Drag the EMPLOYEES source definition into the Mapping Designer workspace.
  2. The source definition appears in the workspace. The Designer creates a Source Qualifier transformation and connects it to the source definition. Source Qualifier is a default transformation that comes automatically with a source. We will see the usage of the Source Qualifier transformation in the next section.
  3. Expand the Target node in the Navigator to open the list of all the target definitions. Drag the TGT_EMPLOYEES target definition into the workspace. The target definition appears in the Mapping Designer as shown in the following screenshot:
  4. The final step is to connect the Source Qualifier transformation to the target definition.
  5. Drag the columns from Source Qualifier Transformation to Target as shown in the following screenshot. Make sure you are linking the ports properly as any mismatch in linking the ports will make the data movement incorrect.
  1. If you connect the links incorrectly by mistake, you can delete the links by clicking on the link and pressing the Delete button on your keyboard.
  2. Go to Repository | Save to save the contents in repository:

With this, the mapping is complete and saved in Repository. You can check the details in the Output panel.

主站蜘蛛池模板: 安顺市| 临沧市| 兴山县| 上思县| 九江市| 涪陵区| 樟树市| 铜山县| 鄂尔多斯市| 建水县| 武安市| 云梦县| 池州市| 西昌市| 四会市| 昌吉市| 闸北区| 陇川县| 嘉善县| 马公市| 莎车县| 阳高县| 南昌市| 瑞昌市| 黄石市| 岗巴县| 宁河县| 大同市| 莫力| 平乡县| 保定市| 岫岩| 乃东县| 南江县| 合水县| 鲜城| 溆浦县| 无棣县| 馆陶县| 永福县| 阜宁县|