0% found this document useful (0 votes)
43 views

BODI Ex 4

This document describes several exercises involving data flows in Oracle Data Integrator: 1) It deletes data from a target table connected to a case transform. 2) It creates a target table for a table comparison, runs a data flow to insert new rows and update columns, and verifies the changes. 3) It runs a history-preserving transform to insert new rows and update columns, truncating the target first, and checks the flag updates. 4) It creates an audit rule to check if the number of input rows equals the number of target rows.

Uploaded by

api-19792462
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

BODI Ex 4

This document describes several exercises involving data flows in Oracle Data Integrator: 1) It deletes data from a target table connected to a case transform. 2) It creates a target table for a table comparison, runs a data flow to insert new rows and update columns, and verifies the changes. 3) It runs a history-preserving transform to insert new rows and update columns, truncating the target first, and checks the flag updates. 4) It creates an audit rule to check if the number of input rows equals the number of target rows.

Uploaded by

api-19792462
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

Exercise-4

Ex: Map_Operation

Delete Data from target connected to default case in Case Transform exercise.

Ex. Table Comparison

Create following table & configure it as target.


CREATE TABLE CUST_FLAG_DIM
(
cust_key Number(4),
CUST_ID NUMBER(4) NOT NULL,
FIRST_NAME VARCHAR2(25) NOT NULL,
LAST_NAME VARCHAR2(25) NOT NULL,
PH_NO CHAR(12),
ADDRESS VARCHAR2(23),
CITY VARCHAR2(12) NOT NULL,
STATE CHAR(2),
CURRENT_FLAG char(1)
);

ALTER TABLE CUST_FLAG_DIM ADD PRIMARY KEY (CUST_Key);

Source: Customer Master


Transform: Table_comparision( compare phoneno, state), Key_Generator
Run the data flow & Insert a new rows in source & update phone no for one row & state
column for other row.
Run the dataflow again & see new row got inserted & two rows got updated.

Ex: History Preserving Transform

Source: customer_master
Traget: cust_flag_dim
Transforms: As shown in above figure.
Properties: Table comparison Transform
Properties History Preserving Transform

Truncate cust_flag_dim form sql prompt.


Run the job.
Insert new row in source.
Update ph no for one row.
Update state for one row.
Run job & see the change in current flag for the row where state had changed.
New row gets inserted
Changed phone no gets updated without change of status flag.

Ex: Audit

Create audit rule to check if total input rows are equal to sum of target rows.
Refer audit slides for configuration.

You might also like