+ All Categories
Home > Documents > Oracle Data Integrator Expression Transformation

Oracle Data Integrator Expression Transformation

Date post: 21-Jul-2016
Category:
Upload: amit-sharma
View: 100 times
Download: 1 times
Share this document with a friend
Description:
BISP is committed to provide BEST learning material to the beginners andadvance learners. In the same series, we have prepared a complete end-toend Hands-on Beginner’s Guide for Oracle Data Integrator. The documentfocuses on basic expression transformation. Join our professional training program and learn from experts.
20
Oracle Data Integrator 11g Lab Guide : EXPRESSION TRANSFORMATION Description: BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-to end Hands-on Beginner’s Guide for Oracle Data Integrator. The document focuses on basic expression transformation. Join our professional training program and learn from experts. History: Version Description Change Author Publish Date 0.1 Initial Draft Chandan Saxena 01/07/2014 0.1 Review#1 Amit Sharma 03/09/2014 www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 1
Transcript
Page 1: Oracle Data Integrator Expression Transformation

Oracle Data Integrator 11gLab Guide : EXPRESSION TRANSFORMATION

Description:BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepared a complete end-toend Hands-on Beginner’s Guide for Oracle Data Integrator. The document focuses on basic expression transformation. Join our professional training program and learn from experts.

History:Version Description Change Author Publish Date0.1 Initial Draft Chandan Saxena 01/07/20140.1 Review#1 Amit Sharma 03/09/2014

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 1

Page 2: Oracle Data Integrator Expression Transformation

ContentsORACLE DATA INTEGRATOR 11G :.............................................................................3

TRANSFORMATION EXAMPLE USING EXPRESSION TRANSFORMATION :.......................3Description:...............................................................................................................3

Introduction...............................................................................................................3Calculate Expression Transformation in Target in Oracle Data Integrator .................3Below Is the Data Model of GoSales..........................................................................4Source Table Structure..............................................................................................5SOURCE DATA............................................................................................................5

Target Table Structure.............................................................................................6Below is the Table structure of the TRG_ORDER_DETAILS target table in oracle database................................................................................................................... 6TARGET DATA............................................................................................................6What is ETL Mapping document ?.......................................................................7

BEFOREMAPPING_ORDERDETAIL.xlsx..............................................................................7AFTERMAPPING_ORDERDETAIL.xlsx.................................................................................7

Staging Area:.............................................................................................................7DATABASE CONNECTIVITY IN ORACLE DATA INTEGRATOR...............................8How to create context ?..........................................................................................11How to create Logical Schema ?..............................................................................12HOW TO BRING METADATA FROM DATABASE TO ORACLE DATA INTEGRATOR:........................................................................................................13CREATING INTERFACE IN ODI..............................................................................15REQUIRED OUTPUT..............................................................................................19

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 2

Page 3: Oracle Data Integrator Expression Transformation

ORACLE DATA INTEGRATOR 11G :

TRANSFORMATION EXAMPLE USING EXPRESSION TRANSFORMATION :

Description:

BISP is committed to provide BEST learning material to the beginners and advance learners . In the same series , we have prepared a complete end-to end Hands-on guide for building financial data model in Oracle Data ntegrator.The document focuses on how the real world requirement should be interpreted. The mapping document template with very simplified steps and screen shots makes the complete learning so Easy . The document focuses on how to calculate the aggregate function .Join our professional training program and learn from experts.

IntroductionCalculate Expression Transformation in Target in Oracle Data

Integrator .

In this example, we calculate Expression Transformation in Target . There are following Step to follow to calculate Expression Transformation in Oracle Data Integrator.Create master and work repository in Oracle Data Integrator.Import source database and Target table .create mapping and drag and drop source and target table into mapping designer window.Establish a connection of source and target technology with that of particular database.Create a model and Reverse Engineering the datastore according to the technology.Create new interface inside project and then come to mapping tab and make a mapping between source and target datastores.Then create Expression Transformation to group by column.Then come to flow tab and define the knowledge module based on source and target. Then save and Execute Interface and see the result in operator navigator and view theresult in target datastore.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 3

Page 4: Oracle Data Integrator Expression Transformation

Below Is the Data Model of GoSales

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 4

Page 5: Oracle Data Integrator Expression Transformation

Source Table Structure

This is my Table Structure for the source table ORDER_DETAILS in oracle database.

SOURCE DATA

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 5

Page 6: Oracle Data Integrator Expression Transformation

