DataSets
Using UNION ,INTERSECT ,UNION ALL MINUS
STEP 1 : Creating and Reverse Engineering Source
- Connect to Source schema (SCOTT)
- Execute below scripts
create table EMP10 AS select * from emp where deptno=10
create table EMP20 AS select * from emp where deptno=20
|
- We can use EMP table of SCOTT schema as source
- Reverse engineer EMP10 and EMP20 table into SOURCE MODEL
STEP 2 : Creating and Reverse Engineering Target
- Connect to Target Schema (TDBU)
create table EMP1020 AS select * from scott.emp where 1=2
|
- Reverse engineer into TARGET MODEL
STEP 3 : Creating Interface/Mapping
- Create interface with the name of m_Data_Sets
- Click on mapping tab → Drag and drop source (EMP10)and target (EMP1020) in respective locations
- Click on add/Remove Data Set → Click on Add new dataset
- change name as EMP20 → select operator as UNION → Click on Close
- Drag and drop EMP20 source into source work area
- Click on Flow tab
- Select Target and select IKM SQL CONTROL APPEND
- Select FLOW_CONTROL = False
- Click on SAVE
- Click on RUN
- Observe output
No comments:
Post a Comment