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

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.

主站蜘蛛池模板: 周至县| 南华县| 江山市| 龙泉市| 中阳县| 囊谦县| 永康市| 南部县| 将乐县| 滕州市| 盐源县| 佛教| 长宁县| 南开区| 平湖市| 百色市| 新民市| 台州市| 铅山县| 柘城县| 宜宾县| 望城县| 景泰县| 夏津县| 宁津县| 陕西省| 临桂县| 东兰县| 莱芜市| 万荣县| 眉山市| 中江县| 钟祥市| 芜湖县| 五峰| 区。| 余干县| 墨脱县| 潍坊市| 棋牌| 通化县|