0% found this document useful (0 votes)
118 views5 pages

ODI 12c - Component - Join

The document describes how to use the JOIN component in Oracle Data Integrator 12c to merge data from three source tables into a single target table. The JOIN component is used to combine rows from the source tables SRC_JNR_EMPLOYEES, SRC_JNR_DEPARTMENTS and SRC_JNR_JOBS based on key columns and insert the joined rows into the target table TRG_JNR_EMPLOYEES. The procedure establishes connections between the source and target tables, imports the tables into the ODI model, creates a mapping with the JOIN component, defines the join condition in the component properties, and runs the mapping to merge the data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views5 pages

ODI 12c - Component - Join

The document describes how to use the JOIN component in Oracle Data Integrator 12c to merge data from three source tables into a single target table. The JOIN component is used to combine rows from the source tables SRC_JNR_EMPLOYEES, SRC_JNR_DEPARTMENTS and SRC_JNR_JOBS based on key columns and insert the joined rows into the target table TRG_JNR_EMPLOYEES. The procedure establishes connections between the source and target tables, imports the tables into the ODI model, creates a mapping with the JOIN component, defines the join condition in the component properties, and runs the mapping to merge the data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Join Component in ODI 12c:

Purpose: To merge to the tables.

Pre-requisites:

1. ODI 12c

2. Oracle database

3. KM: Default (IKM and LKM).


IKM: IKM Oracle Insert.GLOBAL
LKM: LKM Oracle to Oracle (datapump)
RKM: Default
4. Components: JOIN

Source Table:
CREATE TABLE SRC_EXP_EMPLOYEES (
“EMPLOYEE_ID” NUMBER(6,0),
“FIRST_NAME” VARCHAR2(20),
“LAST_NAME” VARCHAR2(25) NOT NULL ENABLE,
“EMAIL” VARCHAR2(25) NOT NULL ENABLE,
“PHONE_NUMBER” VARCHAR2(20),
“HIRE_DATE” DATE NOT NULL ENABLE,
“JOB_ID” VARCHAR2(10) NOT NULL ENABLE,
“SALARY” NUMBER(8,2),
“COMMISSION_PCT” NUMBER(2,2),
“MANAGER_ID” NUMBER(6,0),
“DEPARTMENT_ID” NUMBER(4,0) )

CREATE TABLE “SRC_JNR_DEPARTMENTS” (


“DEPARTMENT_ID” NUMBER(4,0),
“DEPARTMENT_NAME” VARCHAR2(30),
“MANAGER_ID” NUMBER(6,0),
“LOCATION_ID” NUMBER(4,0));
CREATE TABLE “SRC_JNR_JOBS” (
“JOB_ID” VARCHAR2(10 BYTE),
“JOB_TITLE” VARCHAR2(35 BYTE),
“MIN_SALARY” NUMBER(6,0),
“MAX_SALARY” NUMBER(6,0))
Target Table:

CREATE TABLE TRG_JNR_EMPLOYEES ( “EMPLOYEE_ID” NUMBER(6,0), “FIRST_NAME”


VARCHAR2(20), “LAST_NAME” VARCHAR2(25) NOT NULL ENABLE, “EMAIL” VARCHAR2(25) NOT
NULL ENABLE, “PHONE_NUMBER” VARCHAR2(20), “HIRE_DATE” DATE NOT NULL ENABLE, “JOB_ID”
VARCHAR2(10) NOT NULL ENABLE, “SALARY” NUMBER(8,2), “COMMISSION_PCT” NUMBER(2,2),
“MANAGER_ID” NUMBER(6,0), “DEPARTMENT_ID” NUMBER(4,0), “DEPARTMENT_NAME”
VARCHAR2(30), “JOB_TITLE” VARCHAR2(35) )

Expected sql:

SELECT F.*,JOB_TITLE,D.DEPARTMENT_NAME FROM SRC_EXP_EMPLOYEES F ,


SRC_JNR_DEPARTMENTS D, SRC_JNR_JOBS J WHERE F.DEPARTMENT_ID=D.DEPARTMENT_ID AND
F.JOB_ID=J.JOB_ID;
Expected Results:

Procedure:
 Establish connections physical and logical connection in topology for source and target tables.
 Import the table in model in using Reverse engineering KM.

 Create mapping and rename as FIRST_JOINER.


 Drag the source table (SRC_JNR_EMPLOYEES, SRC_JNR_DEPARTMENTS, SRC_JNR_JOBS).
 Drag the Join component from component pallet.
 Establish connection between join and three tables.

 Select the JOIN component and go to properties.


 Enter below in express builder.

SRC_JNR_DEPARTMENTS.DEPARTMENT_ID=SRC_JNR_EMPLOYEES.DEPARTMENT_ID AND
SRC_JNR_EMPLOYEES.JOB_ID=SRC_JNR_JOBS.JOB_ID
 Drag the target table (TRG_JNR_EMPLOYEES) from model and establish connection between
JOIN and target table.
 Leave it with default KMs (IKM Oracle Insert.GLOBAL) and LKM (LKM Oracle to
Oracle(datapump)).
 Save the mapping.
 Run the mapping and see logs in operator.
Completed successfully.

You might also like