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

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.

主站蜘蛛池模板: 北京市| 万年县| 镇平县| 沧州市| 桦南县| 大城县| 乌鲁木齐县| 屏南县| 江达县| 吉木乃县| 临西县| 伊吾县| 开远市| 湛江市| 正蓝旗| 轮台县| 化州市| 镇宁| 辰溪县| 凌海市| 万盛区| 广德县| 墨玉县| 土默特左旗| 合阳县| 东安县| 乐业县| 华坪县| 涡阳县| 五家渠市| 禹城市| 青神县| 霸州市| 九台市| 井研县| 麦盖提县| 黄骅市| 海宁市| 治县。| 健康| 四平市|