Target Table StructureBelow is the Table structure of the TRG_ORDER_DETAILS target table in

oracle database.

TARGET DATA

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 6

Page 7: Oracle Data Integrator Expression Transformation

What is ETL Mapping document ?

ETL mapping Documents contains source , staging area , target and the Business RulesInformation and it is most important document for the developer . And Below is my Mapping Document which contains Source File Name.

Source Field Name Source Field Data Type Source Field Length Source Field Description Business Rule Staging Area Target Table Name Target Field Name Target Field Data Type Target Field Length

BEFOREMAPPING_ORDERDETAIL.xlsx

AFTERMAPPING_ORDERDETAIL.xlsx

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 7

Page 8: Oracle Data Integrator Expression Transformation

After Mapping we have to Review from the EndUser and then sign off From them.

Source : Used Oracle as my Source Database. Staging : Used oracle as my Staging Area. Target : Used Oracle as my Target Database.

Staging Area:

A place where data is processed before entering the warehouse. Staging Area is temporary location where data from source systems is copied.

A staging area is mainly required in a Data Warehousing Architecture for timing reasons. In short, all required data must be available before data can be integrated into the Data Warehouse

Here I have used Scott schema as staging table and you have to define staging table inside the physical schema at the time when you are establishing connection between oracle database and oracle data integrator.

DATABASE CONNECTIVITY IN ORACLE DATA INTEGRATOR

Now I have to establish a connection between oracle and ODI .For establishing A Connection come to the Topology Navigator .select Oracle as Technology ,Right Click oracle and select New DataServer .In this we have to provide value to Name , Instance , Dba UserName , Password and JDBC Driver.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 8

Page 9: Oracle Data Integrator Expression Transformation

This will establish a connection between oracle and ODI.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 9

Page 10: Oracle Data Integrator Expression Transformation

And Now Right click DataServer and select Physical schema . Here you have To fill information like Schema and work Schema.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 10

Page 11: Oracle Data Integrator Expression Transformation

After creating Physical Schema in DataServer which helps in establishing connection With a particular schema , Now Create a context like Development , production and Testing Which helps to make a mapping between physical and logical Architecture.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 11

Page 12: Oracle Data Integrator Expression Transformation

How to create context ?

Just click on the context tab and then on the Right side of context tab you will find new Context options ,select that “New Context” and create a context for Development ,Production and Testing and If anything else is there than create that one also.

After Context create a Logical Schema for Oracle .

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 12

Page 13: Oracle Data Integrator Expression Transformation

How to create Logical Schema ?

Click on Logical Architecture ,Then select oracle technology .Right Click oracle and Select logical schema and provide information as shown in below diagram.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 13

Page 14: Oracle Data Integrator Expression Transformation

HOW TO BRING METADATA FROM DATABASE TO ORACLE DATA INTEGRATOR:

After establishing a connection between oracle and ODI ,go to the Designer Navigator Here you have to bring the metadata of customertrans datastore .For this you have to create Model folder and sub model for organizing datastore .Right click LOAD_ORACLE ,

And Select New Model and fill all details provided in previous sheet and then select Reverse Engineering Button ,It will bring all the datastore available in the sales schema.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 14

Page 15: Oracle Data Integrator Expression Transformation

After bringing metadata from particular datastore on the model tab , click on the Project tab and here we have to apply the Required Business Rules using interfaces How to implement business rule in project tab ?Go to the Project tab , Expand first folder .Here you will find interface . Right click interface and select new interface .It will open interface window , here you will provide Name of the Interface , Optimization context . Now click on the mapping tab . Here you will get 2 window one for the source and other for target like I am showing in the next Screen .

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 15

Page 16: Oracle Data Integrator Expression Transformation

CREATING INTERFACE IN ODI

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 16

Page 17: Oracle Data Integrator Expression Transformation

Here I have done mapping between source datastore and target datastore.

Click on the flow tab there you have to define required knowledge module and Make the option true or false depend on your requirement and then save and execute . By default staging area is in the target .

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 17

Page 18: Oracle Data Integrator Expression Transformation

Below is the Background Code for the substr function generated by ODI.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 18

Page 19: Oracle Data Integrator Expression Transformation

REQUIRED OUTPUT

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 19

Page 20: Oracle Data Integrator Expression Transformation

After successfully executing the interface select again target interface , Right Click target interface and select ‘data’ .It will show the required output.

www.bispsolutions.com www.bisptrainigs.com www.hyperionguru.com Page 20


Recommended