Вы находитесь на странице: 1из 2

Shekhar4008@gmail.

com
Data warehousing Technolgies
Target load plan
SA: EMP, Import DEPT
TD: Drag Dept, Edit
REname: Dept_t
Columns tab
DEPTNO Primary Key
DNAME
LOC
Drag Emp from source folder, Edit
Rename Emp_T, Columns tab
EMPNO
--
---
DEPTNO Foreign Key

Primary table Dept_T


Primary Column Deptno
ok
Targets(menu)> Generate / Execute SQl<, Select Primary key and Foreign
key
Genderate table in the target user

MD: Map_TLP
Drag Source DEPt and Target Dept_T, Autolink
Drag Source EMP and Target EMP_T, Autolink
Validate and Save
Create sesson, workflow and start workflow
Note:
All the records in teh target table emp_t will get rejeted and all the
record indept will be laoded.
Reason : Parent key not fount
Integration service has loaded data first in MEp and then in Dept
To handle this issue we have to set Target laod plan

Go to Target designer, Generate the tables again


Go to Mapping Designer, mappings(menu)> Target laod plan
Move SQ_Dept up using teh arrow.
save and run teh workflow.
Now, chekc the result

Constraint based Loading


SA: Import EMPX
TD: Same as previous example, gen and exec.
MD: map_CBL
Drag EMPX and targets EMP_T and Dept_T, Autolink, validate and Save.
Create sesson, workflow and start workflow
Note:
Records in EMP_T will get rejected because of the same reason.
Go to Target designer, Generate the tables again
Go to Task developer, Edit session
Config object tab,
Constraint based loading Check this option.
save and run teh workflow.
Now, checkthe result

Вам также может понравиться