informatica homogeneous and heterogeneous


1. isomorphic demand

1.1 emp and the connection table dept

The results to be achieved:
Here Insert Picture Description
1. Import source table: TABLE EMP and dept table.
2. Define the destination table: renaming the emp table, was added 2 dept field generating sql statement to create the table in the user edw.
Here Insert Picture Description
Here Insert Picture Description
3. Create a map:
Delete the original source qualifier attached to each of the source table, create a new source qualifier while select two source tables.
Here Insert Picture Description
Deptno attribute set to be equal to two tables.
Here Insert Picture Description
In the port we reserve the deptno field emp, dept delete the deptno field, save the map.
Here Insert Picture Description
4. Create a task and workflow, save, execute, view the results.
Here Insert Picture Description
Here Insert Picture Description

1.2 The table emp and right connecting dept

Effect to be achieved:
Here Insert Picture Description
We can define the properties of the source sql statement qualifier in the mapping.
Here Insert Picture Description
Port field order to be consistent and sequential query fields defined by sql statement.
Here Insert Picture Description
Save mapping, re-execute the workflow.
But in the end only 14 returned data, we hope that the right to return of all 20 data connections, view the error that it could not be written to null empno field.
Here Insert Picture Description
The reason is the source of our dept table emp and empno set the primary key, so you need to remove the primary key flag.
Here Insert Picture Description
View deptno target table on the non-empty also ticked up, you need to remove the hook, and then re-execute the sql statement, re-create the table in edw user.
Here Insert Picture Description
Refresh mapping, innovation and job creation workflow, the execution and found no problem.
Here Insert Picture Description
Data Import situation View user edw also normal.
Here Insert Picture Description

2. Heterogeneous demand

2.1 emp and the oracle mysql the connection table dept

1. Import dept table from the mysql
redefined odbc driver, to connect mysql. Select System DSN, if the pop-up warning that non-administrative privileges on the use administrator mode D reopen the client.
Here Insert Picture Description
When you click OK, set the mysql database connection, and dept table where the
Here Insert Picture Description
ODBC source selection mysql just created, the user name is connected mysql user name and password.
Then import the mysql dept table.
Here Insert Picture Description
Here Insert Picture Description
2. Define the target table: edw_emp_join_dept_yigou
3. Create map:
using the connector assembly joiner converted to two source tables associated with different databases.
Here Insert Picture Description
Inconsistent data type, the data type needs to be converted. Deptno converted into the data type mysql and consistent deptno Oracle using an expression components .
Here Insert Picture Description
Reuse the connector converter component joiner to relate two source tables of different databases, and is provided DEPTNO mysql DEPTNO equal to the oracle.
Here Insert Picture Description
Connecting the target table, save the map.
Here Insert Picture Description
4. Create a task and workflow:
Create a task, the new mysql table dept source table object.
Here Insert Picture Description
Double-click the task, each table object editing source and target tables belongs.
Here Insert Picture Description
Create a workflow, save, after the execution, you can see data in a heterogeneous database connection edw user.
Here Insert Picture Description
Here Insert Picture Description

3. homogeneous and heterogeneous summary

Isomorphism is connected to a source of two source tables qualifier.
Heterogeneous two source tables are respectively connected to the source qualifier, then converted by a connecting assembly therebetween.
Here Insert Picture Description
Connection table
Here Insert Picture Description
master from the table can be customized to replace the transducer assembly
Here Insert Picture Description

Published 56 original articles · won praise 34 · views 3652

Guess you like

Origin blog.csdn.net/MicoOu/article/details/103635926