Oracle Data Integrator 11g Lab Guide : EXPRESSION TRANSFORMA TRANSFORMAT TION
Description: BISP is committed to provide BEST learning material to the beginners and advance learners. In the same series, we have prepar prepared ed a complete end-to end Hands-on Beginner’s Gide !or "racle #ata Integrator. Integrator. The docment !ocses on basic e$pr e$pression ession trans!ormation. %oin trans!ormation. %oin or pro!essional training program and learn !rom e$perts.
History: Version Description Change Date 0.1 Initial Draft 01!0"!#01$ 0.1 %e&ie'(1 %e&ie'(1
www.bispsoltions.com Page '
Author
Publish
Chandan Saena A)it Shar)a Shar)a
www.bisptrainigs.com
0*!0+!#0 0*!0+!#01$ 1$
www.h&periongr.com
Contents ,%AC- DA/A DA/A I/%A/,% 11 (.............................................................................) 11 (.............................................................................) T*+S"*+ T*+S"*+TI" TI" E/+P0E 1SIG E/P*ESSI" T*+S"*+ T*+S"*+TI" TI" (.................. .....) #escription(............................... #escription(................................................... ........................................ ........................................ ...................................... .................... .. ) Introduction.................... Introduction........................................ ........................................ ........................................ ............................................... ........................... .... ) 2alclate E$pression Trans!ormation Trans!ormation in Target in "racle #ata Integrator .................) . ................) Below Is the #ata odel o! GoSales................................................ GoSales....................................................................... .......................... ... 3 Sorce Table Strctre................................ Strctre.................................................... .................................................. .............................. ............ 4 S"1*2E #+T #+T+....................................... +........................................................... ........................................ ................................................. ............................. 4 /arget /able Structure.............................................................................................5 Structure .............................................................................................5 Below is the Table strctre strct re o! the T*G6"*#E*6#ET+I0S T*G6"*#E* 6#ET+I0S target table in oracle database.............................. database.................................................. ........................................ ......................................................... ..................................... ........ 5 T+*GET T+*GET #+T #+T+...................................... +.......................................................... ........................................................ .................................................. .............. 5 2hat is /- 3apping docu)ent 4.......................................................................7 4.......................................................................7 BE"*E+PPIG6"*#E*#ET+I0.$ls$..............................................................................7 +TE*+PPIG6"*#E*#ET +TE*+PPIG6"*# E*#ET+I0.$ls$................ +I0.$ls$.................................... ....................................... ............................................. .......................... 7 Staging +rea(.............................. +rea(................................................. ....................................... ........................................ ........................................ .................... 7 DA/A5AS C,C/IVI/6 I ,%AC- DA/A I/%A/,%...............................8 I/%A/,% ...............................8 How to create conte$t 9..........................................................................................'' How to create 0ogical Schema 9....................................... 9........................................................... ....................................... ...................': ': H,2 /, / , 5%I 5%I 3/ADA/A 3/ADA/A 7%,3 DA/A5AS DA/A5AS /, ,%AC- ,%A C- DA/A DA/A I/%A/,%(................. I/%A/,%(..................................... ........................................ ............................................................ ........................................ ....... ') C%A/I I/%7AC I ,DI..............................................................................'4 ,DI..............................................................................'4 %89I%D ,9/P9/..............................................................................................'; ,9/P9/..............................................................................................';
www.bispsoltions.com Page :
www.bisptrainigs.com
www.h&periongr.com
,%AC- ,%AC - DA/ DA/A A I/ I/%A/,% %A/,% 11 : /%AS7,%3A/I, A3P- 9SI P%SSI, /%AS7,%3A/I, : Description: BISP is committed to provide BEST learning learning material to the beginners and advance learners . In the same series , we have prepared a complete end-to end Hands-on gide !or bilding es the complete learning so Eas& . The docment !ocses on how to calclate the the aggregate !nction !nction .%oin or pro!essional training training program program and learn !rom !rom e$perts.
Introduction Calculate pression /ransfor)ation in /arget in ,racle Data Integrator Integrat or . In this e$ample, we calclate E$pression Trans!ormation in Target . There are !ollowing Step to !ollow to calclate E$pression Trans!ormation in "racle #ata Integrator. 2reate master and wor> repositor& in "racle #ata Integrator. Import sorce database and Target table . create mapping and drag and drop sorce and target table into mapping designer window. Establish a connection o! sorce sorce and target technolog& with with that o! particlar database. 2reate a model and *everse Engineering the datastore according to the technolog&. technolog&. 2reate new inter!ace inside pro?ect and then come to mapping tab and ma>e a mapping between sorce and target datastores. Then create E$pression E$pression Trans!ormation Trans!ormation to grop grop b& colmn. Then come to @ow tab and and denowledge modle modle based on sorce sorce and target. Then save and E$ecte Inter!ace Inter!ace and see the reslt in operator operator navigator and view the reslt in target datastore.
www.bispsoltions.com Page )
www.bisptrainigs.com
www.h&periongr.com
5elo' Is the Data 3odel of oSales
www.bispsoltions.com Page 3
www.bisptrainigs.com
www.h&periongr.com
Source /able /able Structure Structur e This is m& Table Table Strctre !or the sorce sorce table "*#E*6#ET+I0S "*#E*6#ET+I0S in oracle database. database.
S,9%C DA/A
www.bispsoltions.com Page 4
www.bisptrainigs.com
www.h&periongr.com
/arget /able Structure 5elo' is the /able /able structure of the /%;,%D%;D/AI-S /%;,%D%;D/AI-S target table in oracle database.
/A%/ DA/A
www.bispsoltions.com Page 5
www.bisptrainigs.com
www.h&periongr.com
2hat is /- 3apping docu)ent 4 ET0 mapping #ocments contains sorce , staging staging area , target target and the Bsiness *les *les In!ormation and it is most important docment !or the developer . +nd Below is m& apping #ocment #ocment which contains Sorce Sorce ile ame.
Sorce ield ame Sorce ield #ata T&pe T&pe Sorce ield 0ength Sorce ield #escription Bsiness *le Staging +rea Target Target Table ame Target Target ield ield ame Target Target ield ield #ata T&pe Target Target ield ield 0ength
BE"*E+PPIG6"*#E*#ET+I0.$ls$
+TE*+PPIG6"*#E*#ET+I0.$ls$ www.bispsoltions.com Page 7
www.bisptrainigs.com
www.h&periongr.com
+!ter +!ter apping we have to *eview *eview !rom the End1ser and then sign oA rom them. Sorce ( 1sed "racle as m& Sorce #atabase. Staging ( 1sed oracle as m& Staging +rea. Target ( 1sed "racle as m& Target #atabase.
Staging Area:
+ place where data is processed be!ore entering the warehose. Staging +rea is temporar& location where data !rom sorce s&stems is copied. + staging area is mainl& re=ired re=ired in a #ata arehosing arehosing +rchitectre +rchitectre !or timing reasons. In short, all re=ired data mst be available be!ore data can be integrated into into the #ata arehose arehose Here I have sed Scott Scott schema as staging table and and &o have to de
DA/A5AS C,C/IVI/6 I ,%AC- DA/A I/%A/,%
ow I have to establish a connection between oracle and "#I .or establishing + 2onnection come to the Topolog& avigator .select "racle as Technolog& ,*ight 2lic> oracle and select select ew #ataServer .In this we have to provide provide vale to ame , Instance , #ba 1serame , Password and %#B2 #river.
www.bispsoltions.com Page 8
www.bisptrainigs.com
www.h&periongr.com
This will establish a connection connection between oracle oracle and "#I.
www.bispsoltions.com Page ;
www.bisptrainigs.com
www.h&periongr.com
+nd ow *ight clic> #ataServer and select Ph&sical schema . Here &o have To To e Schema and wor> Schema.
www.bispsoltions.com Page 'C
www.bisptrainigs.com
www.h&periongr.com
+!ter +!ter creating Ph&sical Schema Schema in #ataServer which helps in in establishing connection ith a particlar schema , ow 2reate a conte$t conte$t li>e #evelopment , prodction prodction and Testing Testing hich helps to ma>e a mapping between ph&sical ph&sical and logical logical +rchitectre. +rchitectre.
www.bispsoltions.com Page ''
www.bisptrainigs.com
www.h&periongr.com
Ho' to create contet 4 %st clic> on the conte$t conte$t tab and then on the *ight side o! o! conte$t tab &o &o will
+!ter +!ter 2onte$t create a 0ogical Schema !or "racle .
www.bispsoltions.com Page ':
www.bisptrainigs.com
www.h&periongr.com
Ho' to create -ogical Sche)a 4 2lic> on 0ogical +rchitectre ,Then select oracle technolog& .*ight 2lic> oracle and Select logical schema and provide in!ormation as shown in below diagram.
www.bispsoltions.com Page ')
www.bisptrainigs.com
www.h&periongr.com
H,2 /, 5%I 3/ADA/A 7%,3 DA/A5AS /, ,%AC- DA/A I/%A/,%:
+!ter +!ter establishing a connection between oracle and "#I ,go to the #esigner #esigner avigator avigator Here &o have to bring the metadata o! cstomertrans datastore .or .or this &o have to create odel !older and sb model !or organiFing datastore .*ight clic> 0"+#6"*+20E 0"+#6"*+20E ,
+nd Select ew odel and
www.bispsoltions.com Page '3
www.bisptrainigs.com
www.h&periongr.com
+!ter +!ter bringing metadata !rom particlar particlar datastore on the model tab , clic> on the Pro?ect tab and here we have to appl& the *e=ired Bsiness *les sing inter!aces in ter!aces How to implement bsiness rle in pro?ect tab 9 Go to the Pro?ect tab , E$pand inter!ace and select new inter!ace .It will open inter!ace window , here &o will provide ame o! the Inter!ace , "ptimiFation conte$t . ow clic> on the mapping tab . Here &o will get : window one !or the sorce and other !or target li>e I am showing in the ne$t Screen .
www.bispsoltions.com Page '4
www.bisptrainigs.com
www.h&periongr.com
C%A/I C%A /I I/%7 I/%7AC AC I I ,DI
www.bispsoltions.com Page '5
www.bisptrainigs.com
www.h&periongr.com
Here I have done mapping between sorce datastore and target datastore.
2lic> on the @ow tab there &o have to denowledge modle and and a>e the option tre or !alse depend on &or re=irement and then save and e$ecte . B& de!alt staging staging area is in the target .
www.bispsoltions.com Page '7
www.bisptrainigs.com
www.h&periongr.com
Below is the 5ac
www.bispsoltions.com Page '8
www.bisptrainigs.com
www.h&periongr.com
%89I%D ,9/P9/ www.bispsoltions.com Page ';
www.bisptrainigs.com
www.h&periongr.com
+!ter +!ter sccess!ll& e$ecting the inter!ace inter!ace select again target inter!ace inter!ace , *ight 2lic> target inter!ace and select data’ .It will show the re=ired otpt .
www.bispsoltions.com Page :C
www.bisptrainigs.com
www.h&periongr.com