table of Contents
1. isomorphic demand
1.1 emp and the connection table dept
The results to be achieved:
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.
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.
Deptno attribute set to be equal to two tables.
In the port we reserve the deptno field emp, dept delete the deptno field, save the map.
4. Create a task and workflow, save, execute, view the results.
1.2 The table emp and right connecting dept
Effect to be achieved:
We can define the properties of the source sql statement qualifier in the mapping.
Port field order to be consistent and sequential query fields defined by sql statement.
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.
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.
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.
Refresh mapping, innovation and job creation workflow, the execution and found no problem.
Data Import situation View user edw also normal.
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.
When you click OK, set the mysql database connection, and dept table where the
ODBC source selection mysql just created, the user name is connected mysql user name and password.
Then import the mysql dept table.
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.
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 .
Reuse the connector converter component joiner to relate two source tables of different databases, and is provided DEPTNO mysql DEPTNO equal to the oracle.
Connecting the target table, save the map.
4. Create a task and workflow:
Create a task, the new mysql table dept source table object.
Double-click the task, each table object editing source and target tables belongs.
Create a workflow, save, after the execution, you can see data in a heterogeneous database connection edw user.
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.
Connection table
master from the table can be customized to replace the transducer assembly