tag:blogger.com,1999:blog-38886779607817842152024-03-19T14:17:28.573+05:30Informatica Complete ReferenceGowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.comBlogger78125tag:blogger.com,1999:blog-3888677960781784215.post-73347218418318615622016-08-25T13:57:00.003+05:302020-06-09T19:54:29.110+05:30SCD - Creating a Type 2 Dimension using Dynamic Lookup<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<span lang="EN-IN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Slowly Changing Dimension Type 2 - Effective Date
Range:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN-IN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">The Slowly Changing Dimension Type 2 is used to
maintain complete history in the target. The source rows based on user-defined
comparisons and inserts both new and changed (as a new entry) dimensions into
the target. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal">
<span lang="EN-IN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Changes are tracked in the target table by
maintaining an effective date range for each version of each dimension in the
target. In the Type 2 Dimension/Effective Date Range target, the current
version of a dimension has a begin date with no corresponding end date.<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-IN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-IN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"></span></div>
<div class="MsoNormal" style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;">
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 13.3333px;">In the below scenario trying the maintain the history for Employee details in case ENAME, JOB, MGR, SAL, COMM and DEPTNO get change. So that complete history of changes can be maintained using SCD type 2.</span></span></div>
<div>
<div class="MsoNormal" style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Below is the final mapping snaps using Dynamic Lookup: </span></div>
</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-R3qOx6C4LJA/V76wZJB4GtI/AAAAAAAAChs/MlMwmxhTzV0ModFBCiTym1x9SSYzNUUdwCLcB/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-R3qOx6C4LJA/V76wZJB4GtI/AAAAAAAAChs/MlMwmxhTzV0ModFBCiTym1x9SSYzNUUdwCLcB/s1600/1.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal">
<span lang="EN-IN" style="background: white; color: #555555; font-family: "Verdana","sans-serif"; font-size: 10.0pt;">Please connect to the Repository and open Folder
where you want to create mapping and workflow.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Verdana, sans-serif; font-size: 10pt;">1. Connect and Open
the folder if not already opened.<o:p></o:p></span></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Verdana, sans-serif; font-size: 10pt;"></span></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Verdana, sans-serif; font-size: 10pt;">2. Select Tools --> Mapping
Designer<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-gmU41YtVK7A/V76wasod37I/AAAAAAAACiM/JSXIG1V6JYE_PrtvHU_OIGMNtfQej1CtwCLcB/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-gmU41YtVK7A/V76wasod37I/AAAAAAAACiM/JSXIG1V6JYE_PrtvHU_OIGMNtfQej1CtwCLcB/s1600/2.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; color: #555555; font-family: Verdana, sans-serif; font-size: 10pt;">3. Select Mappings --> Create -->
Entry the mapping name you want to create. Then click on "OK".<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-aEDGZRlHCds/V76wbl14b7I/AAAAAAAACis/N6xb3qksEHYUgHGNOYS4Dv2fazg0187GgCLcB/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-aEDGZRlHCds/V76wbl14b7I/AAAAAAAACis/N6xb3qksEHYUgHGNOYS4Dv2fazg0187GgCLcB/s1600/3.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">4. Drag the Source and Target definitions into
workspace if they are already exist. If not click here to know how to create or
import Table definitions.<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-CyIn0gIoFRw/V76wcI4acHI/AAAAAAAACiw/K6YiHwhumeUEuAZeUxxsYMXNspq3pivzACLcB/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-CyIn0gIoFRw/V76wcI4acHI/AAAAAAAACiw/K6YiHwhumeUEuAZeUxxsYMXNspq3pivzACLcB/s1600/4.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Note: Take 2 instance of target one for insert
new & change records as insert and another for update the history record.<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">5. Add a Lookup transformation on target table
from menu Select 'Transformation' from Menu --> Create</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-N1WQlIcit-E/V76wcBs1h0I/AAAAAAAACi0/PpRhCJK1mc8QSFWF8VZ6rOUKJPscFixnQCLcB/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-N1WQlIcit-E/V76wcBs1h0I/AAAAAAAACi0/PpRhCJK1mc8QSFWF8VZ6rOUKJPscFixnQCLcB/s1600/5.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">It will pop up below screen, entry the name for
the lookup transformation, click on Create and Done<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-264IUFEwYCE/V76wcCc23wI/AAAAAAAACi4/H_AH1IhtMPEhTrP7xv6qt-dNNNU6shvMwCLcB/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-264IUFEwYCE/V76wcCc23wI/AAAAAAAACi4/H_AH1IhtMPEhTrP7xv6qt-dNNNU6shvMwCLcB/s1600/6.png" /></a></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Or <o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">You can create lookup from icon as show below
select lookup icon highlighted<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-92FCiPpKf6I/V76wcrgxlLI/AAAAAAAACjE/f1-NP3kGET8dN1YQRcDXMkJmNIroQuIowCLcB/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-92FCiPpKf6I/V76wcrgxlLI/AAAAAAAACjE/f1-NP3kGET8dN1YQRcDXMkJmNIroQuIowCLcB/s1600/7.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">This is popup a below screen select the location
of the lookup table as Target as we need to maintain history for the target
table and select the lookup table you want from the tables list then click on
OK.<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-WANkatHzVdY/V76wctRU-nI/AAAAAAAACi8/BRHDOqN6qasx9sZAVUf6ynBDmaCoQo1KACLcB/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-WANkatHzVdY/V76wctRU-nI/AAAAAAAACi8/BRHDOqN6qasx9sZAVUf6ynBDmaCoQo1KACLcB/s1600/8.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">This will create lookup in workspace.</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">6. Drag/map the ports all/required to lookup
transformation from source qualifier<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><a href="https://1.bp.blogspot.com/-N8mEX_COO94/V76wZGZSUoI/AAAAAAAAChw/ZMH6WZrQCK8cJmfghS1IKG7lUqWrPRgTgCLcB/s1600/10.png" imageanchor="1" style="font-family: "Times New Roman"; font-size: medium; text-align: left;"><img border="0" src="https://1.bp.blogspot.com/-N8mEX_COO94/V76wZGZSUoI/AAAAAAAAChw/ZMH6WZrQCK8cJmfghS1IKG7lUqWrPRgTgCLcB/s1600/10.png" /></a></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">7. Edit the lookup transformation go to --></span><span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> Condition tab to
defined lookup condition and then click on OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<a href="https://2.bp.blogspot.com/-aWwDHPdPfb8/V76wZgMoRaI/AAAAAAAACh0/fPPbcpb4vqw2eQ--MlWbsa7pLn03lXS9QCLcB/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: left;"><img border="0" height="227" src="https://2.bp.blogspot.com/-aWwDHPdPfb8/V76wZgMoRaI/AAAAAAAACh0/fPPbcpb4vqw2eQ--MlWbsa7pLn03lXS9QCLcB/s640/11.png" width="640" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Note: Lookup condition can be one or more ports<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Double click on Lookup to edit and goto --> Properties tab</span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 13.3333px;">click on check box "</span></span><span style="font-size: 13.3333px; text-align: left;"><span style="font-family: Verdana, sans-serif;">Dynamic Lookup Cache", "</span></span><span style="font-size: 13.3333px; text-align: left;"><span style="font-family: Verdana, sans-serif;">Insert Else Update" & "Output Old Value on Update" as highlighted below.</span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-size: 13.3333px; text-align: left;"><span style="font-family: Verdana, sans-serif;">Update Dynamic Cache Condition as "True"</span></span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-size: 13.3333px; text-align: left;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-E1FQihSQ5Ec/V76wc7ojOfI/AAAAAAAACjA/HAwcTEpx2hEhzvap-yJRZ1ww7GeLS7_nACLcB/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-E1FQihSQ5Ec/V76wc7ojOfI/AAAAAAAACjA/HAwcTEpx2hEhzvap-yJRZ1ww7GeLS7_nACLcB/s1600/9.png" /></a></div>
<br />
This will create a New port (non editable) "NewLookuRow" which will generate 0, 1 & 2.<br />
Note: 0 for Insert (New Record), 1 for Update (Change Record) and 3 for Reject (No Change in Record).<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-RTG29vaOutM/V76wZGS2q6I/AAAAAAAACho/rjwyo_tdqMYYWxPompQVgHrTUDh5YZ_CgCLcB/s1600/10-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="536" src="https://3.bp.blogspot.com/-RTG29vaOutM/V76wZGS2q6I/AAAAAAAACho/rjwyo_tdqMYYWxPompQVgHrTUDh5YZ_CgCLcB/s640/10-1.png" width="640" /></a></div>
<br />
Under Associated Expression select the source columns against lookup columns as shown above.<br />
Then Click on Ok.<br />
<br />
8. <span style="font-family: Verdana, sans-serif; font-size: 10pt; text-align: justify;">Add a Router transformation to route flagged
records for insert/update history table. </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Drag/map the ports
from lookup to router transformation to check the incoming records are
new/changed.</span><br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-V1T5D6fMURM/V76wZqyPchI/AAAAAAAACh4/qi_glmE_AJgmQq3Go_0cwBGKNZXyWNZmwCLcB/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-V1T5D6fMURM/V76wZqyPchI/AAAAAAAACh4/qi_glmE_AJgmQq3Go_0cwBGKNZXyWNZmwCLcB/s1600/12.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Edit the router transformation and goto --> </span><span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Group tab to create 2
groups one for insert and another for update<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-Xg48fyZUJj0/V8AUCI0NLQI/AAAAAAAACjU/fRDpHlL0l_sMxCe9954hcFNVylRsWKWwQCLcB/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-Xg48fyZUJj0/V8AUCI0NLQI/AAAAAAAACjU/fRDpHlL0l_sMxCe9954hcFNVylRsWKWwQCLcB/s1600/1.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">In Insert Group use flag as “0” and “1” where 0
is for complete new records & 1 is for modified records as new insert in
history table.<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">In Update Group use flag as “1” to table only
modified records which is used to close existing record in the target table as
history record</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span style="font-family: Verdana, sans-serif; font-size: 13.3333px;">Then Click on OK</span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
9. <span style="font-family: Verdana, sans-serif; font-size: 10pt;">Add a sequence generator & expression where the sequence is used to generate sequence values while inserting new/modified records to the target table and expression is used to get “SESSSTARTTIME” which is to known when the records is inserted in history table</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Drag port from Insert Group of Router transformation</span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-GObpAGjQvjM/V76wZtSjjXI/AAAAAAAACh8/u429p8wtc7AgrXFm5YrEObxziuJjK-WRQCLcB/s1600/16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-GObpAGjQvjM/V76wZtSjjXI/AAAAAAAACh8/u429p8wtc7AgrXFm5YrEObxziuJjK-WRQCLcB/s1600/16.png" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Sequence: Edit go to Properties table to defined
start value as “0”, increment by “1”, End Value let it default only (otherwise
you can defined whatever you want) <o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-2If8zpCvWfM/V76waHtYwXI/AAAAAAAACiA/mk2bAoy2RFIvAbvJi45BmRsBPJr3cMJ9wCLcB/s1600/17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-2If8zpCvWfM/V76waHtYwXI/AAAAAAAACiA/mk2bAoy2RFIvAbvJi45BmRsBPJr3cMJ9wCLcB/s1600/17.png" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Note: Do not check cycle or reset as this is used
for history table<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Expression: Edit go to --></span><span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> Ports tab<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-xJZG8zR9Wp0/V76waE9NUYI/AAAAAAAACiE/VWnMa1Tz4lkJQXpm740xxp0Cl-l2IZNzQCLcB/s1600/18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-xJZG8zR9Wp0/V76waE9NUYI/AAAAAAAACiE/VWnMa1Tz4lkJQXpm740xxp0Cl-l2IZNzQCLcB/s1600/18.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Add an output port for Start_Date as “SESSSTARTTIME”<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">10. </span><span style="font-family: Verdana, sans-serif; font-size: 10pt; text-align: left;">Add a Update Strategy
next to expression used for insert flow as below</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-6uZeMmA39k8/V76waGwa5NI/AAAAAAAACiI/Brc7hGfftr8v0gZdT5BoX9KDLV7-jhEiwCLcB/s1600/19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-6uZeMmA39k8/V76waGwa5NI/AAAAAAAACiI/Brc7hGfftr8v0gZdT5BoX9KDLV7-jhEiwCLcB/s1600/19.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Edit and go to --></span><span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> Properties tab under Update
Strategy Expression define “0” which indicate insert (dd_insert)<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-vuI1zR3kbHc/V76wannMwsI/AAAAAAAACiQ/EPFC-MY3XxQNu-1x9h-2YU2Tw3d0rZsMQCLcB/s1600/20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="514" src="https://2.bp.blogspot.com/-vuI1zR3kbHc/V76wannMwsI/AAAAAAAACiQ/EPFC-MY3XxQNu-1x9h-2YU2Tw3d0rZsMQCLcB/s640/20.png" width="640" /></a></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Then map related column with target instance and
the Port created for “</span><b><span lang="EN-IN" style="color: blue; font-family: "MS Shell Dlg","sans-serif"; font-size: 10.0pt;">SESSSTARTTIME</span></b><span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">” under previous
expression map with start_date column of the insert target instance<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">11. Add an expression next to router
transformation for update flow, drag lookup pm key from update group of router
transformation as show below<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/--6egvytuPtc/V76wapQrmeI/AAAAAAAACiU/G-r48IJyVmg6ce3Zy7m-6G0ZYqUSbZ6sQCLcB/s1600/21.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/--6egvytuPtc/V76wapQrmeI/AAAAAAAACiU/G-r48IJyVmg6ce3Zy7m-6G0ZYqUSbZ6sQCLcB/s1600/21.png" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Edit and go to --></span><span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> Property tab and add
output port as End_Date<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-Ypkx7eBjBbI/V76wbJyjkyI/AAAAAAAACiY/jvbiunKpMjMPkDBmfCznM7gcrOR5S-q0ACLcB/s1600/22.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-Ypkx7eBjBbI/V76wbJyjkyI/AAAAAAAACiY/jvbiunKpMjMPkDBmfCznM7gcrOR5S-q0ACLcB/s1600/22.png" /></a></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">12. Add Update Strategy next to expression to
update history table for those modified records<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-zk5twfkATFo/V76wbKtXbfI/AAAAAAAACic/7m5s29X5DEkOh_28Mychjc-_3tPOPv6bwCLcB/s1600/23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-zk5twfkATFo/V76wbKtXbfI/AAAAAAAACic/7m5s29X5DEkOh_28Mychjc-_3tPOPv6bwCLcB/s1600/23.png" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Edit and go to --></span><span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> Properties under Update
Strategy Expression defined as “1” which is dd_update<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-VbNDA9jnI6M/V76wbC_8xQI/AAAAAAAACig/bvJx2HOf8G4L9yaaH9dV3J5i1HtLe9UpACLcB/s1600/24.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-VbNDA9jnI6M/V76wbC_8xQI/AAAAAAAACig/bvJx2HOf8G4L9yaaH9dV3J5i1HtLe9UpACLcB/s1600/24.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Then map the lookup PM to PM, End_date to
End_Date from Update Strategy to Update Target Instance.<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: Verdana, sans-serif; font-size: 10pt;">13. Select 'Mapping' from Menu --> Validate.<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-3u1ZS0gY-_U/V76wbqdUtxI/AAAAAAAACik/38gZ242BX-AYmDuDPZGRXMwmVngYk0JPQCLcB/s1600/25.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-3u1ZS0gY-_U/V76wbqdUtxI/AAAAAAAACik/38gZ242BX-AYmDuDPZGRXMwmVngYk0JPQCLcB/s1600/25.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
14. <span style="font-family: Verdana, sans-serif; font-size: 10pt;">Select 'Repository'
from Menu --> Save.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-sJdtI7vv1KQ/V76wbqqZi9I/AAAAAAAACio/uA2FaQOWAmIsX7sZK4V0xealqksBCg8qwCLcB/s1600/26.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-sJdtI7vv1KQ/V76wbqqZi9I/AAAAAAAACio/uA2FaQOWAmIsX7sZK4V0xealqksBCg8qwCLcB/s1600/26.png" /></a></div>
<br /></div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com2tag:blogger.com,1999:blog-3888677960781784215.post-63254311183794074782016-08-25T13:56:00.001+05:302020-06-09T19:54:27.367+05:30SCD - Creating a Type 2 Dimension using Static Lookup<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: left;">
<b><span style="font-size: large;">SCD - Creating a Type 2 Dimension using Static Lookup</span></b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "verdana" , sans-serif; font-size: 10pt;">The Slowly Changing Dimension Type 2 is used to
maintain complete history in the target. The source rows based on user-defined
comparisons and inserts both new and changed (as a new entry) dimensions into
the target.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal">
<span lang="EN-IN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Changes are tracked in the target table by
maintaining an effective date range for each version of each dimension in the
target. In the Type 2 Dimension/Effective Date Range target, the current
version of a dimension has a begin date with no corresponding end date.<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-IN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 13.3333px;">In the below scenario trying the maintain the history for Employee details in case ENAME, JOB, MGR, SAL, COMM and DEPTNO get change. So that complete history of changes can be maintained using SCD type 2.</span></span></div>
<div class="MsoNormal">
<span lang="EN-IN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-IN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Below is the final mapping snaps using Static Lookup: </span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-O5BvzFMf7Yo/V76sXDqZkFI/AAAAAAAACgA/cXzg7kPkXOA2R5DHO9YbNXfzlNJUtgMlQCLcB/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="220" src="https://1.bp.blogspot.com/-O5BvzFMf7Yo/V76sXDqZkFI/AAAAAAAACgA/cXzg7kPkXOA2R5DHO9YbNXfzlNJUtgMlQCLcB/s640/1.png" width="640" /></a></div>
<br />
<div class="MsoNormal">
<span lang="EN-IN" style="background: white; font-family: "verdana" , sans-serif; font-size: 10pt;">Please connect to the Repository and open Folder
where you want to create mapping and workflow.<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN-IN" style="background: white; font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal">
<span lang="EN-IN" style="background: white; font-family: "verdana" , sans-serif; font-size: 10pt;"></span></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">1. Connect and Open
the folder if not already opened.<span style="color: #555555;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"><span style="font-size: 13.3333px;">2. Select Tools --> Mapping Designer</span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-iXuYHigZIrA/V76sYyZCrII/AAAAAAAACgk/Sj2ftiDPPqYcYk3AWi2BV_C9UaIwldFlgCLcB/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-iXuYHigZIrA/V76sYyZCrII/AAAAAAAACgk/Sj2ftiDPPqYcYk3AWi2BV_C9UaIwldFlgCLcB/s1600/2.png" /></a></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="color: #555555; font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="background: white; line-height: 15.0pt;">
<span lang="EN-IN" style="color: #555555; font-family: "verdana" , sans-serif; font-size: 10pt;">3. Select Mappings --> Create -->
Entry the mapping name you want to create. Then click on "OK".<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-Y7e_7g8iwpE/V76saFz5EPI/AAAAAAAAChE/bYkxFsyQdD84DfO2Dp5qrB_-v2386pLHQCLcB/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-Y7e_7g8iwpE/V76saFz5EPI/AAAAAAAAChE/bYkxFsyQdD84DfO2Dp5qrB_-v2386pLHQCLcB/s1600/3.png" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">4. Drag the Source and Target definitions into
workspace if they are already exist. If not click here to know how to create or
import Table definitions.<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-HWLTHGdmN44/V76saefESPI/AAAAAAAAChI/At2t_QjrBPECADEmQlbkaYk3FkIfRPr4wCLcB/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-HWLTHGdmN44/V76saefESPI/AAAAAAAAChI/At2t_QjrBPECADEmQlbkaYk3FkIfRPr4wCLcB/s1600/4.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Note: Take 2 instance of target one for insert
new & change records as insert and another for update the history record.<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">5. Add a Lookup transformation on target table
from menu Select 'Transformation' from Menu --> Create<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-VlUmQ9uodJw/V76sakCi95I/AAAAAAAAChM/mmn2wsWGO9oFPubs89j9lLDAvarwfZZqwCLcB/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-VlUmQ9uodJw/V76sakCi95I/AAAAAAAAChM/mmn2wsWGO9oFPubs89j9lLDAvarwfZZqwCLcB/s1600/5.png" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">It will pop up below screen, entry the name for
the lookup transformation, click on Create and Done<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/--g0w15-DZgI/V76sap7U1vI/AAAAAAAAChQ/D7TwD27rllEiCBtZHrXTo6weGT2pdtd2wCLcB/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/--g0w15-DZgI/V76sap7U1vI/AAAAAAAAChQ/D7TwD27rllEiCBtZHrXTo6weGT2pdtd2wCLcB/s1600/6.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Or <o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">You can create lookup from icon as show below
select lookup icon highlighted<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-At4wDzHe34E/V76sayk4FOI/AAAAAAAAChU/Z2UY_L-92GIX-N69Mu9TQO61sHlUd8nbQCLcB/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-At4wDzHe34E/V76sayk4FOI/AAAAAAAAChU/Z2UY_L-92GIX-N69Mu9TQO61sHlUd8nbQCLcB/s1600/7.png" /></a></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">This is popup a below screen select the location
of the lookup table as Target as we need to maintain history for the target
table and select the lookup table you want from the tables list then click on
OK.<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-jjlAfwF1hx8/V76sbHxCujI/AAAAAAAAChY/ZngE74Lm8Y0Wljjz_4yb_9OM2GCJim-DgCLcB/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-jjlAfwF1hx8/V76sbHxCujI/AAAAAAAAChY/ZngE74Lm8Y0Wljjz_4yb_9OM2GCJim-DgCLcB/s1600/8.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">This will create lookup in workspace as below <o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-PT0jmWcczoA/V76sbfV3N7I/AAAAAAAAChc/CeqLHkPcWOI7Sl8gNK_NvmPFGhDi9cJLgCLcB/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-PT0jmWcczoA/V76sbfV3N7I/AAAAAAAAChc/CeqLHkPcWOI7Sl8gNK_NvmPFGhDi9cJLgCLcB/s1600/9.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">6. Drag/map the ports all/required to lookup
transformation from source qualifier<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-cPTNKMwJGu4/V76sXC1XO7I/AAAAAAAACf4/7LJ2-4hYjqsQp43fQ7WrJgRIwg30C4BkQCLcB/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-cPTNKMwJGu4/V76sXC1XO7I/AAAAAAAACf4/7LJ2-4hYjqsQp43fQ7WrJgRIwg30C4BkQCLcB/s1600/10.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">7. Edit the lookup transformation go to --> </span><span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Condition tab to
defined lookup condition and then click on OK<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-R2XR9I7cJcY/V76sXJtBToI/AAAAAAAACf8/INnS96oJMWwYr2fd3FcstSeYA7-ogYbbACLcB/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-R2XR9I7cJcY/V76sXJtBToI/AAAAAAAACf8/INnS96oJMWwYr2fd3FcstSeYA7-ogYbbACLcB/s1600/11.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Note: Lookup condition can be one or more ports<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">8. Drag/map the ports the expression
transformation to check and validate the incoming records are new/changed one.<o:p></o:p></span></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Drag ports from lookup to expression
transformation which you required for check as below<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-HyF1gxisGHE/V76sXl9uyOI/AAAAAAAACgE/DMDu9_P-cf4t6Nw2EAO-jgF1a1DmfwkrgCLcB/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-HyF1gxisGHE/V76sXl9uyOI/AAAAAAAACgE/DMDu9_P-cf4t6Nw2EAO-jgF1a1DmfwkrgCLcB/s1600/12.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Note: In expression uncheck output port which
are not for out<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">9. Edit the expression transformation goto --> </span><span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Port tab to create two
ports (variable & output port)<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">In variable port validate the incoming records
are new or modified as if the lookup pm key is null then is new records because
there is no match record in target so it will get null for lookup pm key then
it will return value as “<b>0</b>”, in case
lookup pm key is not null then we need to check source columns with lookup
columns which are defined to identify the data modification then it will return
value as “1” and in case there is no change in data then it will return value
as “3” as below.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-PoU7iEcczho/V76sXtGqHcI/AAAAAAAACgI/r6Tg87XGc_ATaXR8WcLoycnxhDbSJzjDwCLcB/s1600/13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-PoU7iEcczho/V76sXtGqHcI/AAAAAAAACgI/r6Tg87XGc_ATaXR8WcLoycnxhDbSJzjDwCLcB/s1600/13.png" /></a></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Then Click on Validate (in case no error) then
click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Note: This return values are used as flag to
route the records for insert, update and update as insert for modified records<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">10. Add a Router transformation to route flagged
records for insert/update history table<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-MAMKGLKK3js/V76sXxWemoI/AAAAAAAACgM/e5qURbwHcGsQzDjvNHXuq8b6Iyzz1uBzgCLcB/s1600/14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-MAMKGLKK3js/V76sXxWemoI/AAAAAAAACgM/e5qURbwHcGsQzDjvNHXuq8b6Iyzz1uBzgCLcB/s1600/14.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Edit the router transformation and goto --> </span><span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Group tab to create 2
groups one for insert and another for update<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-ft_KwlxrcQ8/V76sYNF3gZI/AAAAAAAACgQ/qYS-5CMTgjUGYUQQ68oNvrdlPUJYeEqIACLcB/s1600/15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-ft_KwlxrcQ8/V76sYNF3gZI/AAAAAAAACgQ/qYS-5CMTgjUGYUQQ68oNvrdlPUJYeEqIACLcB/s1600/15.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">In Insert Group use flag as “0” and “1” where 0
is for complete new records & 1 is for modified records as new insert in
history table.<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Then Click on OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">In Update Group use flag as “1” to table only
modified records which is used to close existing record in the target table as
history record<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">11. Add a sequence generator & expression
where the sequence is used to generate sequence values while inserting
new/modified records to the target table and expression is used to get “SESSSTARTTIME”
which is to known when the records is inserted in history table<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">
</span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Drag port from Insert Group of Router
transformation<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-A8Dkee4m8Lw/V76sYO03eMI/AAAAAAAACgU/bGFsR_6_IA0q593Fego0qTzBuziRVe-TACLcB/s1600/16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-A8Dkee4m8Lw/V76sYO03eMI/AAAAAAAACgU/bGFsR_6_IA0q593Fego0qTzBuziRVe-TACLcB/s1600/16.png" /></a></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"><br /></span></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Sequence: Edit go to Properties table to defined
start value as “0”, increment by “1”, End Value let it default only (otherwise
you can defined whatever you want) <o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-7qSVdcxtNG8/V76sYYSKrWI/AAAAAAAACgY/R44XjBInloIHV3gHZOAW1vicSQQpeCu5QCLcB/s1600/17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-7qSVdcxtNG8/V76sYYSKrWI/AAAAAAAACgY/R44XjBInloIHV3gHZOAW1vicSQQpeCu5QCLcB/s1600/17.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Note: Do not check cycle or reset as this is used
for history table<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Expression: Edit go to --> </span><span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Ports tab<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-_I1FldIgg_8/V76sYjqf_MI/AAAAAAAACgc/89AkvDgq0qsG-asgoPmaGxFbj2CDwNtZACLcB/s1600/18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-_I1FldIgg_8/V76sYjqf_MI/AAAAAAAACgc/89AkvDgq0qsG-asgoPmaGxFbj2CDwNtZACLcB/s1600/18.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Add an output port for Start_Date as “SESSSTARTTIME”<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">12. Add a Update Strategy next to expression
used for insert flow as below</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-p-WaADoGkE0/V76sY-Qoy6I/AAAAAAAACgg/N4rj50-YRowQ4GGyCCMg3B6dJqztZZLfwCLcB/s1600/19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-p-WaADoGkE0/V76sY-Qoy6I/AAAAAAAACgg/N4rj50-YRowQ4GGyCCMg3B6dJqztZZLfwCLcB/s1600/19.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Edit and go to --> </span><span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Properties tab under Update
Strategy Expression define “0” which indicate insert (dd_insert)</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-CE-H-2z0g_g/V76sZFwb1QI/AAAAAAAACgo/IipNXMQHP64pcUnCMVgWtjYBx2Tii3WNQCLcB/s1600/20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-CE-H-2z0g_g/V76sZFwb1QI/AAAAAAAACgo/IipNXMQHP64pcUnCMVgWtjYBx2Tii3WNQCLcB/s1600/20.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Then map related column with target instance and
the Port created for “</span><b><span lang="EN-IN" style="color: blue; font-family: "ms shell dlg" , "sans-serif"; font-size: 10.0pt;">SESSSTARTTIME</span></b><span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">” under previous
expression map with start_date column of the insert target instance<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">13. Add an expression next to router
transformation for update flow, drag lookup pm key from update group of router
transformation as show below<o:p></o:p></span></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-viRPVrWeSLw/V76sZf9JOHI/AAAAAAAACgs/pRhNUWBP6EUm1CS80M5rDNAE2echgLANQCLcB/s1600/21.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-viRPVrWeSLw/V76sZf9JOHI/AAAAAAAACgs/pRhNUWBP6EUm1CS80M5rDNAE2echgLANQCLcB/s1600/21.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Edit and go to --></span><span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;"> Property tab and add
output port as End_Date<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-v-928aFWvIY/V76sZQkQL7I/AAAAAAAACgw/LkEjuvAyd4E2lLmJmR3Kb0iY4rBWTqXrACLcB/s1600/22.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="264" src="https://4.bp.blogspot.com/-v-928aFWvIY/V76sZQkQL7I/AAAAAAAACgw/LkEjuvAyd4E2lLmJmR3Kb0iY4rBWTqXrACLcB/s640/22.png" width="640" /></a></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<br />
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">14. Add Update Strategy next to expression to
update history table for those modified records<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-I9XD78jfWaE/V76sZmpjqxI/AAAAAAAACg0/BXANAJFPk-45Vo3Sk5xi8FnM_DDCfD9FQCLcB/s1600/23.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-I9XD78jfWaE/V76sZmpjqxI/AAAAAAAACg0/BXANAJFPk-45Vo3Sk5xi8FnM_DDCfD9FQCLcB/s1600/23.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Edit and go to --> </span><span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Properties under Update
Strategy Expression defined as “1” which is dd_update<o:p></o:p></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-a3isI9Vx-Go/V76sZ0ifTeI/AAAAAAAACg4/UxERsMXMpV4Vcb7kaPfMt8pRPQMP-a7agCLcB/s1600/24.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-a3isI9Vx-Go/V76sZ0ifTeI/AAAAAAAACg4/UxERsMXMpV4Vcb7kaPfMt8pRPQMP-a7agCLcB/s1600/24.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Then Click OK<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">Then map the lookup PM to PM, End_date to
End_Date from Update Strategy to Update Target Instance.<o:p></o:p></span></div>
<div class="MsoNormal" style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">15. Select 'Mapping' from Menu --> Validate.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-YgJhmBMYmUo/V76sZ60GN6I/AAAAAAAACg8/yVnQtGpazZ0tdUJFwDQqpt4rAx4A4P3vgCLcB/s1600/25.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-YgJhmBMYmUo/V76sZ60GN6I/AAAAAAAACg8/yVnQtGpazZ0tdUJFwDQqpt4rAx4A4P3vgCLcB/s1600/25.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="MsoNormal" style="text-align: justify;">
<span lang="EN-IN" style="font-family: "verdana" , sans-serif; font-size: 10pt;">16. Select 'Repository' from Menu --> Save.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-EnOrG8bHZnE/V76saHnUWBI/AAAAAAAAChA/lKHMoqNNbSwNxFoePtVEjt6T4lvBE49bwCLcB/s1600/26.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-EnOrG8bHZnE/V76saHnUWBI/AAAAAAAAChA/lKHMoqNNbSwNxFoePtVEjt6T4lvBE49bwCLcB/s1600/26.png" /></a></div>
<br /></div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com0tag:blogger.com,1999:blog-3888677960781784215.post-55762422065449811662016-03-25T13:05:00.001+05:302020-06-09T19:54:27.446+05:30How to Add Repository and Connect It<div dir="ltr" style="text-align: left;" trbidi="on">
Informatica PowerCenter Repository can be connected in 2 ways:<br />
<br />
1. Configure Domains....<br />
<br />
Open the Informatica PowerCenter Repository Manager --> Click on Repository from Menu.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-RAwTe9liNOA/V1_hnzaIMRI/AAAAAAAACUQ/MAYjqzBnGqgbvoW4VvmOO_vjsv7KvMlTQCLcB/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-RAwTe9liNOA/V1_hnzaIMRI/AAAAAAAACUQ/MAYjqzBnGqgbvoW4VvmOO_vjsv7KvMlTQCLcB/s1600/1.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Click on "Configure Domains..." It will Pop Up below Screen</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-iglPqdnvlzo/V1_hn_fS3YI/AAAAAAAACUM/XBDH-LdS0zI-Z_-_P5yzuTmujP94dbGXgCLcB/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="262" src="https://4.bp.blogspot.com/-iglPqdnvlzo/V1_hn_fS3YI/AAAAAAAACUM/XBDH-LdS0zI-Z_-_P5yzuTmujP94dbGXgCLcB/s400/2.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Click on "Add New Domain", highlighted in Red in Above Screen</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
It will Pop up below screen "Add Domain"</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-3zKheHXn1-8/V1_hnx5TrCI/AAAAAAAACUU/a_ByEBBLaW0m_hnDBfaqWquGCOKscZUlgCLcB/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="135" src="https://4.bp.blogspot.com/-3zKheHXn1-8/V1_hnx5TrCI/AAAAAAAACUU/a_ByEBBLaW0m_hnDBfaqWquGCOKscZUlgCLcB/s400/3.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Domain Name: Domain_<HostName/ServerName></div>
<div class="separator" style="clear: both; text-align: left;">
Gateway Host: HostName/ServerName</div>
<div class="separator" style="clear: both; text-align: left;">
Gateway Port: 6005 (default for 9x)</div>
<br />
shown as below<br />
<a href="https://3.bp.blogspot.com/-nQErQCzkJ5Q/V1_hpkVoEGI/AAAAAAAACUg/u7Twb-HDOvMvSV3Lft2XCfVCXRrIRc_gACLcB/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="132" src="https://3.bp.blogspot.com/-nQErQCzkJ5Q/V1_hpkVoEGI/AAAAAAAACUg/u7Twb-HDOvMvSV3Lft2XCfVCXRrIRc_gACLcB/s400/4.png" width="400" /></a><br />
<br />
Click on "OK", You will see the Domain added as below<br />
<a href="https://2.bp.blogspot.com/-iWw68fum8t8/V1_hp-ZEmuI/AAAAAAAACUo/MkGMyGcY-yMOLAcbvm6Ajy4ncrPR7nLWQCLcB/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="262" src="https://2.bp.blogspot.com/-iWw68fum8t8/V1_hp-ZEmuI/AAAAAAAACUo/MkGMyGcY-yMOLAcbvm6Ajy4ncrPR7nLWQCLcB/s400/5.png" width="400" /></a><br />
<br />
You Can we the list of Repository configured for that Domain in the right side window. Select the repository required. Then the repository added to you local Informatica PowerCenter Client tool. As shown below<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-O3ZlZ8CAfK0/V1_hpw6e2-I/AAAAAAAACUk/aNm_ZFr3jZEhjSUEzO42SdaLlDA-zzTPQCLcB/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-O3ZlZ8CAfK0/V1_hpw6e2-I/AAAAAAAACUk/aNm_ZFr3jZEhjSUEzO42SdaLlDA-zzTPQCLcB/s1600/6.png" /></a></div>
<br />
To connect repository, double click on Repository Name, It will Pop Up below login screen<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-YoHBB-VVVCA/V1_hq4_wD1I/AAAAAAAACU0/B1hbJVmF2sgPsjQeXPeoom-6OWIb--9VgCLcB/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="143" src="https://1.bp.blogspot.com/-YoHBB-VVVCA/V1_hq4_wD1I/AAAAAAAACU0/B1hbJVmF2sgPsjQeXPeoom-6OWIb--9VgCLcB/s400/7.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Entry the Username & Password and Click on Connect button (computer network icon)</div>
<br />
Once you connect to repository you will be able to see the all the folder to which you have access.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-0jU1Nxo_ebA/V1_hqxdrQtI/AAAAAAAACUw/Fz93qUUl3Z0gi3rFHY6dh6DGtyh_bsWwQCLcB/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="155" src="https://2.bp.blogspot.com/-0jU1Nxo_ebA/V1_hqxdrQtI/AAAAAAAACUw/Fz93qUUl3Z0gi3rFHY6dh6DGtyh_bsWwQCLcB/s400/8.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
<br />
2. Add Repository...<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Open the Informatica PowerCenter Repository Manager --> Click on Repository from Menu.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-sKz2wr_ETgo/V1_j7aELJYI/AAAAAAAACVQ/dyr9qUMmE1o63q5bjz-Lwgl3I8OPqjuLgCLcB/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-sKz2wr_ETgo/V1_j7aELJYI/AAAAAAAACVQ/dyr9qUMmE1o63q5bjz-Lwgl3I8OPqjuLgCLcB/s1600/9.png" /></a></div>
<br />
Click on "Add Repository..." It will Pop Up below Screen<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-cYJFtMCHSco/V1_j6sw0xQI/AAAAAAAACVA/DdgRlzwt9b4ZIr56SYWs0Ww44Sjg7ox6QCLcB/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="131" src="https://3.bp.blogspot.com/-cYJFtMCHSco/V1_j6sw0xQI/AAAAAAAACVA/DdgRlzwt9b4ZIr56SYWs0Ww44Sjg7ox6QCLcB/s400/10.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Enter the Repository Name & UserName and Click on "OK". As below</div>
<a href="https://4.bp.blogspot.com/-TwkXxUJjoJE/V1_j6maosQI/AAAAAAAACVE/VunIBjJpjEgVS2jsLOHjkiBaED_v5kodQCLcB/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="102" src="https://4.bp.blogspot.com/-TwkXxUJjoJE/V1_j6maosQI/AAAAAAAACVE/VunIBjJpjEgVS2jsLOHjkiBaED_v5kodQCLcB/s320/11.png" width="320" /></a><br />
<br />
The repository added to you local Informatica PowerCenter Client tool. As shown below<br />
<div class="separator" style="clear: both;">
<a href="https://3.bp.blogspot.com/-O3ZlZ8CAfK0/V1_hpw6e2-I/AAAAAAAACUk/aNm_ZFr3jZEhjSUEzO42SdaLlDA-zzTPQCLcB/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-O3ZlZ8CAfK0/V1_hpw6e2-I/AAAAAAAACUk/aNm_ZFr3jZEhjSUEzO42SdaLlDA-zzTPQCLcB/s1600/6.png" /></a></div>
<div class="separator" style="clear: both;">
<br /></div>
<br />
To connect repository, double click on Repository Name, It will Pop Up below login screen<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-coZn22Qfm-Q/V1_j6lxVNEI/AAAAAAAACVI/MDn79qZjR-Mnerzxc_N0Bg3eIyyj2sc-ACLcB/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="159" src="https://1.bp.blogspot.com/-coZn22Qfm-Q/V1_j6lxVNEI/AAAAAAAACVI/MDn79qZjR-Mnerzxc_N0Bg3eIyyj2sc-ACLcB/s320/12.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Click on Add button under Connection Setting highlighted in Red in above screen.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-Gh3pQ3CNQHo/V1_j7OC79uI/AAAAAAAACVM/qF3BggkSD-MXIcCYYC9qnRAPl73HRUB3gCLcB/s1600/13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="135" src="https://1.bp.blogspot.com/-Gh3pQ3CNQHo/V1_j7OC79uI/AAAAAAAACVM/qF3BggkSD-MXIcCYYC9qnRAPl73HRUB3gCLcB/s400/13.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Add Domain Name, Gateway Host and Gateway Port as shown above. Click on "OK"</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-NPmS15VwV50/V1_j7NXF9mI/AAAAAAAACVU/RVTtlcFASgkgTlCg_1mIMPXYmh1CufkwQCLcB/s1600/14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="196" src="https://3.bp.blogspot.com/-NPmS15VwV50/V1_j7NXF9mI/AAAAAAAACVU/RVTtlcFASgkgTlCg_1mIMPXYmh1CufkwQCLcB/s400/14.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Entry Security Domain: Native</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both;">
Entry the Username & Password and Click on Connect button (computer network icon)</div>
<br />
Once you connect to repository you will be able to see the all the folder to which you have access.<br />
<div class="separator" style="clear: both;">
<a href="https://2.bp.blogspot.com/-0jU1Nxo_ebA/V1_hqxdrQtI/AAAAAAAACUw/Fz93qUUl3Z0gi3rFHY6dh6DGtyh_bsWwQCLcB/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="155" src="https://2.bp.blogspot.com/-0jU1Nxo_ebA/V1_hqxdrQtI/AAAAAAAACUw/Fz93qUUl3Z0gi3rFHY6dh6DGtyh_bsWwQCLcB/s400/8.png" width="400" /></a></div>
<div class="separator" style="clear: both;">
<br /></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com2tag:blogger.com,1999:blog-3888677960781784215.post-51546182565266143032016-03-25T13:02:00.003+05:302020-06-09T19:54:27.490+05:30Pipeline Lookup Transformation Configuring<div dir="ltr" style="text-align: left;" trbidi="on">
Posting Soon</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com0tag:blogger.com,1999:blog-3888677960781784215.post-73702044079021637042016-03-25T13:02:00.002+05:302020-06-09T19:54:27.530+05:30SCD - Creating a Type 2 Dimension - Version Data <div dir="ltr" style="text-align: left;" trbidi="on">
Posting Soon</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com0tag:blogger.com,1999:blog-3888677960781784215.post-28361849761542657682016-03-25T13:02:00.001+05:302020-06-09T19:54:27.568+05:30SCD - Creating a Type 2 Dimension - Flag Current<div dir="ltr" style="text-align: left;" trbidi="on">
Posting Soon</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com0tag:blogger.com,1999:blog-3888677960781784215.post-13785288494371068002016-03-25T13:02:00.000+05:302020-06-09T19:54:27.609+05:30SCD - Creating a Type 2 Dimension - Effective Date Range<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<b><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">SCD Type 2:<o:p></o:p></span></b></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Slowly Changing Dimension Type 2 - Effective Date
Range:<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">The Slowly Changing Dimension Type 2 is used to
maintain complete history in the target. The source rows based on user-defined
comparisons and inserts both new and changed (as a new entry) dimensions into
the target. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Changes are tracked in the target table by
maintaining an effective date range for each version of each dimension in the
target. In the Type 2 Dimension/Effective Date Range target, the current
version of a dimension has a begin date with no corresponding end date.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">The following example are additional fields in the target:<o:p></o:p></span></div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable">
<tbody>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm; width: 9.0pt;" valign="bottom" width="12"></td>
<td style="padding: 0cm 0cm 0cm 0cm; width: 100.0%;" valign="bottom" width="100%"><div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><b><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">PM_BEGIN_DATE.</span></b><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> For each new and changed dimension written to the target, the
Integration Service uses the system date to indicate the start of the effective
date range for the dimension.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm; width: 9.0pt;" valign="bottom" width="12"></td>
<td style="padding: 0cm 0cm 0cm 0cm; width: 100.0%;" valign="bottom" width="100%"><div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><b><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">PM_END_DATE.</span></b><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> For each dimension being updated, the Integration Service uses the
system date to indicate the end of the effective date range for the
dimension. <o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="padding: 0cm 0cm 0cm 0cm; width: 9.0pt;" valign="bottom" width="12"></td>
<td style="padding: 0cm 0cm 0cm 0cm; width: 100.0%;" valign="bottom" width="100%"><div class="MsoListParagraph" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: "symbol"; font-size: 10.0pt;">·<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><b><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">PM_PRIMARYKEY.</span></b><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> The Integration Service generates a primary key for each row written
to the target.<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Note:</span></b><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> The primary key from the source table will be
Natural key in the dimension table, because surrogate key will be primary here.
Because a Natural key will have multiple entries. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="font-family: "verdana" , "sans-serif"; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Handling Keys<o:p></o:p></span></b></div>
<div class="MsoNormal">
<a href="https://www.blogger.com/null" name="GUID-51FBFEAD-5A81-4E23-8B2E-4978C4700DA"></a><span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">When you use the Effective Date Range option, the Integration Service
generates a primary key value for each row written to the target, incrementing
key values by one. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><b>SCD
Type 2 can be designed in two ways: </b><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 10pt; text-indent: -18pt;">1.<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><span style="font-family: "verdana" , sans-serif; font-size: 10pt; text-indent: -18pt;">Design a job using normal/static
lookup on table which will create cache ever time the job run. <a href="http://gowtham-informatica-reference.blogspot.in/2016/08/scd-creating-type-2-dimension-effective.html" target="_blank">Click her for details mapping</a></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 10pt; text-indent: -18pt;">2.<span style="font-family: "times new roman"; font-size: 7pt; font-stretch: normal;"> </span></span><span style="font-family: "verdana" , sans-serif; font-size: 10pt; text-indent: -18pt;">Design a job using
dynamic lookup on table which will create cache first run and keep on checking,
updating cache from next run. This will not check for the target table every
time to create cache. </span><span style="font-family: "verdana" , sans-serif; font-size: 13.3333px; text-indent: -24px;"><a href="http://gowtham-informatica-reference.blogspot.in/2016/08/scd-creating-type-2-dimension-using.html" target="_blank">Click her for details mapping</a></span></div>
<div class="MsoNormal">
<span style="font-family: "verdana" , sans-serif; font-size: 10pt; text-indent: -18pt;"><br /></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo2; text-indent: -18.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br /></span></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo2; text-indent: -18.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br /></span></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo2; text-indent: -18.0pt;">
<span style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br /></span></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com0tag:blogger.com,1999:blog-3888677960781784215.post-33472622189837644302015-10-25T21:43:00.000+05:302020-06-09T19:54:27.648+05:30Add Currently Processed Flat File Name Port<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;"><b>CurrentlyProcessedFileName:</b><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;">CurrentlyProcessedFileName
is currently added in Informatica PowerCenter 9 which is used with File
List/Indirect Method. This is used to identified the currently data processing
file name from the file list. This will add a new non-editable column to source
definition to hold processing file name to each and every rows which process
through source to target.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;">This is port is used
to identified the file name in case any record/columns failed due to bad/incorrect
data in the record for the list of file name from the file list.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;">Sample Mapping: The below example show you the bad/rejected record from which file.<o:p></o:p></span><br />
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;"><br /></span>
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;"><b>Note: You can also validate the data based on the requirement and capture the file name. </b></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;"><br /></span>
<span style="font-family: verdana, sans-serif;"><span style="font-size: 13.3333px;">1. Import/Create the source definition into Source Analyzer. </span></span><br />
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;"><br /></span>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-qImnxNtVHMQ/Vkre3jI1OvI/AAAAAAAACQA/P0Qp25M5GzE/s1600/cpff1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="259" src="http://2.bp.blogspot.com/-qImnxNtVHMQ/Vkre3jI1OvI/AAAAAAAACQA/P0Qp25M5GzE/s320/cpff1.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
2. Edit and Go to the Properties Tab: Select the Check Box (add Currently Processed Flat File Name)</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-nIFBuS1bALs/Vkre4r_xjuI/AAAAAAAACQg/2m6JiMdGYXE/s1600/cpff2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="183" src="http://4.bp.blogspot.com/-nIFBuS1bALs/Vkre4r_xjuI/AAAAAAAACQg/2m6JiMdGYXE/s400/cpff2.png" width="400" /></a></div>
<br />
<br />
3. Drag/Add Source & Target instance to Mapping.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-qcNTlGnqiLI/Vkre4xP_LDI/AAAAAAAACQ0/D-K-JLCg9bM/s1600/cpff3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="108" src="http://2.bp.blogspot.com/-qcNTlGnqiLI/Vkre4xP_LDI/AAAAAAAACQ0/D-K-JLCg9bM/s400/cpff3.png" width="400" /></a></div>
<br />
4. Add expression transformation to capture the currently processing file name only (to skip the file folder path).<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-rRQgPWP2m3c/Vkre5Da1zmI/AAAAAAAACQo/-lhzhl53ugg/s1600/cpff4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="http://4.bp.blogspot.com/-rRQgPWP2m3c/Vkre5Da1zmI/AAAAAAAACQo/-lhzhl53ugg/s400/cpff4.png" width="400" /></a></div>
<br />
Add one variable port to capture the file name.<br />
<br />
Here is the syntax:<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-z-v5jexx11s/Vkre5TxoF8I/AAAAAAAACQ4/iQUrohTuuIQ/s1600/cpff5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="251" src="http://4.bp.blogspot.com/-z-v5jexx11s/Vkre5TxoF8I/AAAAAAAACQ4/iQUrohTuuIQ/s400/cpff5.png" width="400" /></a></div>
<br />
5. Map the required columns/ports to the target instance<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-bNg56pM5EKM/Vkre6IdIxyI/AAAAAAAACQ8/2StHeuCnf1g/s1600/cpff6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="140" src="http://3.bp.blogspot.com/-bNg56pM5EKM/Vkre6IdIxyI/AAAAAAAACQ8/2StHeuCnf1g/s640/cpff6.png" width="640" /></a></div>
<br />
6. Create a workflow<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-i0uJf_f0c_U/Vkre6ai6ZUI/AAAAAAAACRI/F3ELiVZUftA/s1600/cpff7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="200" src="http://4.bp.blogspot.com/-i0uJf_f0c_U/Vkre6ai6ZUI/AAAAAAAACRI/F3ELiVZUftA/s400/cpff7.png" width="400" /></a></div>
<br />
7. Create the session for the above mapping.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-f84feCE6Jjw/Vkre6cR9JvI/AAAAAAAACRM/rrkRIapQLR0/s1600/cpff8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="325" src="http://1.bp.blogspot.com/-f84feCE6Jjw/Vkre6cR9JvI/AAAAAAAACRM/rrkRIapQLR0/s400/cpff8.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Select Source Filetype as Indirect</div>
<div class="separator" style="clear: both; text-align: left;">
Source File Directory: FileList (which is having the file path and file names which we are trying to load using this mapping)</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
sample file list:<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-Y9JVOVIV5KY/Vkre6pePfTI/AAAAAAAACRQ/9YAm2iu5gDY/s1600/cpff9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="67" src="http://1.bp.blogspot.com/-Y9JVOVIV5KY/Vkre6pePfTI/AAAAAAAACRQ/9YAm2iu5gDY/s640/cpff9.png" width="640" /></a></div>
<br />
Source 1: Employees list for dept no 10<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-LzJsg1lhTr8/Vkre3qia2II/AAAAAAAACP8/yOmVsglJTLs/s1600/cpff10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="118" src="http://1.bp.blogspot.com/-LzJsg1lhTr8/Vkre3qia2II/AAAAAAAACP8/yOmVsglJTLs/s400/cpff10.png" width="400" /></a></div>
<br />
Source 2: Employees list for dept no 20<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-ROXuAXmjJNk/Vkre3vLhmhI/AAAAAAAACQE/0DlxavOLoNE/s1600/cpff11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="171" src="http://1.bp.blogspot.com/-ROXuAXmjJNk/Vkre3vLhmhI/AAAAAAAACQE/0DlxavOLoNE/s400/cpff11.png" width="400" /></a></div>
<br />
Source 3: Employees list for dept no 30<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-M6SQYiRBgGE/Vkre4N41bdI/AAAAAAAACQI/J0Kj20W6kvY/s1600/cpff12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="183" src="http://4.bp.blogspot.com/-M6SQYiRBgGE/Vkre4N41bdI/AAAAAAAACQI/J0Kj20W6kvY/s400/cpff12.png" width="400" /></a></div>
<br />
Target File: This target file having the source file name for each row coming from where its coming.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-6PWkcmachkg/Vkre4Wg-NZI/AAAAAAAACQM/1xCP9psmRT4/s1600/cpff13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="212" src="http://4.bp.blogspot.com/-6PWkcmachkg/Vkre4Wg-NZI/AAAAAAAACQM/1xCP9psmRT4/s400/cpff13.png" width="400" /></a></div>
<br />
Note: You can see here EmpID 7698 from deptno 30 is not in target file.<br />
<br />
Session Log File:<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-bk4vwh8YOyM/Vkre4lrEGPI/AAAAAAAACQU/LmU7tlD5gdM/s1600/cpff14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="139" src="http://1.bp.blogspot.com/-bk4vwh8YOyM/Vkre4lrEGPI/AAAAAAAACQU/LmU7tlD5gdM/s640/cpff14.png" width="640" /></a></div>
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
Here you can see the file name for the rejected record</div>
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com5tag:blogger.com,1999:blog-3888677960781784215.post-35017440716114028282015-10-25T21:25:00.000+05:302020-06-09T19:54:27.689+05:30SCD - Creating a Type 3 Dimension Mapping<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Slowing Channing Dimension
Type 3:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Slowing Channing Dimension
Type 3 is used to maintain history to a specified number for the records in the
different columns. It will insert the new records and update new data into
history col 1 by moving data from history col 1 to history 2, history col 2 to
history col 3, etc based on no of history you want to maintain. <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Example:<o:p></o:p></span></div>
In SCD Type 3 we need to defined how many history data you want to maintain. In this history data will be maintained in the same row but in the different columns. When you run job first time the columns like salary, location will be stored in columns salary1 & location1, when you run the same job second time salary1 & location1 will be moved/stored to salary2 & location2 so that new salary & location will be stored in salary1 & location1, etc.<br />
<br />
<span style="font-family: "verdana" , sans-serif; font-size: 13.3333px;">Sample Mapping:</span><br />
<span style="font-family: "verdana" , sans-serif; font-size: 13.3333px;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 13.3333px;">1. Drag and Drop required source and target instance to the mapping work space.</span></span><br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-Df4OuEO-dE4/V3pK_oNy_kI/AAAAAAAACb4/vSiZjrdaabg9QFyBvaMAxN_nWh1CgaS8gCLcB/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-Df4OuEO-dE4/V3pK_oNy_kI/AAAAAAAACb4/vSiZjrdaabg9QFyBvaMAxN_nWh1CgaS8gCLcB/s1600/1.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "verdana" , sans-serif; font-size: 13.3333px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: "verdana" , sans-serif; font-size: 13.3333px;">Note here we required 2 target instance one for insert data and another for update data</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-LGDN6djFPYw/V3pLG1JTwjI/AAAAAAAACc8/NpoMhhGqiagSuDv98XUCJcSIRkURYzWmgCLcB/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="320" src="https://1.bp.blogspot.com/-LGDN6djFPYw/V3pLG1JTwjI/AAAAAAAACc8/NpoMhhGqiagSuDv98XUCJcSIRkURYzWmgCLcB/s320/7.png" width="199" /></a></div>
<br />
2. Add the lookup to the mapping to check whether the income row/data is exist in target or not.<br />
<br />
Select Lookup Icon and click on mapping work space, we will be get screen. Select Target table inside the window. And select your required target table on which you want to do lookup or check the income row/data exist or not.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-2GwjRHZlhcc/V3pLEK6lgpI/AAAAAAAACcg/uZfa0CFa_54GKQJKZ1XjIPg5fconb8f-ACLcB/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-2GwjRHZlhcc/V3pLEK6lgpI/AAAAAAAACcg/uZfa0CFa_54GKQJKZ1XjIPg5fconb8f-ACLcB/s1600/2.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
3. Lookup transformation will be created which is same as target instance.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-fmPZvOGWN-g/V3pLFsh3uYI/AAAAAAAACcw/wbjPu_r6k60KBPR9nU_I8isJDJiAHttbACLcB/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-fmPZvOGWN-g/V3pLFsh3uYI/AAAAAAAACcw/wbjPu_r6k60KBPR9nU_I8isJDJiAHttbACLcB/s1600/3.png" /></a></div>
<br />
4. Drag & Drop Required or All the ports/columns to the lookup transformation from Source qualifier.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-I0MV1bXVj88/V3pLGIL1WQI/AAAAAAAACc0/bkqEbON5v485kA4QVkRaen2fGn6b8ehfQCLcB/s1600/4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-I0MV1bXVj88/V3pLGIL1WQI/AAAAAAAACc0/bkqEbON5v485kA4QVkRaen2fGn6b8ehfQCLcB/s1600/4.png" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
5. Double click on Lookup transformation then go to --> condition tab</div>
<div class="separator" style="clear: both; text-align: left;">
select the condition columns. Left side columns are lookup columns and Right side columns are input columns.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-h8_8KoHHNDY/V3pLGCx9xFI/AAAAAAAACc4/4fkOBL0YzKIrtjNjYJMrKbCL_YPUj8P2QCLcB/s1600/5.png" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://4.bp.blogspot.com/-h8_8KoHHNDY/V3pLGCx9xFI/AAAAAAAACc4/4fkOBL0YzKIrtjNjYJMrKbCL_YPUj8P2QCLcB/s1600/5.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
6. Add a router and create two group (Insert Group and Update Group). Then drag and Drop all columns coming from source and Unique columns from lookup, 1st & 2nd history column. </div>
<div class="separator" style="clear: both; text-align: left;">
(The columns highlighted in yellow in below screen are history 3) which is not required as that will be replaced with history 2 columns.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-tCRT8rR-PNE/V3pLH_m3_vI/AAAAAAAACdM/GQjA5CieK28zZQBeAVzyM1qJXO21Bp2ygCLcB/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-tCRT8rR-PNE/V3pLH_m3_vI/AAAAAAAACdM/GQjA5CieK28zZQBeAVzyM1qJXO21Bp2ygCLcB/s1600/6.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
7. From InsertFlow of the Router group mapping columns to as shown below. As they are new records they will go as insert.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<a href="https://4.bp.blogspot.com/-LVjUbYiHPGk/V3pLHI3DojI/AAAAAAAACdE/M05YrlHoSJM1Ih_n7LyrKKEwXDhmOnjsQCLcB/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://4.bp.blogspot.com/-LVjUbYiHPGk/V3pLHI3DojI/AAAAAAAACdE/M05YrlHoSJM1Ih_n7LyrKKEwXDhmOnjsQCLcB/s1600/8.png" /></a><br />
<br />
8. Drag and drop columns from UpdateFlow of the router group mapping incoming ports, history 1, history 2 and history 3 columns to the Update Strategy.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-h8uC25gSDyk/V3pLHWyOMMI/AAAAAAAACdI/TheaQuoYgw8fGz8-BoTCACx8FxiTgRpiQCLcB/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-h8uC25gSDyk/V3pLHWyOMMI/AAAAAAAACdI/TheaQuoYgw8fGz8-BoTCACx8FxiTgRpiQCLcB/s1600/9.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
9. Select Update Strategy, double click and go to property tab --> Under formula mention "DD_UPDATE" as they are going to update the history.</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-_7LjDZ5l-LA/V3pK_8LtCgI/AAAAAAAACb8/krwu6VEzVisWaW9AIqFu62iEBoIwr325wCLcB/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-_7LjDZ5l-LA/V3pK_8LtCgI/AAAAAAAACb8/krwu6VEzVisWaW9AIqFu62iEBoIwr325wCLcB/s1600/10.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
10. Drag and drop columns from UPDTRANS transformation mapping incoming ports to 1st match columns, columns suffix with _1 should map with target columns suffix with _2 and the columns suffix with _2 should map with target columns suffix with _3. (By means here in SCD type 3, values will be shifted from history 1 to history 2 column and history 2 to history 3 columns. As in this case we are maintaining once 3 history only) as shown below</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-olXAiqRlS2A/V3pK_wFfwXI/AAAAAAAACcA/bWU_R9d9PbklAVO3hs4z9MhdHIZLN6NIgCLcB/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-olXAiqRlS2A/V3pK_wFfwXI/AAAAAAAACcA/bWU_R9d9PbklAVO3hs4z9MhdHIZLN6NIgCLcB/s1600/11.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
11. Save and validation mapping.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Now Create Workflow and Session for the above created mapping.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
12. Connect to workflow manager. From Menu, Click Tools --> <span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">select 'Workflows' --> Create</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-AGEzPeK50n4/V3pLAQ1jqAI/AAAAAAAACcE/EZWdq_5KH5Ix5gXxFnclaDWarZAO1F8wQCLcB/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-AGEzPeK50n4/V3pLAQ1jqAI/AAAAAAAACcE/EZWdq_5KH5Ix5gXxFnclaDWarZAO1F8wQCLcB/s1600/12.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Here Name the workflow then click on Apply and Ok.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
13. To create session click on session icon selected in Red Box in below screenshot. Then it will pop up a screen with list of mapping available in that folder. Please select the mapping for which you want to create this session. Then click on OK.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-jUo1OoZR3Ig/V3pLBENoB4I/AAAAAAAACcI/-Q9is3qJpm8k_cYchu3vbmQLsg6hH7-uwCLcB/s1600/13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-jUo1OoZR3Ig/V3pLBENoB4I/AAAAAAAACcI/-Q9is3qJpm8k_cYchu3vbmQLsg6hH7-uwCLcB/s1600/13.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
14. Then connect your session with Start Icon in the workspace</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
15. Select the session and double click on it. Then go to mapping tab as show below</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-oBeeHdgQNBs/V3pLB2L3EJI/AAAAAAAACcM/Obs_dzOcnqwB6PYSWtBfmYDVmVGB4D6gQCLcB/s1600/14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-oBeeHdgQNBs/V3pLB2L3EJI/AAAAAAAACcM/Obs_dzOcnqwB6PYSWtBfmYDVmVGB4D6gQCLcB/s1600/14.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
16. Go the Source Folder and select the SQ instance to defined connection. Click on down arrow button highlighted below to select the required connect for the instance. (If no connection available then you have to create connection first the assign here again.) </div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-vO0K-0GOec0/V3pLD7--EHI/AAAAAAAACcc/A9nS2bCr3_41qHLtaA4k7l-4FXlrGEkhwCLcB/s1600/15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-vO0K-0GOec0/V3pLD7--EHI/AAAAAAAACcc/A9nS2bCr3_41qHLtaA4k7l-4FXlrGEkhwCLcB/s1600/15.png" /></a></div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
17. Go the Target Folder and select the Target instance for Update flow to defined connection. Click on down arrow button highlighted below to select the required connect for the instance. (If no connection available then you have to create connection first the assign here again.) </div>
<div>
And under properties select "update as update" only as here we are update the existing records.</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-1FKOr4V5ng0/V3pLCYqU3PI/AAAAAAAACcQ/ixuKXVHRrZkamWyvspXfKFUA6h6l2NW-QCLcB/s1600/16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-1FKOr4V5ng0/V3pLCYqU3PI/AAAAAAAACcQ/ixuKXVHRrZkamWyvspXfKFUA6h6l2NW-QCLcB/s1600/16.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both;">
18. Go the Target Folder and select the Target instance for Insert flow to defined connection. Click on down arrow button highlighted below to select the required connect for the instance. (If no connection available then you have to create connection first the assign here again.) </div>
<div>
And under properties select "Insert" only as here we are insert the new records.</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-YmhXjxxFwiI/V3pLDUTY5OI/AAAAAAAACcY/SP8kJknOhCgeJbY3jQVA0guwWPTdsj6XgCLcB/s1600/17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-YmhXjxxFwiI/V3pLDUTY5OI/AAAAAAAACcY/SP8kJknOhCgeJbY3jQVA0guwWPTdsj6XgCLcB/s1600/17.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
19. Similarly we do have to mapping connect to Lookup also as we are doing lookup on target to check the records existence.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both;">
Go the Transformation Folder and select the Lookup instance to defined connection. Click on down arrow button highlighted below to select the required connect for the instance. (If no connection available then you have to create connection first the assign here again.) </div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-YX6DA7_8G70/V3pLDArt7ZI/AAAAAAAACcU/5r5LGNaWjwY6PKBKpb_pweOSSsTma3PdgCLcB/s1600/18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-YX6DA7_8G70/V3pLDArt7ZI/AAAAAAAACcU/5r5LGNaWjwY6PKBKpb_pweOSSsTma3PdgCLcB/s1600/18.png" /></a></div>
<br />
20. Then Click o Apply and Ok.<br />
<br />
21. Save workflow and validation. Now you can run your job.<br />
<br />
Below is the screenshot from the first time load. Here it is having 14 records.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-LnUCRf3-nLw/V3pLEeGexlI/AAAAAAAACck/PlsrZEFGUz8eqylCIYHuzBigcwTT8CtdQCLcB/s1600/19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="189" src="https://4.bp.blogspot.com/-LnUCRf3-nLw/V3pLEeGexlI/AAAAAAAACck/PlsrZEFGUz8eqylCIYHuzBigcwTT8CtdQCLcB/s640/19.png" width="640" /></a></div>
<br />
To check history or modified records are maintained correct I have check below highlighted values. So that after my second run those values will be more to history 2 columns.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-i6eKt1MPCBo/V3pLE2w0BKI/AAAAAAAACco/Hx2xUs-fBRo21du4u3z5rpHztSQWHMuFwCLcB/s1600/20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="157" src="https://3.bp.blogspot.com/-i6eKt1MPCBo/V3pLE2w0BKI/AAAAAAAACco/Hx2xUs-fBRo21du4u3z5rpHztSQWHMuFwCLcB/s640/20.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Below highlighted in green colour box having newly inserted records, records colour in red box are history/modified data records. Under that the values marked blue are previously in history 1st values from the above screen now they are moved to history 2. </div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-KvRYP5HVoOs/V3pLFeecUnI/AAAAAAAACcs/MDiKnevfieAnA9jf2amdqnke_WLACsrGwCLcB/s1600/21.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-KvRYP5HVoOs/V3pLFeecUnI/AAAAAAAACcs/MDiKnevfieAnA9jf2amdqnke_WLACsrGwCLcB/s1600/21.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Please try and let me know if any issue.</div>
<br /></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com0tag:blogger.com,1999:blog-3888677960781784215.post-55634230238489819132015-10-25T21:14:00.001+05:302020-06-09T19:54:29.151+05:30SDC - Creating a Type 1 Dimension Mapping<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Slowing Chaining Dimension
Type 1:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Slowing Chaining Dimension
Type 1 is used to maintain latest data by comparing the existing data from the
target. It will insert the new records and update the new data by overwriting
the existing data for those records. All the records contain current data only.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Type 1 Dimension used to update the table when you do not need to keep
any previous versions of data for those records.<a href="https://www.blogger.com/null" name="GUID-1CF3E578-A1F8-404B-994E-18C98F759DF"></a><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Sample Mapping:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 13.3333px;">This sample mapping is to show case how SDC 1 is work and in this exercises we are not compare column to column for updated to check is there any change in exist record. In this we are only check for Primary Key if exist then Update else Insert as new.</span></span><br />
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 13.3333px;"><br /></span></span>
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 13.3333px;"><br /></span></span>
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 13.3333px;">Please connect & open the Repository Folder where you want to create mapping and workflow.</span></span><br />
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 13.3333px;"><br /></span></span>
<br />
<div style="text-align: left;">
<span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 10pt; line-height: 20px; text-align: justify;">1. Connect and Open the folder if not already opened.</span></div>
<span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 10pt; line-height: 20px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 10pt; line-height: 20px; text-align: justify;">2. </span><span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 13.3333px; line-height: 20px; text-align: justify;"> </span><span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 13.3333px; line-height: 20px; text-align: justify;">Select Tools --> Mapping Designer</span><br />
<span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 13.3333px; line-height: 20px; text-align: justify;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-jXpzihjhuWY/V1_4lXVraGI/AAAAAAAACYo/KpwXx3IlgdY2VvC-Fo5VfIN-UbY0N5wRgCLcB/s1600/sq-1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="116" src="https://2.bp.blogspot.com/-jXpzihjhuWY/V1_4lXVraGI/AAAAAAAACYo/KpwXx3IlgdY2VvC-Fo5VfIN-UbY0N5wRgCLcB/s320/sq-1.jpg" width="320" /></a></div>
<span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 13.3333px; line-height: 20px; text-align: justify;"><br /></span>
<br />
<div class="MsoNormal" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; text-align: justify;">
<span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<span style="font-family: "verdana" , sans-serif;"><span style="font-size: 13.3333px;">3. </span></span><span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 13.3333px; line-height: 20px; text-align: justify;">Select Mappings --> Create --> Entry the mapping name you want to create. Then click on "OK".</span><br />
<span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 13.3333px; line-height: 20px; text-align: justify;"><br /></span>
<span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 13.3333px; line-height: 20px; text-align: justify;">4. Drag & Drop required source instance to mapping. (Here I have replace 2 source qualifier instance with one).</span><br />
<span style="background-color: white; color: #555555; font-family: "verdana" , sans-serif; font-size: 13.3333px; line-height: 20px; text-align: justify;"><br /></span>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<a href="https://3.bp.blogspot.com/-03ntGvl-Qss/V1_3hZZU5HI/AAAAAAAACWc/f6Kbi9JzSKQEe-8OnDXJmOQ2Mt7JyDg1wCLcB/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="210" src="https://3.bp.blogspot.com/-03ntGvl-Qss/V1_3hZZU5HI/AAAAAAAACWc/f6Kbi9JzSKQEe-8OnDXJmOQ2Mt7JyDg1wCLcB/s400/2.png" width="400" /></a><br />
<br />
5. Double click on Source Qualifier --> Go to Properties Tab --> Under that click on "down arrow" opposite to "User Defined Join" as below.<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-LYz6FBul7yc/V1_5m70lKqI/AAAAAAAACY4/yC37EgA4eL42CgQ8WSOzscDZOEwkSD5qwCLcB/s1600/sq-10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-LYz6FBul7yc/V1_5m70lKqI/AAAAAAAACY4/yC37EgA4eL42CgQ8WSOzscDZOEwkSD5qwCLcB/s1600/sq-10.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Then click on "Ok", "Apply" and "Ok".</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />
6. Drag & Drop target table to mapping (take 2 instances one for Insert and other for update process)<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<a href="https://1.bp.blogspot.com/-hBzZOVfapjU/V1_3kx3OqNI/AAAAAAAACXs/1gAeOLBRiewBDoZxk74rxPBeNDTOWHjkACLcB/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="393" src="https://1.bp.blogspot.com/-hBzZOVfapjU/V1_3kx3OqNI/AAAAAAAACXs/1gAeOLBRiewBDoZxk74rxPBeNDTOWHjkACLcB/s400/5.png" width="400" /></a><br />
<br />
7. Add Lookup to the Mapping. The lookup instance is on target table to exist the income records are exist of not for insert else update them. (Here the lookup is connected one).<br />
<br />
Here we are need to lookup on target table so select the location of the lookup table as "Target" and select the table from the list under Targets folder as show below.<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-aC_D5A59aKY/V1_3lBirOXI/AAAAAAAACX0/EAu2X9XKKg0TNEri51obQM3yrHuBzLu_ACLcB/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-aC_D5A59aKY/V1_3lBirOXI/AAAAAAAACX0/EAu2X9XKKg0TNEri51obQM3yrHuBzLu_ACLcB/s1600/6.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Then Click on "OK"</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
8. The lookup instance will be added to mapping as shown below.</div>
<a href="https://3.bp.blogspot.com/-GZLC9OQWilU/V1_3lLrOTZI/AAAAAAAACXw/BvVWiJC_k90fzKDQt0b4iwHDycm2--OcQCLcB/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://3.bp.blogspot.com/-GZLC9OQWilU/V1_3lLrOTZI/AAAAAAAACXw/BvVWiJC_k90fzKDQt0b4iwHDycm2--OcQCLcB/s1600/7.png" /></a><br />
<br />
9. Now Drag the required columns from Source qualifier to lookup transformation as below.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-g-D3mujsWVU/V1_3mBFLGUI/AAAAAAAACYM/R2gsfgdQ1cUVkOeGN4fU-OlZfnETqGa8ACLcB/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-g-D3mujsWVU/V1_3mBFLGUI/AAAAAAAACYM/R2gsfgdQ1cUVkOeGN4fU-OlZfnETqGa8ACLcB/s1600/8.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
10. To defined the lookup condition, double click on lookup transformation --> go to condition tab</div>
<a href="https://3.bp.blogspot.com/-oLPNsuM_gm4/V1_3lxZ8FII/AAAAAAAACX8/fWDX773zoJw9tpv6ZdTTOtTxRUnQavF2ACLcB/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://3.bp.blogspot.com/-oLPNsuM_gm4/V1_3lxZ8FII/AAAAAAAACX8/fWDX773zoJw9tpv6ZdTTOtTxRUnQavF2ACLcB/s1600/9.png" /></a><br />
<br />
Note: Lookup Table Column are from Lookup table (Left side of the image)<br />
Transformation Port the column drag from Source qualifier (Right side of the image).<br />
<br />
select the required column for match condition as show above.<br />
<br />
11. Drag Lookup Primary Key (EMPNO from lookup) and all other column dragged from source qualifier to lookup are drag to Router Transformation to route/separate records for insert and update. <br />
<a href="https://2.bp.blogspot.com/-caSh2dX4JTw/V1_3eos_fmI/AAAAAAAACVs/cMEM85fMnVk9Igje2_x5ViGQMjMHufsvwCLcB/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://2.bp.blogspot.com/-caSh2dX4JTw/V1_3eos_fmI/AAAAAAAACVs/cMEM85fMnVk9Igje2_x5ViGQMjMHufsvwCLcB/s1600/10.png" /></a><br />
<br />
13. Condition to separate records for Insert and Update.<br />
<br />
Double click on Router Transformation -- > go to Group tab. To create 2 groups one for insert condition and other for update condition.<br />
<br />
For InsertRow Group: ISNULL(LKP_EMPNO)<br />
Note: If case lookup Empno is null mean there is no matching record in target so they go for Insert<br />
<br />
For UpdateRow Group: NOT ISNULL(LKP_EMPNO)<br />
Note: If case lookup Empno is not null mean there is matching record in target so they go for Update<br />
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-ROG7c-nPPtU/V1_3eui002I/AAAAAAAACVw/IgGFrHm1CfglJSt93OXxOnIw_UirQQxjQCLcB/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-ROG7c-nPPtU/V1_3eui002I/AAAAAAAACVw/IgGFrHm1CfglJSt93OXxOnIw_UirQQxjQCLcB/s1600/11.png" /></a></div>
<br />
14. From InsertRow Group of Router Transformation mapping columns to Target Table instance taken for Insert (Note: Default incoming rows type is insert that is why here we are not using update strategy for insert flow)<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-G4dfSu60pk8/V1_3fUbbUWI/AAAAAAAACV0/R2vNxEBNABsItMv58-T1PZpfBv7ymeg6ACLcB/s1600/12.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="322" src="https://2.bp.blogspot.com/-G4dfSu60pk8/V1_3fUbbUWI/AAAAAAAACV0/R2vNxEBNABsItMv58-T1PZpfBv7ymeg6ACLcB/s640/12.png" width="640" /></a></div>
<br />
15. Add update strategy to flag incoming records for update purpose. Drag required column from Router Transformation - UpdateRow type Group as show above<br />
<br />
16. Double click on Update Strategy --> go to Property tab<br />
<br />
under "Update Strategy Expression" write: DD_UPDATE as shown below<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-_ummlsKm3KU/V1_3fstKIXI/AAAAAAAACV4/XAF9oNzb71s-mDl3YReZoO7A1TahJlZ8ACLcB/s1600/13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="246" src="https://1.bp.blogspot.com/-_ummlsKm3KU/V1_3fstKIXI/AAAAAAAACV4/XAF9oNzb71s-mDl3YReZoO7A1TahJlZ8ACLcB/s400/13.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
17. Map the required columns from Update Strategy to Target Instance taken for Update flow.</div>
<a href="https://4.bp.blogspot.com/-YdA7jJC3oHg/V1_3gORqzgI/AAAAAAAACWA/zIjHAS91G28sPE-cNglxxfLRM0G0OzKbQCLcB/s1600/14.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://4.bp.blogspot.com/-YdA7jJC3oHg/V1_3gORqzgI/AAAAAAAACWA/zIjHAS91G28sPE-cNglxxfLRM0G0OzKbQCLcB/s1600/14.png" /></a><br />
<br />
18. Create the workflow for the above mapping.<br />
<br />
19. Connect and Open the folder under which you have created the mapping.<br />
<br />
20. Select "Workflows" from the menu --> Click on "Create..." as shown below<br />
<a href="https://4.bp.blogspot.com/-4zuPKMsloD8/V1_3gHMcNeI/AAAAAAAACWE/qoDxyro9UJofGzK1bttIWkEtgGQVAaItwCLcB/s1600/15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-4zuPKMsloD8/V1_3gHMcNeI/AAAAAAAACWE/qoDxyro9UJofGzK1bttIWkEtgGQVAaItwCLcB/s1600/15.png" /></a><br />
<br />
21. It will Pop Up the below screen. Entry the name for the workflow.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-gzSUFaH4MpE/V1_3gCsGVrI/AAAAAAAACWI/XsYziz2assEg8vgEdoCcXSBqNEcccNCogCLcB/s1600/16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-gzSUFaH4MpE/V1_3gCsGVrI/AAAAAAAACWI/XsYziz2assEg8vgEdoCcXSBqNEcccNCogCLcB/s1600/16.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Then Click on "OK".</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
22. Create the session for the mapping by click the icon highlighted in red colour in below screen. It will Pop up the Mappings list, from the list the mapping for which you want to create this session. As shown below.</div>
<a href="https://3.bp.blogspot.com/-nQ5THne6K-g/V1_3gkHQwoI/AAAAAAAACWU/NFBuWq3POpU-AJK4ip_feCI6svZQpIeKgCLcB/s1600/17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-nQ5THne6K-g/V1_3gkHQwoI/AAAAAAAACWU/NFBuWq3POpU-AJK4ip_feCI6svZQpIeKgCLcB/s1600/17.png" /></a><br />
<div class="separator" style="clear: both; text-align: left;">
Now, the session got create, Then link the session with start icon as below.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-tQ-iCeRKqnc/V1_3g42nKOI/AAAAAAAACWQ/qJ_Y8bHO3zoaxuUCAZtWwWKH0adITYIegCLcB/s1600/18.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-tQ-iCeRKqnc/V1_3g42nKOI/AAAAAAAACWQ/qJ_Y8bHO3zoaxuUCAZtWwWKH0adITYIegCLcB/s1600/18.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Double click on Session then go to --> Properties tab:</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-G0y2wFdKrEw/V1_3hX_ET2I/AAAAAAAACWY/N4mZOwkap6w1g6MUd9ZIGEysplh8XPKdwCLcB/s1600/19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="518" src="https://2.bp.blogspot.com/-G0y2wFdKrEw/V1_3hX_ET2I/AAAAAAAACWY/N4mZOwkap6w1g6MUd9ZIGEysplh8XPKdwCLcB/s640/19.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
By default Treat source rows as will be insert but whenever you will add update strategy in the mapping. Automatically Treat source rows as will be changed to Data Driven. (highlighted in yellow in above screen).</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Then go to --> Mapping tab to assign/map source, target and lookup database connection information</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-uZdIRLc5oGQ/V1_3hwPlztI/AAAAAAAACWk/D1hx4MtnaOEiSiLJVoOGS0I4z4t3KaHGQCLcB/s1600/20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-uZdIRLc5oGQ/V1_3hwPlztI/AAAAAAAACWk/D1hx4MtnaOEiSiLJVoOGS0I4z4t3KaHGQCLcB/s1600/20.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Go to Sources folder in the left side navigator, then select the source (SQ_EMP_DEPT) to assign database connection. Click on the down arrow button to get the list of connection available for this repository and select required one from the list. ex: orac_conn_scott it is connection name pointing to Scott database in this example, </div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://4.bp.blogspot.com/-xbQqbzYue1E/V1_3iPc9AaI/AAAAAAAACWw/5jz51ZDH9pMzrb1ESNK-6Xj_lRYGk_NCACLcB/s1600/21.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://4.bp.blogspot.com/-xbQqbzYue1E/V1_3iPc9AaI/AAAAAAAACWw/5jz51ZDH9pMzrb1ESNK-6Xj_lRYGk_NCACLcB/s1600/21.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
similarly go to Target folder in the left side navigator, then select the target (EMP_DEPT_INSERT) to assign database connection. Click on the down arrow button to get the list of connection available for this repository and select required one from the list. ex: orac_conn_practice it is connection name pointing to Practice database in this example, </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
In properties session select Insert values for insert data into target</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-D7BcAjGELyk/V1_3iRfF0II/AAAAAAAACW0/0AV01_F2JTAkLfn0fgjZbqUrOLwHPglxQCLcB/s1600/22.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-D7BcAjGELyk/V1_3iRfF0II/AAAAAAAACW0/0AV01_F2JTAkLfn0fgjZbqUrOLwHPglxQCLcB/s1600/22.png" /></a></div>
<br />
Then select the target folder in the left side navigator, then select (EMP_DEPT_UPDATE) to assign database connection. Click on the down arrow button to get the list of connection available for this repository and select required one from the list. ex: orac_conn_practice it is connection name pointing to Practice database in this example,<br />
<div class="separator" style="clear: both; text-align: left;">
</div>
<br />
In properties session select update values for update data into target<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-JGIW-LtlE2g/V1_3jClvlVI/AAAAAAAACXE/ePK9laowNJQnIbgAE7vZyjAOKv0f5NmtwCLcB/s1600/24.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-JGIW-LtlE2g/V1_3jClvlVI/AAAAAAAACXE/ePK9laowNJQnIbgAE7vZyjAOKv0f5NmtwCLcB/s1600/24.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
similarly then select the transformation folder in the left side navigator, then select (LKPTRANS) to assign database connection. Click on the down arrow button to get the list of connection available for this repository and select required one from the list. ex: orac_conn_practice it is connection name pointing to Practice database in this example,<br />
<div class="separator" style="clear: both;">
</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-pEX9bW87vWI/V1_3jbEnMJI/AAAAAAAACXI/RDXPPMciJdMH9eG_AyitJL8c8hy6ImvYACLcB/s1600/25.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-pEX9bW87vWI/V1_3jbEnMJI/AAAAAAAACXI/RDXPPMciJdMH9eG_AyitJL8c8hy6ImvYACLcB/s1600/25.png" /></a></div>
<br />
Then click on "Apply" and "Ok".<br />
<br />
Save the session and workflow.<br />
<br />
Then run the session/workflow.<br />
<br />
When you run the session first time all the records will be inserted. In below screen i have modified few records no 2, 3 and 7 so when you run the job second time they will be updated.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://3.bp.blogspot.com/-zdPJh5akG-0/V1_3jmvGHmI/AAAAAAAACXM/tpahIZ3T14wInqhTxHiGsSkDNPF3BWLqACLcB/s1600/26.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://3.bp.blogspot.com/-zdPJh5akG-0/V1_3jmvGHmI/AAAAAAAACXM/tpahIZ3T14wInqhTxHiGsSkDNPF3BWLqACLcB/s1600/26.png" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
In this below screen records highlighted with red box are modified/updated records and highlighted in green box are newly inserted 3 records </div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-DZg5o0cnuig/V1_3kN0ZcyI/AAAAAAAACXU/E33HcZYLPpM-LgpD6zXFTjzYFvucH6vtACLcB/s1600/27.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-DZg5o0cnuig/V1_3kN0ZcyI/AAAAAAAACXU/E33HcZYLPpM-LgpD6zXFTjzYFvucH6vtACLcB/s1600/27.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Other records which are not highlighted are overwritten records as they dint have any changed.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Below is the session details where 3 records are inserted and 11 records are updated ( 3 modified and 7 overwritten).</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://1.bp.blogspot.com/-C6bIpovUop8/V1_3jyiBycI/AAAAAAAACXQ/1qK2dvnXGmMtCe9Aw9KYf5G4OvMRFzNdQCLcB/s1600/28.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-C6bIpovUop8/V1_3jyiBycI/AAAAAAAACXQ/1qK2dvnXGmMtCe9Aw9KYf5G4OvMRFzNdQCLcB/s1600/28.png" /></a></div>
</div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com5tag:blogger.com,1999:blog-3888677960781784215.post-79634978570269721042015-10-25T18:25:00.000+05:302020-06-09T19:54:27.729+05:30Event Raise Task<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<b><span lang="EN" style="font-family: Verdana, sans-serif;">Event-Raise Tasks<o:p></o:p></span></b></div>
<div class="MsoNormal" style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif;">The Event-Raise task represents the location of a user-defined event. A user-defined event is the sequence of tasks in the branch from the Start task to the Event-Raise task. When the Integration Service runs the Event-Raise task, the Event-Raise task triggers the user-defined event.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif;">To use an Event-Raise task, you must first declare the user-defined event. Then, create an Event-Raise task in the workflow to represent the location of the user-defined event you just declared. In the Event-Raise task properties, specify the name of a user-defined event.</span></div>
<div style="background-color: white; margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;">Sample Scenario:</span><span style="font-family: Arial, Helvetica, sans-serif;">A Workflow having 4 session which needs to run as below:</span><span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 20px;">session 1 and session 2 needs to run </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: 115%;">Parallel/</span><span style="background-color: transparent; line-height: 115%;">concurrently, session 3 should run on completion/success of session 1 and the session 4 should run on completion/success of session 2 & session 3.</span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent; line-height: 115%;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent;"><span style="line-height: 115%;">Note: As session 2 and session 4 are connected </span><span style="line-height: 14.95px;">sequentially, so it run once session 2 is completed. So we have to hold it until session 3 gets completed. To do what we need to have a event wait</span><span style="line-height: 115%;"> between session 2 & session 4 and a event raise after session 3 to trigger event wait.</span></span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent;"><span style="line-height: 115%;"><br /></span></span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent;"><span style="line-height: 115%;"> Steps:</span></span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent;"><span style="line-height: 115%;"><br /></span></span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent;"><span style="line-height: 115%;">1. Create a workflow with required </span><span style="line-height: 14.95px;">sessions (Session 1, Session 2, Session 3 & Session 4)</span><span style="line-height: 115%;">.</span></span></span></div>
<div style="text-align: left;">
<a href="http://1.bp.blogspot.com/-L1y25bkHIt4/VizZ8r-LyEI/AAAAAAAACMk/DcZcpZT-Oow/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="175" src="http://1.bp.blogspot.com/-L1y25bkHIt4/VizZ8r-LyEI/AAAAAAAACMk/DcZcpZT-Oow/s400/1.png" width="400" /></a></div>
<div style="text-align: left;">
<span style="font-size: x-small;"><span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent;"><span style="line-height: 115%;"><br /></span></span></span></span></div>
<div style="text-align: left;">
<span style="font-size: x-small;"><span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent;"><span style="line-height: 115%;"><br /></span></span></span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: transparent;"><span style="line-height: 115%;">2. Edit workflow properties --> go to Events Tab. </span></span></span><span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 115%;">Create a event "</span></span><span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 14.95px;">RunSession4".</span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 14.95px;"><br /></span></span></div>
<div style="text-align: left;">
<a href="http://2.bp.blogspot.com/-6-9oZHfctEY/VizZ9R08XwI/AAAAAAAACMw/Z3Q0G0z7cVM/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="133" src="http://2.bp.blogspot.com/-6-9oZHfctEY/VizZ9R08XwI/AAAAAAAACMw/Z3Q0G0z7cVM/s400/2.png" width="400" /></a></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small;"><span style="line-height: 14.95px;"><br /></span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 14.95px;">3. Connect Start task with Session 1 and Session 2 </span><span style="line-height: 14.95px;">concurrently</span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-MD8bgn7a94w/VizZ9pXkBvI/AAAAAAAACM0/sGZBONZtS2k/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="181" src="http://3.bp.blogspot.com/-MD8bgn7a94w/VizZ9pXkBvI/AAAAAAAACM0/sGZBONZtS2k/s400/3.png" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; line-height: 14.95px;">4. Connect Session 1 with Session 3</span></div>
<div style="text-align: left;">
<a href="http://3.bp.blogspot.com/-Hx8cz0oYZ_g/VizZ9xqETOI/AAAAAAAACM4/jNKLOe7ROSc/s1600/4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="195" src="http://3.bp.blogspot.com/-Hx8cz0oYZ_g/VizZ9xqETOI/AAAAAAAACM4/jNKLOe7ROSc/s400/4.png" width="400" /></a></div>
<div style="text-align: left;">
<span style="line-height: 14.95px;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span></div>
<div style="text-align: left;">
<span style="line-height: 14.95px;"><span style="font-family: Arial, Helvetica, sans-serif;">5. From Menu, select Tasks --> Create --> Event Raise and Entry the Name for it "EventRaise"</span></span></div>
<div style="text-align: left;">
<a href="http://2.bp.blogspot.com/-ERATAyAZazE/VizZ-JA5wgI/AAAAAAAACNA/TDSokHAfX_k/s1600/5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="80" src="http://2.bp.blogspot.com/-ERATAyAZazE/VizZ-JA5wgI/AAAAAAAACNA/TDSokHAfX_k/s400/5.png" width="400" /></a></div>
<div style="text-align: left;">
<a href="http://2.bp.blogspot.com/-PAozAoCCA6Y/VizZ-fXrAgI/AAAAAAAACNI/YFXLUgq9C_Q/s1600/6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="207" src="http://2.bp.blogspot.com/-PAozAoCCA6Y/VizZ-fXrAgI/AAAAAAAACNI/YFXLUgq9C_Q/s400/6.png" width="400" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 14.95px;"><br /></span></div>
<div style="text-align: left;">
<span style="line-height: 14.95px;"><span style="font-family: Arial, Helvetica, sans-serif;">6. Connect Session 3 with EventRaise Task, Then Edit it and go to properties Tab. To select Event Created at workflow properties in Step 2.</span></span></div>
<div style="text-align: left;">
<a href="http://4.bp.blogspot.com/-u2wKEXR-eDQ/VizZ-lv3uzI/AAAAAAAACNM/-dxC3JHlIgY/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="137" src="http://4.bp.blogspot.com/-u2wKEXR-eDQ/VizZ-lv3uzI/AAAAAAAACNM/-dxC3JHlIgY/s640/7.png" width="640" /></a></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 14.95px;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 14.95px;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><span style="line-height: 14.95px;">7. </span><span style="line-height: 14.95px;">From Menu, select Tasks --> Create --> Event Wait and Entry the Name for it "EventWait"</span></span></div>
<div style="text-align: left;">
<a href="http://1.bp.blogspot.com/-YN8jTDd88KY/VizZ-5DnfCI/AAAAAAAACNU/r1AeO73TzoY/s1600/8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="80" src="http://1.bp.blogspot.com/-YN8jTDd88KY/VizZ-5DnfCI/AAAAAAAACNU/r1AeO73TzoY/s400/8.png" width="400" /></a></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<a href="http://1.bp.blogspot.com/-tRiDQm3viRo/VizZ_OWz-5I/AAAAAAAACNc/_up58goQ1dU/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="216" src="http://1.bp.blogspot.com/-tRiDQm3viRo/VizZ_OWz-5I/AAAAAAAACNc/_up58goQ1dU/s400/9.png" width="400" /></a></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 14.95px;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 14.95px;"><br /></span></div>
<div style="text-align: left;">
<span style="line-height: 14.95px;"><span style="font-family: Arial, Helvetica, sans-serif;">8. Connect Session 2 with EventWait, Edit EventWait and go to properties --> Event Tab.</span></span></div>
<div style="text-align: left;">
<span style="line-height: 14.95px;"><span style="font-family: Arial, Helvetica, sans-serif;">Under "User Defined" select Event Created at Step 2 by click on browse Event Button.</span></span></div>
<div style="text-align: left;">
<a href="http://4.bp.blogspot.com/-K3-hDZOcGE4/VizZ8ms6uBI/AAAAAAAACMo/P0nJEPji6VY/s1600/10.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="262" src="http://4.bp.blogspot.com/-K3-hDZOcGE4/VizZ8ms6uBI/AAAAAAAACMo/P0nJEPji6VY/s640/10.png" width="640" /></a></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 14.95px;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 14.95px;"><br /></span></div>
<div style="text-align: left;">
<span style="line-height: 14.95px;"><span style="font-family: Arial, Helvetica, sans-serif;">9. Connect EventWait with Session 4.</span></span></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 14.95px;"><br /></span></div>
<div style="text-align: left;">
<a href="http://1.bp.blogspot.com/-rv6fe5g7uxs/VizZ8remsgI/AAAAAAAACMs/NHPcC4cLuFM/s1600/11.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="115" src="http://1.bp.blogspot.com/-rv6fe5g7uxs/VizZ8remsgI/AAAAAAAACMs/NHPcC4cLuFM/s320/11.png" width="320" /></a></div>
<div style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-small; line-height: 14.95px;"><br /></span></div>
<div style="text-align: left;">
<span style="line-height: 14.95px;"><span style="font-family: Arial, Helvetica, sans-serif;">10. Save the workflow before you run this workflow.</span></span></div>
<div style="text-align: left;">
<span style="line-height: 14.95px;"><span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span></div>
<div style="text-align: left;">
<span style="line-height: 14.95px;"><span style="font-family: Arial, Helvetica, sans-serif;">Note: When you use EventWait with EventRaise we dont need any filewatche.</span></span></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com0tag:blogger.com,1999:blog-3888677960781784215.post-77140564659624170882015-10-25T18:21:00.001+05:302020-06-09T19:54:27.770+05:30Event Wait Task<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<b><span lang="EN" style="font-family: Verdana, sans-serif;">Event-Wait Tasks<o:p></o:p></span></b></div>
<div class="MsoNormal" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif;">The Event-Wait task waits for a predefined event or a user-defined event. A predefined event is a file-watch event. When you use the Event-Wait task to wait for a predefined event, you specify an indicator file for the Integration Service to watch. The Integration Service waits for the indicator file to appear. Once the indicator file appears, the Integration Service continues running tasks after the Event-Wait task.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif;">You can assign resources to Event-Wait tasks that wait for predefined events. You may want to assign a resource to a predefined Event-Wait task if you are running on a grid and the indicator file appears on a specific node or in a specific directory. When you assign a resource to a predefined Event-Wait task and the Integration Service is configured to check resources, the Load Balancer distributes the task to a node where the required resource is available.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif;">Note: If you use the Event-Raise task to trigger the event when you wait for a predefined event, you may not be able to successfully recover the workflow.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<a href="http://gowtham-informatica-reference.blogspot.in/2013/06/event-task.html" name="GUID-1A486565-C564-4FC5-9A4F-41C7AB698BF" style="color: #cc2621; outline: none;"></a><span lang="EN" style="font-family: Verdana, sans-serif;">You can also use the Event-Wait task to wait for a user-defined event. To use the Event-Wait task for a user-defined event, specify the name of the user-defined event in the Event-Wait task properties. The Integration Service waits for the Event-Raise task to trigger the user-defined event. Once the user-defined event is triggered, the Integration Service continues running tasks after the Event-Wait task.</span></div>
<div class="MsoNormal" style="background-color: white; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="background-color: white; color: #555555; line-height: 20px; margin-bottom: 0.0001pt;">
<span lang="EN"><div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<b><span style="font-family: Verdana, sans-serif;">Event Wait:<o:p></o:p></span></b></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">1. </span><span style="font-family: Verdana, sans-serif;">In the Workflow Designer (First you need to create a session).<span style="font-size: x-small;"><o:p></o:p></span></span></div>
<div class="separator" style="clear: both; color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<a href="http://4.bp.blogspot.com/-4n8bazPql-g/UiHbMaFVU-I/AAAAAAAABbI/zXohI9GEeDY/s1600/ew1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="105" src="http://4.bp.blogspot.com/-4n8bazPql-g/UiHbMaFVU-I/AAAAAAAABbI/zXohI9GEeDY/s400/ew1.png" width="400" /></a></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">2. From Menu bar select Workflows </span><span style="font-family: Wingdings;">à</span><span style="font-family: Verdana, sans-serif;"> Click Create<o:p></o:p></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<a href="http://3.bp.blogspot.com/-bbR0IqWI0Uk/UiHbMXT-hdI/AAAAAAAABbA/Om4XAJjChcY/s1600/ew2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="48" src="http://3.bp.blogspot.com/-bbR0IqWI0Uk/UiHbMXT-hdI/AAAAAAAABbA/Om4XAJjChcY/s400/ew2.png" width="400" /></a></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">3. Select Event Wait Task for the task type.</span><span style="font-family: Verdana, sans-serif; font-size: x-small;"><o:p></o:p></span></div>
<div class="separator" style="clear: both; color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<a href="http://4.bp.blogspot.com/-kq3T888qZFo/UiHbMRKPB4I/AAAAAAAABbE/8PACrJmgodc/s1600/ew3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="164" src="http://4.bp.blogspot.com/-kq3T888qZFo/UiHbMRKPB4I/AAAAAAAABbE/8PACrJmgodc/s320/ew3.png" width="320" /></a></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<span style="font-family: Verdana, sans-serif;"> <span style="text-indent: 0.5in;">Enter a name for the Event Wait task name <</span><span style="text-indent: 0.5in;">InputFileWatcher</span><span style="text-indent: 0.5in;">>.</span></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<span style="font-family: Verdana, sans-serif;"><span style="text-indent: 0.5in;">Click </span><b style="text-indent: 0.5in;">Create</b><span style="text-indent: 0.5in;">. Then click </span><b style="text-indent: 0.5in;">Done</b><span style="text-indent: 0.5in;">. </span></span></div>
<div class="separator" style="clear: both; color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<a href="http://2.bp.blogspot.com/-aqrHQYJCtw8/UiHbNBKp5hI/AAAAAAAABbs/5BMYjD8yNXA/s1600/ew4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="123" src="http://2.bp.blogspot.com/-aqrHQYJCtw8/UiHbNBKp5hI/AAAAAAAABbs/5BMYjD8yNXA/s400/ew4.png" width="400" /></a></div>
<div class="separator" style="clear: both; color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<span style="font-family: Verdana, sans-serif;"><span style="line-height: 18px;">Now, create a link between tasks </span><b style="line-height: 18px;">Start, InputFileWatcher and s_m_employee_file2xml</b><span style="line-height: 18px;"> by using link task. </span></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<br /></div>
<div class="separator" style="clear: both; color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<a href="http://4.bp.blogspot.com/--Era1yOcXrM/UiHbNY6AUMI/AAAAAAAABbU/BJfAmNOTHlw/s1600/ew5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/--Era1yOcXrM/UiHbNY6AUMI/AAAAAAAABbU/BJfAmNOTHlw/s1600/ew5.png" /></a></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<br /></div>
<div class="separator" style="clear: both; color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<a href="http://2.bp.blogspot.com/-_JsdVlGMwtQ/UiHbNS54RXI/AAAAAAAABbc/t91tv-cHygs/s1600/ew6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="116" src="http://2.bp.blogspot.com/-_JsdVlGMwtQ/UiHbNS54RXI/AAAAAAAABbc/t91tv-cHygs/s400/ew6.png" width="400" /></a></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">The Workflow Designer creates and adds the Event Wait task to the workflow.<o:p></o:p></span></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="separator" style="clear: both; color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
</div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">4. Double-click the Event Wait task to open the Edit Task dialog box a Go to Properties Tab</span><span style="font-family: Verdana, sans-serif; font-size: x-small;"><o:p></o:p></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<a href="http://2.bp.blogspot.com/-vFfZFOdmlUw/UiHbN4VxX_I/AAAAAAAABbo/YdiRpsRltZk/s1600/ew7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="156" src="http://2.bp.blogspot.com/-vFfZFOdmlUw/UiHbN4VxX_I/AAAAAAAABbo/YdiRpsRltZk/s400/ew7.png" width="400" /></a></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><b>User Defined Event:</b> A user-defined event is triggered by the Event-Raise task. To wait for a user-defined event, you must first use an Event-Raise task to trigger the user-defined event.<o:p></o:p></span></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><b>Event Name: </b>Event name of the waiting instance.<o:p></o:p></span></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><b>Enable Past Events: </b>Enable past events<o:p></o:p></span></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><b>Filewatch name: </b>Path and File Name of the event for the instance waiting (defined at Event Tab)<o:p></o:p></span></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><b>Delete Filewatch file: </b>Delete the file watch once the instance complete.<o:p></o:p></span></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
</div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">5. Go to Event Tab: To define file watch path and file name.</span><span style="font-family: Verdana, sans-serif; font-size: x-small;"><o:p></o:p></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<a href="http://1.bp.blogspot.com/-HzbvsHXLZWM/UiHbOC8Fn1I/AAAAAAAABb0/wY3EXMsVt58/s1600/ew8.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="200" src="http://1.bp.blogspot.com/-HzbvsHXLZWM/UiHbOC8Fn1I/AAAAAAAABb0/wY3EXMsVt58/s400/ew8.png" width="400" /></a></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif;">Back to Properties tab after file watcher defined.<o:p></o:p></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<a href="http://2.bp.blogspot.com/-H3WFJoKGBOw/UiHbOf9iU0I/AAAAAAAABcA/0rof2yPK_7g/s1600/ew9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="157" src="http://2.bp.blogspot.com/-H3WFJoKGBOw/UiHbOf9iU0I/AAAAAAAABcA/0rof2yPK_7g/s400/ew9.png" width="400" /></a></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<b><br /></b></div>
<div style="color: black; line-height: normal; text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif;"><b>Note: </b>If you want to delete readyfile/event file once the event instance completed please select check box "Delete Filwatch file"</span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<br /></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<span style="line-height: 115%; mso-bidi-font-size: 10.0pt;"><span style="font-family: Verdana, sans-serif;">Click on Apply and OK.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<span style="line-height: 115%; mso-bidi-font-size: 10.0pt;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<span style="line-height: 115%; mso-bidi-font-size: 10.0pt;"><span style="font-family: Verdana, sans-serif;">6. Save the workflow and Run the workflow.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<span style="line-height: 115%; mso-bidi-font-size: 10.0pt;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="color: black; font-family: 'Times New Roman'; font-size: medium; line-height: normal;">
<span style="font-family: Verdana, sans-serif;">Note: The session will not execute until you place file watcher as defined in event tab.</span></div>
</span></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com13tag:blogger.com,1999:blog-3888677960781784215.post-84646022634846271222015-02-02T17:25:00.000+05:302020-06-09T19:54:27.811+05:30Informatica 9x Architecture<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: left;">
<div style="margin-bottom: .0001pt; margin: 0cm;">
<b><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Informatica 9x Architecture</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Informatica is an ETL tool
used for extracting the data from various sources (flat files, relational
database, xml etc), transform the data and finally load the data into a
centralized location such as data warehouse or operational data store.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Informatica powercenter has a
service oriented architecture (SOA) that provides the ability to scale services
and share resources across multiple machines.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span><br />
<span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">The architectural diagram of
Informatica is shown below:</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span><br />
<span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Logical
Diagram:</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-bBKI1MDJj4I/VNC0K3sGbKI/AAAAAAAAB8A/enfLINlYuQE/s1600/INFORMATICA_POWERCENTER_ARCHITECTURE.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://1.bp.blogspot.com/-bBKI1MDJj4I/VNC0K3sGbKI/AAAAAAAAB8A/enfLINlYuQE/s1600/INFORMATICA_POWERCENTER_ARCHITECTURE.jpg" /></a></div>
<br /></div>
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="margin-bottom: .0001pt; margin: 0cm;">
<strong><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Note:
The Blue part is same as version 8 and the green part is new in 9</span></strong><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="separator" style="margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div class="separator" style="margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div class="separator" style="margin: 0cm 0cm 0.0001pt;">
<b>Informatica PowerCenter Architecture:</b></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://2.bp.blogspot.com/-r-fS80xOCDE/V2PaoqnwzxI/AAAAAAAACaI/aIiawLp8NkcCKG6xBmnJE5-QRgdsA14mQCLcB/s1600/informatica-power-center-9x.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://2.bp.blogspot.com/-r-fS80xOCDE/V2PaoqnwzxI/AAAAAAAACaI/aIiawLp8NkcCKG6xBmnJE5-QRgdsA14mQCLcB/s1600/informatica-power-center-9x.jpg" /></a></div>
<div class="separator" style="margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div class="separator" style="margin: 0cm 0cm 0.0001pt;">
<br /></div>
<div style="margin: 0cm 0cm 0.0001pt;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Physical
Diagram:</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin: 0cm 0cm 0pt; text-align: left;">
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-18p78ucWAp4/VM9lWENgdlI/AAAAAAAAB7w/IiRQzyaPnnE/s1600/Informatica_PowerCenter_Architecture_web.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://1.bp.blogspot.com/-18p78ucWAp4/VM9lWENgdlI/AAAAAAAAB7w/IiRQzyaPnnE/s1600/Informatica_PowerCenter_Architecture_web.png" width="454" /></a></div>
<br />
<div class="separator" style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">
The important components of the Informatica powercenter are listed below:</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><br />
<b>Informatica Administrator</b>:</span><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> Web application used to
administer the domain and powercenter security.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br />
</span><b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Domain</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">:<span class="apple-converted-space"> </span></span><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Domain
is the primary unit for management and administration of services in
Powercenter. The components of domain are one or more nodes, service manager an
application services.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br />
</span><b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Node</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">:</span><span class="apple-converted-space"><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> </span></span><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Node
is logical representation of machine in a domain. A domain can have multiple
nodes. Master gateway node is the one that hosts the domain. You can configure
nodes to run application services like integration service or repository
service. All requests from other nodes go through the master gateway node.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"><br />
</span><b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Service Manager</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">:</span><span class="apple-converted-space"><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> </span></span><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Service manager is for supporting the
domain and the application services. The Service Manager runs on each node in
the domain. The Service Manager starts and runs the application services on a
machine.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Application services</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">:</span><span class="apple-converted-space"><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> </span></span><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Group of services which represents the
Informatica server based functionality. Application services include
powercenter repository service, integration service, Data integration service,
Metadata manage service etc.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Powercenter Repository</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">:</span><span class="apple-converted-space"><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> </span></span><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">The metadata is store in a relational
database. The tables contain the instructions to extract, transform and load
data.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Powercenter Repository service</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">:</span><span class="apple-converted-space"><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> </span></span><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">Accepts requests from the client to
create and modify the metadata in the repository. It also accepts requests from
the integration service for metadata to run workflows.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Powercenter Integration Service</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">:</span><span class="apple-converted-space"><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;"> </span></span><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10.0pt;">The integration service extracts data
from the source, transforms the data as per the instructions coded in the
workflow and loads the data into the targets.</span><span style="font-family: "verdana" , sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">Metadata Manager Service</span></b><span style="font-family: "verdana" , sans-serif; font-size: 10pt;">:<span class="apple-converted-space"> </span></span><span style="color: #333333; font-family: "verdana" , "sans-serif"; font-size: 10pt;">Runs the metadata manager web
application. You can analyze the metadata from various metadata repositories.</span></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com13tag:blogger.com,1999:blog-3888677960781784215.post-3360225452330088112014-12-24T18:26:00.002+05:302020-06-09T19:54:29.192+05:30Dynamic Lookup<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 24.0pt; mso-bidi-font-weight: bold; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN; mso-font-kerning: 18.0pt;">Dynamic Lookup Cache
Overview<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">The dynamic cache represents the data in the target. The Integration
Service builds the cache when it processes the first lookup request. It queries
the cache based on the lookup condition for each row that passes into the transformation.
The Integration Service updates the lookup cache when it processes each row. <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">When the Integration Service reads a row from the source, it updates the
lookup cache by performing one of the below action: <o:p></o:p></span></div>
<div class="MsoListParagraphCxSpFirst" style="margin-bottom: 0.0001pt; text-indent: -18pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Inserts the
row into the cache</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-bidi-font-weight: bold; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:</span><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> In case the
source row is not in the cache then it will add the row to cache as insert
type.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; text-indent: -18pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Updates the
row in the cache</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-bidi-font-weight: bold; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:</span><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> In case the
source row exists in the cache and if there is change in data for those columns
compared for change then it will add the row to cache as update type. <o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; text-indent: -18pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: Symbol; mso-fareast-language: EN-IN;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Makes no
change to the cache</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-bidi-font-weight: bold; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">:</span><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"> In case the
row exists in the cache and if there is no change in data for those columns
compared for change then it will add the row to cache as the row as unchanged. <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">The Integration Service either inserts or updates the cache or makes no
change to the cache, based on the results of the lookup query, the row type,
and the Lookup transformation properties you define.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><b>Setting for Dynamic Lookup Cache:</b></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">1. Input, Output and Compare (Associated Expression) Columns</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-xmqrmcB3ABc/Vi0Wp1O7HaI/AAAAAAAACPU/HdZLxrfn54k/s1600/dy1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-xmqrmcB3ABc/Vi0Wp1O7HaI/AAAAAAAACPU/HdZLxrfn54k/s1600/dy1.png" /></a></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;">2. Lookup Conditional Columns</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-tha8kauPENw/Vi0Wpv6yvoI/AAAAAAAACPM/_3NA9blQAKk/s1600/dy2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-tha8kauPENw/Vi0Wpv6yvoI/AAAAAAAACPM/_3NA9blQAKk/s1600/dy2.png" /></a></div>
<br />
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">3. Properties required to configure dynamic lookup cache</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-SeOw0nrDDLo/Vi0Wp9f-DOI/AAAAAAAACPQ/zruRrXana6c/s1600/dy3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-SeOw0nrDDLo/Vi0Wp9f-DOI/AAAAAAAACPQ/zruRrXana6c/s1600/dy3.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com0tag:blogger.com,1999:blog-3888677960781784215.post-64625409260046295342014-12-24T18:10:00.007+05:302020-06-09T19:54:27.852+05:30SQL Transformation - Script Mode Static<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">The SQL transformation
processes SQL queries midstream in a pipeline. You can insert, delete, update,
and retrieve rows from a database. You can pass the database connection
information to the SQL transformation as input data at run time. The
transformation processes external SQL scripts or SQL queries that you create in
an SQL editor. The SQL transformation processes the query and returns rows and
database errors. <o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">For example, you might need to
create database tables before adding new transactions. You can create an SQL
transformation to create the tables in a workflow. The SQL transformation
returns database errors in an output port. You can configure another workflow
to run if the SQL transformation returns no errors.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">When you create an SQL transformation, you
configure the following options:<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><br /></span></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b style="text-indent: -18pt;"><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Script
mode:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt; text-indent: -18pt;"> The SQL transformation runs ANSI SQL scripts
that are externally located. we pass a script name to the transformation with
each input row. The SQL transformation outputs one row for each input row.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;"><b>Note: </b>The input
file contains the information of the sql file name and path which cantain
insert, update or delete statements.<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
Below is the sample mapping:<br />
<br />
1. Create or import an source & target instance as below snapshot.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-w9ZZdGZchlk/VKJj7N_9ZtI/AAAAAAAAByg/7oY9WZvrjUQ/s1600/1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-w9ZZdGZchlk/VKJj7N_9ZtI/AAAAAAAAByg/7oY9WZvrjUQ/s1600/1.png" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
Source: Script_Name port of 255 scale</div>
<div class="separator" style="clear: both; text-align: left;">
Target: ScriptResult port of 64 scale, ScriptError port of 4096 scale</div>
<br />
2. Add SQL Transformation to the mapping.<br />
Mode: Script Mode<br />
DB Type: Oracle (target database)<br />
Database Connection: Static Connection<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-1EIZ5-wGH74/VKJkApAqXpI/AAAAAAAABzg/NYlPBe_CQ7I/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-1EIZ5-wGH74/VKJkApAqXpI/AAAAAAAABzg/NYlPBe_CQ7I/s1600/2.png" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
3. Select 'SQL Transformation' edit it and go to tab: SQL Settings </div>
<div class="separator" style="clear: both; text-align: left;">
check the below highlighted information as your selection or not?</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-gK9BIOaAQJE/VKJkH5-H4_I/AAAAAAAAB1A/X4hvwIeK_GE/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-gK9BIOaAQJE/VKJkH5-H4_I/AAAAAAAAB1A/X4hvwIeK_GE/s1600/3.png" /></a></div>
Next to to SQL Ports tab:<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-8hOtpqEWtTA/VKJobj0UgDI/AAAAAAAAB3g/qG-GlRlbNFQ/s1600/a.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-8hOtpqEWtTA/VKJobj0UgDI/AAAAAAAAB3g/qG-GlRlbNFQ/s1600/a.JPG" /></a></div>
<br />
In SQL Query as the input port name as shown below<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-U5-b4d93on0/VKJobR4egwI/AAAAAAAAB3c/sXOG_Gs__ms/s1600/b.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-U5-b4d93on0/VKJobR4egwI/AAAAAAAAB3c/sXOG_Gs__ms/s1600/b.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
4. Then link the ports below SQ to SQL Transformation and SQL Transformation to Target instance.<br />
Validate the mapping and save it.<br />
<br />
5. Go the Workflow Manager and Create a workflow for the same.<br />
6. Create a session for the above mapping.<br />
7. Edit the session and go to Mapping tab, to pass source file details.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-fgnZaOLbID0/VKJkPLl5zMI/AAAAAAAAB3A/rXusd7uMfAA/s1600/5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-fgnZaOLbID0/VKJkPLl5zMI/AAAAAAAAB3A/rXusd7uMfAA/s1600/5.png" /></a><a href="http://3.bp.blogspot.com/-fgnZaOLbID0/VKJkPLl5zMI/AAAAAAAAB3A/rXusd7uMfAA/s1600/5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><br /></a></div>
Source File: The Source file contain the information of the sql script file name and the path.<br />
<br />
<a href="http://1.bp.blogspot.com/-5n2Ln05Hbb0/VKJkPcQyOsI/AAAAAAAAB2c/U6SCQoiAqqI/s1600/6.png" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-5n2Ln05Hbb0/VKJkPcQyOsI/AAAAAAAAB2c/U6SCQoiAqqI/s1600/6.png" /></a><br />
<br />
<br />
And the Practices.sql may contain any sql statement like create, alter, drop, insert, update, delete or truncate as below:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-ZwuwSkiIOnU/VKJqaNdTOxI/AAAAAAAAB3w/CsVF7UXZUWQ/s1600/c.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-ZwuwSkiIOnU/VKJqaNdTOxI/AAAAAAAAB3w/CsVF7UXZUWQ/s1600/c.JPG" height="273" width="640" /></a></div>
<br /></div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com2tag:blogger.com,1999:blog-3888677960781784215.post-30145253154920321672014-12-24T18:10:00.006+05:302020-06-09T19:54:27.891+05:30SQL Transformation - Script Mode Dynamic (Connection Object)<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="margin-bottom: .0001pt; margin: 0cm;">
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">The
SQL transformation processes SQL queries midstream in a pipeline. You can
insert, delete, update, and retrieve rows from a database. You can pass the
database connection information to the SQL transformation as input data at run
time. The transformation processes external SQL scripts or SQL queries that you
create in an SQL editor. The SQL transformation processes the query and returns
rows and database errors.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">For
example, you might need to create database tables before adding new
transactions. You can create an SQL transformation to create the tables in a
workflow. The SQL transformation returns database errors in an output port. You
can configure another workflow to run if the SQL transformation returns no
errors.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">When
you create an SQL transformation, you configure the following options:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Script
Mode:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">An SQL transformation running in script mode runs SQL
scripts from text files. We pass each script file name from the source to the
SQL transformation ScriptName port. The script file name contains the complete
path to the script file.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">When we configure the transformation to run in script
mode, we create a passive transformation. The transformation returns one row
for each input row. The output row contains results of the query and any
database error.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">When the SQL transformation runs in script mode, the
query statement and query data do not change. When you need to run different
queries in script mode, you pass the scripts in the source data. Use script
mode to run data definition queries such as creating or dropping tables.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">When we configure an SQL transformation to run in script
mode, the Designer adds the ScriptName input port to the transformation. When
you create a mapping, you connect the ScriptName port to a port that contains
the name of a script to execute for each row. You can execute a different SQL
script for each input row. The Designer creates default ports that return
information about query results.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-size: x-small;"><span lang="EN" style="font-family: Verdana, sans-serif;">An SQL transformation configured for script mode has the
following default ports:</span><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></div>
<div style="margin-top: 0cm; text-align: left;">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-bottom: none; border-left: solid black 1.0pt; border-right: none; border-top: solid black 1.0pt; mso-cellspacing: 0cm; mso-padding-alt: 3.0pt 3.0pt 3.0pt 3.0pt; mso-yfti-tbllook: 1184;">
<thead>
<tr>
<td style="background: #6699CC; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 4.0pt 6.0pt 4.0pt 3.0pt; width: 14.0%;" valign="top" width="14%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><b>Port</b><o:p></o:p></span></div>
</td>
<td style="background: #6699CC; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 4.0pt 6.0pt 4.0pt 3.0pt; width: 10.0%;" valign="top" width="10%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><b>Type</b><o:p></o:p></span></div>
</td>
<td style="background: #6699CC; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 4.0pt 6.0pt 4.0pt 3.0pt; width: 74.0%;" valign="top" width="74%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><b>Description</b><o:p></o:p></span></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 14.0%;" valign="top" width="14%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">ScriptName<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 10.0%;" valign="top" width="10%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Input<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 74.0%;" valign="top" width="74%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Receives the name
of the script to execute for the current row.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 14.0%;" valign="top" width="14%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">ScriptResult<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 10.0%;" valign="top" width="10%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Output<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 74.0%;" valign="top" width="74%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Returns PASSED if
the script execution succeeds for the row. Otherwise contains FAILED.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 14.0%;" valign="top" width="14%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">ScriptError<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 10.0%;" valign="top" width="10%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Output<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 74.0%;" valign="top" width="74%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Returns errors
that occur when a script fails for a row.<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><b><br /></b></span></div>
<div style="margin-top: 0cm; text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><b>Note:<span class="apple-converted-space"> </span></b>The input file
contains the information of the sql file name and path
which contain insert, update or delete statements.</span><br />
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN;"><br /></span></div>
<div style="margin-top: 0cm; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN;"><b>Logical
Database Connection: </b></span></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p>
</span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">We can configure the SQL transformation to connect to a database
with a logical database connection. A logical database connection is a
connection object name that you pass to the transformation at run time. Define
the relational connection object in the Workflow Manager. When you configure
the transformation to use a logical database connection, the Designer creates
the LogicalConnectionObject input port.</span></div>
<div id="GUID-3566A065-7A20-42FF-B57A-58DA3F406BCD__P187" style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
</div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN;">We can pass a
logical connection for each input row. Configure the mapping to pass the
connection object name to the LogicalConnectionObject port. To avoid datatype
conversion errors, use a relational connection for the same database type that
is configured in the transformation.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Below is the sample mapping:</span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: auto; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
</div>
<div style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="-webkit-text-stroke-width: 0px; background-color: white; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; margin-bottom: 0.0001pt; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<div style="margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">1. Create or import an source & target instance as below snapshot.</span><span style="color: #555555; font-size: 10pt;"><o:p></o:p></span></span></div>
</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-VCUXajEIh5Y/VKJkPkxRugI/AAAAAAAAB2g/jCdbdzkeosw/s1600/7.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://3.bp.blogspot.com/-VCUXajEIh5Y/VKJkPkxRugI/AAAAAAAAB2g/jCdbdzkeosw/s1600/7.png" /></a></div>
<div style="background-color: white; clear: both; line-height: 20px; text-align: left;">
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Source: Script_Name port of 255 scale</span><span style="font-family: Verdana, sans-serif;">Target: ScriptResult port of 64 scale, ScriptError port of 4096 scale</span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;"><br style="background-color: white; line-height: 20px;" /></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;"><span style="background-color: white; line-height: 20px;">2. Add SQL Transformation to the mapping.</span></span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;"><span style="background-color: white; line-height: 20px;">Mode: Script Mode</span></span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;"><span style="background-color: white; line-height: 20px;">DB Type: Oracle (target database)</span></span></span><br />
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Database Connection: Dynamic Connection - Connection Object</span><span style="background-color: transparent; font-family: Verdana, sans-serif; font-size: x-small;">. </span></div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-eqLCivxeDCU/VKJkQi-JcJI/AAAAAAAAB2w/5ah5L7HPhJI/s1600/8.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://4.bp.blogspot.com/-eqLCivxeDCU/VKJkQi-JcJI/AAAAAAAAB2w/5ah5L7HPhJI/s1600/8.png" /></a></div>
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">3. By Default it will create 2 input and 2 output ports as below snap shot.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Input Ports:</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">ScriptName: Input Source File Name</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">LogicalConnectionObject: The relation connection created in workflow manager to load data into target instance.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-A-65rfbliKU/VKJkRaue7NI/AAAAAAAAB28/Srwp8rAae9Q/s1600/9.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-A-65rfbliKU/VKJkRaue7NI/AAAAAAAAB28/Srwp8rAae9Q/s1600/9.png" /></a></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">Next, edit SQL Transformation and go the SQL Setting tab:</span></div>
<div style="text-align: left;">
</div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: auto; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
</div>
<div style="text-align: left;">
</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;">check the below highlighted information as your selection or not?</span></div>
<div class="separator" style="-webkit-text-stroke-width: 0px; background-color: white; clear: both; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-PpX_ObIW7WU/VKJj6pBvxeI/AAAAAAAAByk/Cq70plGWEF4/s1600/10.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-PpX_ObIW7WU/VKJj6pBvxeI/AAAAAAAAByk/Cq70plGWEF4/s1600/10.png" /></a></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">Next, go to SQL Ports tab: </span></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">SQL Query: It will required Script Name and Connection Object name as below</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-QBobgtxV72s/VKJvQFwK0OI/AAAAAAAAB4A/3zzFLGsTVXc/s1600/d.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-QBobgtxV72s/VKJvQFwK0OI/AAAAAAAAB4A/3zzFLGsTVXc/s1600/d.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/--6OaXSrUhjU/VKJvQLELAuI/AAAAAAAAB4E/nr2TTT78drQ/s1600/e.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://2.bp.blogspot.com/--6OaXSrUhjU/VKJvQLELAuI/AAAAAAAAB4E/nr2TTT78drQ/s1600/e.JPG" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="font-family: Verdana, sans-serif;">4.<span style="background-color: white; color: #555555; line-height: 20px;">Then link the ports below SQ to SQL Transformation and SQL Transformation to Target instance.</span></span></div>
<span style="font-family: Verdana, sans-serif;"><span style="background-color: white; color: #555555; line-height: 20px;">Validate the mapping and save it.</span><br style="background-color: white; color: #555555; line-height: 20px;" /><br style="background-color: white; color: #555555; line-height: 20px;" /><span style="background-color: white; color: #555555; line-height: 20px;">5. Go the Workflow Manager and Create a workflow for the same.</span><br style="background-color: white; color: #555555; line-height: 20px;" /><span style="background-color: white; color: #555555; line-height: 20px;">6. Create a session for the above mapping.</span><br style="background-color: white; color: #555555; line-height: 20px;" /><span style="background-color: white; color: #555555; line-height: 20px;">7. Edit the session and go to Mapping tab, to pass source file details.</span></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="color: #555555; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 12px; line-height: 20px;"><br /></span></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-D-q--U553DM/VKJj7OuoZGI/AAAAAAAAByo/2TrVptVSOqs/s1600/11.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-D-q--U553DM/VKJj7OuoZGI/AAAAAAAAByo/2TrVptVSOqs/s1600/11.png" height="450" width="640" /></a></div>
<br />
<br />
<span style="font-family: Verdana, sans-serif;"><span style="background-color: white; line-height: 20px;"><br /></span></span>
<b><span style="font-family: Verdana, sans-serif;">Note: For Sql Transformation connection details passing.</span></b><br />
<span style="font-family: Verdana, sans-serif;">1. Choose connection Type as None (In case you want to defined schema/dataname in the ddl's)</span><br />
<div class="separator" style="clear: both;">
<a href="http://1.bp.blogspot.com/-dMPoU3yp1eE/VN3DJeVXAyI/AAAAAAAAB9o/UzeuxUoM10E/s1600/sql_script_s.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-dMPoU3yp1eE/VN3DJeVXAyI/AAAAAAAAB9o/UzeuxUoM10E/s1600/sql_script_s.png" height="554" width="640" /></a></div>
<br />
<span style="font-family: Verdana, sans-serif;">2 Choose connection Type as Relation (In case you not defined any schema/database name in ddl's)</span><br />
<div class="separator" style="clear: both;">
<a href="http://4.bp.blogspot.com/-htmiYmLODxY/VN3D4CYEHpI/AAAAAAAAB9w/o1xFvnawOhY/s1600/sql_script_s1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-htmiYmLODxY/VN3D4CYEHpI/AAAAAAAAB9w/o1xFvnawOhY/s1600/sql_script_s1.png" height="554" width="640" /></a></div>
<br />
<span style="font-family: Verdana, sans-serif;"><span style="background-color: white; line-height: 20px;">Source File: The Source file contain the information of the sql script file name & the file path and Infa relation Connection name.</span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-OjBfuJ6D5gQ/VKJj7-UpB6I/AAAAAAAABy4/FjA4NL7c3iw/s1600/12.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://3.bp.blogspot.com/-OjBfuJ6D5gQ/VKJj7-UpB6I/AAAAAAAABy4/FjA4NL7c3iw/s1600/12.png" height="60" width="640" /></a></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 13px;"><br /></span></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 13px;"><br /></span></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 13px;"><br /></span></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif;"><span style="font-size: 13px;"><br /></span></span></div>
</div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com1tag:blogger.com,1999:blog-3888677960781784215.post-50956880552518144652014-12-24T18:10:00.005+05:302020-06-09T19:54:29.231+05:30SQL Transformation - Script Mode Dynamic (Full Connection Information)<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif;">The
SQL transformation processes SQL queries midstream in a pipeline. You can
insert, delete, update, and retrieve rows from a database. You can pass the
database connection information to the SQL transformation as input data at run
time. The transformation processes external SQL scripts or SQL queries that you
create in an SQL editor. The SQL transformation processes the query and returns
rows and database errors.</span><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif;">For
example, you might need to create database tables before adding new
transactions. You can create an SQL transformation to create the tables in a
workflow. The SQL transformation returns database errors in an output port. You
can configure another workflow to run if the SQL transformation returns no
errors.</span><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif;">When
you create an SQL transformation, you configure the following options:</span><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<b><span lang="EN" style="font-family: Verdana, sans-serif;">Script
Mode:</span></b><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif;">An SQL transformation running in script mode runs SQL
scripts from text files. We pass each script file name from the source to the
SQL transformation ScriptName port. The script file name contains the complete
path to the script file.</span><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif;">When we configure the transformation to run in script
mode, we create a passive transformation. The transformation returns one row
for each input row. The output row contains results of the query and any
database error.</span><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif;">When the SQL transformation runs in script mode, the
query statement and query data do not change. When you need to run different
queries in script mode, you pass the scripts in the source data. Use script
mode to run data definition queries such as creating or dropping tables.</span><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif;">When we configure an SQL transformation to run in script
mode, the Designer adds the ScriptName input port to the transformation. When
you create a mapping, you connect the ScriptName port to a port that contains
the name of a script to execute for each row. You can execute a different SQL
script for each input row. The Designer creates default ports that return
information about query results.</span><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif;">An SQL transformation configured for script mode has the
following default ports:</span><span style="font-family: Verdana, sans-serif;"><o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-bottom: none; border-left: solid black 1.0pt; border-right: none; border-top: solid black 1.0pt; mso-cellspacing: 0cm; mso-padding-alt: 3.0pt 3.0pt 3.0pt 3.0pt; mso-yfti-tbllook: 1184;">
<thead>
<tr>
<td style="background: #6699CC; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 4.0pt 6.0pt 4.0pt 3.0pt; width: 14.0%;" valign="top" width="14%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;"><b>Port</b><o:p></o:p></span></div>
</td>
<td style="background: #6699CC; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 4.0pt 6.0pt 4.0pt 3.0pt; width: 10.0%;" valign="top" width="10%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;"><b>Type</b><o:p></o:p></span></div>
</td>
<td style="background: #6699CC; border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 4.0pt 6.0pt 4.0pt 3.0pt; width: 74.0%;" valign="top" width="74%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;"><b>Description</b><o:p></o:p></span></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 14.0%;" valign="top" width="14%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">ScriptName<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 10.0%;" valign="top" width="10%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Input<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 74.0%;" valign="top" width="74%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Receives the name
of the script to execute for the current row.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 14.0%;" valign="top" width="14%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">ScriptResult<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 10.0%;" valign="top" width="10%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Output<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 74.0%;" valign="top" width="74%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Returns PASSED if
the script execution succeeds for the row. Otherwise contains FAILED.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 14.0%;" valign="top" width="14%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">ScriptError<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 10.0%;" valign="top" width="10%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Output<o:p></o:p></span></div>
</td>
<td style="border-bottom: solid black 1.0pt; border-left: none; border-right: solid black 1.0pt; border-top: none; mso-border-bottom-alt: solid black .75pt; mso-border-right-alt: solid black .75pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 74.0%;" valign="top" width="74%"><div style="margin-bottom: .0001pt; margin: 0cm; vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif;">Returns errors
that occur when a script fails for a row.<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
<span style="font-family: Verdana, sans-serif;"><b><br /></b></span></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><b>Note:<span class="apple-converted-space"> </span></b>The input file
contains the information of the sql file name and path
which contain insert, update or delete statements.</span></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p>
<u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p><u1:p></u1:p>
</span></div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><span style="font-family: Verdana, sans-serif;">We can pass all the database
connection information to an SQL transformation as input port data. When you
configure the SQL transformation to connect to a database with a full
connection, the Designer creates input ports for connection components. The
database type defaults to the database type you configured for the
transformation.</span><o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><span style="font-family: Verdana, sans-serif;">The following table describes
the ports that the Designer creates when you configure an SQL transformation to
connect to a database with a full connection:</span><o:p></o:p></span><br />
<div style="text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><br /></span></div>
</div>
<div style="margin-bottom: .0001pt; margin: 0cm;">
</div>
<div style="text-align: left;">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border: solid black 1.0pt; mso-border-insideh: 1.0pt solid black; mso-border-insidev: 1.0pt solid black; mso-cellspacing: 0cm; mso-padding-alt: 3.0pt 3.0pt 3.0pt 3.0pt; mso-yfti-tbllook: 1184;">
<thead>
<tr>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Port <o:p></o:p></span></b></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Required/ <o:p></o:p></span></b></div>
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Optional <o:p></o:p></span></b></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<b><span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Description <o:p></o:p></span></b></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">ConnectString<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Required<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Contains the database
name and database server name.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">DBUser<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Required<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Name of the user with
permissions to read and write from the database.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">DBPasswd<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Required<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">DBUser password.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">CodePage<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Optional<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Code page the Integration
Service uses to read from or write to the database. Use the ISO code page
name, such as ISO-8859-6. The code page name is not case sensitive.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">AdvancedOptions<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Optional<o:p></o:p></span></div>
</td>
<td style="border: solid black 1.0pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-ansi-language: EN-IN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;"><span style="font-family: Verdana, sans-serif;">Connection attributes.
Pass the attributes as name-value pairs. Delimit each attribute from another
with a semicolon. Attribute names are not case sensitive.</span><o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div style="margin: 0cm 0cm 0.0001pt;">
<span style="font-family: Verdana, sans-serif;"><br /></span><span style="font-family: Verdana, sans-serif;">Below is the sample mapping:</span><br />
<span style="font-family: Verdana, sans-serif;"><br /></span><span style="font-family: Verdana, sans-serif;">1. Create or import an source & target instance as below snapshot.</span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div>
<div class="separator" style="background-color: white; clear: both; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; text-align: center;">
</div>
</div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-AR6adBmnh8c/VKJj8TqP8MI/AAAAAAAABzY/3Jdo8kUykmI/s1600/13.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://2.bp.blogspot.com/-AR6adBmnh8c/VKJj8TqP8MI/AAAAAAAABzY/3Jdo8kUykmI/s1600/13.png" /></a></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><span style="background-color: white; line-height: 20px;">Source: Script_Name port of 255 scale</span></span></div>
<div style="background-color: white; clear: both; line-height: 20px; text-align: left;">
<span style="font-family: Verdana, sans-serif;">Target: ScriptResult port of 64 scale, ScriptError port of 4096 scale</span><span style="font-family: Verdana, sans-serif;"><br style="background-color: white; line-height: 20px;" /></span><br />
<span style="font-family: Verdana, sans-serif;"><span style="background-color: white; line-height: 20px;"><br /></span>
<span style="background-color: white; line-height: 20px;">2. Add SQL Transformation to the mapping.</span><span style="background-color: white; line-height: 20px;">Mode: Script Mode</span><span style="background-color: white; line-height: 20px;">DB Type: Oracle (target database)</span><span style="background-color: white; line-height: 20px;">Database Connection: Dynamic Connection - Full Connection Information</span></span></div>
</div>
<div>
<div style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-b1VI9ODajRs/VKJkEY5Y5JI/AAAAAAAAB0s/c6hP0aClW7A/s1600/14.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://2.bp.blogspot.com/-b1VI9ODajRs/VKJkEY5Y5JI/AAAAAAAAB0s/c6hP0aClW7A/s1600/14.png" /></a></div>
<br />
<div class="separator" style="background-color: white; clear: both; line-height: 20px; text-align: left;">
<span style="font-family: Verdana, sans-serif;">3. Select 'SQL Transformation' edit it and go to tab: SQL Settings </span></div>
<div class="separator" style="background-color: white; clear: both; line-height: 20px; text-align: left;">
<span style="font-family: Verdana, sans-serif;">check the below highlighted information as your selection or not?</span></div>
<div class="separator" style="background-color: white; clear: both; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-zFzYg9JZIr4/VKJj9eDRMzI/AAAAAAAABzE/24egV7QEfAM/s1600/15.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://4.bp.blogspot.com/-zFzYg9JZIr4/VKJj9eDRMzI/AAAAAAAABzE/24egV7QEfAM/s1600/15.png" /></a></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">By Default it will create input ports ScriptName, ConnectString, DBUser, DBPasswd, CodePage & AdvanceOptions (Optional) and 2 output port ScritpResult & ScriptError.</span></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div style="background-color: white; clear: both; line-height: 20px; text-align: left;">
<span style="font-family: Verdana, sans-serif;">3. Select 'SQL Transformation' edit it and go to tab: SQL Settings </span><span style="font-family: Verdana, sans-serif;">check the below highlighted information as your selection or not?</span></div>
<div class="separator" style="background-color: white; clear: both; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-DsPZmc8W1og/VKJj99JeImI/AAAAAAAABzA/iZblf4ehkQk/s1600/16.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://3.bp.blogspot.com/-DsPZmc8W1og/VKJj99JeImI/AAAAAAAABzA/iZblf4ehkQk/s1600/16.png" /></a></div>
<div style="text-align: left;">
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">Next, go to SQL Ports tab:</span></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-eY_UvTwzA-I/VKJy76G3T7I/AAAAAAAAB4Y/2ZgPto9wUV4/s1600/f.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://2.bp.blogspot.com/-eY_UvTwzA-I/VKJy76G3T7I/AAAAAAAAB4Y/2ZgPto9wUV4/s1600/f.JPG" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-h0zifDShGe8/VKJy7xJ0S2I/AAAAAAAAB4U/6BNpqYRy7kc/s1600/g.JPG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://1.bp.blogspot.com/-h0zifDShGe8/VKJy7xJ0S2I/AAAAAAAAB4U/6BNpqYRy7kc/s1600/g.JPG" /></a></div>
<br />
<br />
<br />
<br />
<div style="background-color: white; clear: both; line-height: 20px; text-align: left;">
<span style="font-family: Verdana, sans-serif;">4.Then link the ports below SQ to SQL Transformation and SQL Transformation to Target instance.</span><span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span><br />
<span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif;">5. Go the Workflow Manager and Create a workflow for the same.</span></span><br />
<br />
<span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif;">6. Create a session for the above mapping.</span></span><br />
<span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif;">7. Edit the session and go to Mapping tab, to pass source file details.</span></span></div>
<div class="separator" style="clear: both; text-align: left;">
<span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif;">Validate the mapping and save it.</span></span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-t8HWef_NySw/VKJj-x3EzRI/AAAAAAAABzU/5GKbtcKuj40/s1600/17.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://2.bp.blogspot.com/-t8HWef_NySw/VKJj-x3EzRI/AAAAAAAABzU/5GKbtcKuj40/s1600/17.png" height="455" width="640" /></a></div>
<div style="text-align: left;">
<span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></span>
<span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></span>
<br />
<span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></span>
<b><span style="font-family: Verdana, sans-serif;">Note: For Sql Transformation connection details passing.</span></b><br />
<span style="font-family: Verdana, sans-serif;">1. Choose connection Type as None (In case you want to defined schema/dataname in the ddl's)</span><br />
<div class="separator" style="clear: both;">
<a href="http://1.bp.blogspot.com/-dMPoU3yp1eE/VN3DJeVXAyI/AAAAAAAAB9o/UzeuxUoM10E/s1600/sql_script_s.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-dMPoU3yp1eE/VN3DJeVXAyI/AAAAAAAAB9o/UzeuxUoM10E/s1600/sql_script_s.png" height="554" width="640" /></a></div>
<br />
<span style="font-family: Verdana, sans-serif;">2 Choose connection Type as Relation (In case you not defined any schema/database name in ddl's)</span><br />
<div class="separator" style="clear: both;">
<a href="http://4.bp.blogspot.com/-htmiYmLODxY/VN3D4CYEHpI/AAAAAAAAB9w/o1xFvnawOhY/s1600/sql_script_s1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-htmiYmLODxY/VN3D4CYEHpI/AAAAAAAAB9w/o1xFvnawOhY/s1600/sql_script_s1.png" height="554" width="640" /></a></div>
<span style="background-color: white; line-height: 20px;"></span><br />
<br />
<span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></span>
<span style="background-color: white; line-height: 20px;"><span style="font-family: Verdana, sans-serif;">Source File: The Source file contain the information of the sql script file name & file path, Connection String, DB Username, DB Password, Code Page and System Commands.</span></span></div>
<span style="background-color: white; color: #555555; font-family: Verdana, sans-serif; font-size: 12px; line-height: 20px;"><br /></span>
<br />
<div class="separator" style="background-color: white; clear: both; color: #555555; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-WtGXHacYLcg/VKJj_SudFkI/AAAAAAAABz8/H9k4qtqLf6A/s1600/18.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-left: 1em;"><img border="0" src="http://4.bp.blogspot.com/-WtGXHacYLcg/VKJj_SudFkI/AAAAAAAABz8/H9k4qtqLf6A/s1600/18.png" height="46" width="640" /></a></div>
<div>
<br /></div>
</div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com1tag:blogger.com,1999:blog-3888677960781784215.post-16320830037914177922014-12-24T18:10:00.004+05:302020-06-09T19:54:29.273+05:30SQL Transformation - Query Mode Static<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="margin: 0cm;">
<span lang="EN" style="font-size: 13px;"><span style="font-family: Verdana, sans-serif;"><b>SQL Transformation - Query Mode Static:</b></span></span></div>
<div style="margin: 0cm;">
<span lang="EN" style="font-size: 13px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">The SQL transformation processes SQL queries midstream in a pipeline. You can insert, delete, update, and retrieve rows from a database. You can pass the database connection information to the SQL transformation as input data at run time. The transformation processes external SQL scripts or SQL queries that you create in an SQL editor. The SQL transformation processes the query and returns rows and database errors.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin: 0cm;">
<br /></div>
<div style="margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">For example, you might need to create database tables before adding new transactions. You can create an SQL transformation to create the tables in a workflow. The SQL transformation returns database errors in an output port. You can configure another workflow to run if the SQL transformation returns no errors.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin: 0cm;">
<br /></div>
<div style="margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">When you create an SQL transformation, you configure the following options:</span></div>
<div style="margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div style="margin: 0cm;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"></span><br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><b><span lang="EN-US">Query Mode:<o:p></o:p></span></b></span></div>
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US">When an SQL transformation runs in query mode, it
executes an SQL query that you define in the transformation. You pass strings
or parameters to the query from the transformation input ports to change the
query statement or the query data. </span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US">When we configure the SQL transformation to run in
query mode, we create an active transformation. The transformation can return
multiple rows for each input row.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US">Create queries in the SQL transformation SQL Editor:</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US">To create a
query, type the query statement in the SQL Editor main window. The SQL Editor
provides a list of the transformation ports that you can reference in the
query. You can double-click a port name to add it as a query parameter.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US">When we create a query, the SQL Editor validates the
port names in the query. It also verifies that the ports you use for string
substitution are string datatypes. The SQL Editor does not validate the syntax
of the SQL query.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US">You can create the following types of SQL queries in
the SQL transformation:</span></div>
<div class="MsoListParagraphCxSpFirst" style="margin-bottom: 0.0001pt; text-indent: -18pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><span lang="EN-US"><b>Static SQL query: </b>The query
statement does not change, but you can use query parameters to change the data.
The Integration Service prepares the query once and runs the query for all
input rows.</span></div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; text-indent: -18pt;">
<!--[if !supportLists]--><span lang="EN-US" style="font-family: Symbol; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><span lang="EN-US"><b>Dynamic SQL query:</b> You can
change the query statements and the data. The Integration Service prepares a
query for each input row.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US">When we create a static query, the Integration Service
prepares the SQL procedure once and executes it for each row. When you create a
dynamic query, the Integration Service prepares the SQL for each input row. We
can optimize performance by creating static queries.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b>Sample Mapping:</b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1. Create or Import the source and target definition into Mapping Designer workspace as show below.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-6DWheALNjxE/VK-Y6pfHr2I/AAAAAAAAB40/KCHBftjjgbk/s1600/1.png" imageanchor="1" style="font-size: 10pt; margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-6DWheALNjxE/VK-Y6pfHr2I/AAAAAAAAB40/KCHBftjjgbk/s1600/1.png" /></a></div>
<br />
2. Add SQL Transformation to the mapping.<br />
Mode: Query Mode<br />DB Type: Oracle (target database)<br />Database Connection: Static Connection<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-fhlPRwQswWk/VK-Y6twOg1I/AAAAAAAAB4w/V_eWnvK2o7Q/s1600/2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-fhlPRwQswWk/VK-Y6twOg1I/AAAAAAAAB4w/V_eWnvK2o7Q/s1600/2.png" height="391" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
3. <span style="font-size: 10pt;">Select 'SQL Transformation' edit it and go to tab: SQL Settings</span></div>
<div class="separator" style="clear: both;">
check the below highlighted information as your selection or not?</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-8FY0-MWFTh0/VK-Y6igBkPI/AAAAAAAAB4s/TKaY4bT_X2g/s1600/3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-8FY0-MWFTh0/VK-Y6igBkPI/AAAAAAAAB4s/TKaY4bT_X2g/s1600/3.png" height="322" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
4. Drag the required ports/columns to the SQL transformation as show below</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-pnCUpRHCBKg/VK-as0ARJdI/AAAAAAAAB5o/njELZLs4zXE/s1600/8.png" imageanchor="1" style="clear: left; display: inline !important; font-size: 10pt; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://2.bp.blogspot.com/-pnCUpRHCBKg/VK-as0ARJdI/AAAAAAAAB5o/njELZLs4zXE/s1600/8.png" height="311" width="400" /></a></div>
<br />
Note:<br />
i) By default Native Type is blank, so we need to select appropriate datatypes which is required for SQL Transformation to perform DDL option here as show in below snap shot.<br />
ii) Un-check ports which you don't want as output ports (as here we are trying to insert data using SQL Transformation and not passing any values to other transformation)<br />
iii) It will prepare sql statement for each row passes through it.<br />
<br />
<a href="http://3.bp.blogspot.com/-uBR3x_CQIvg/VK-Y7m0-s6I/AAAAAAAAB44/QTPK8Hh-0-8/s1600/4.png" imageanchor="1" style="clear: left; display: inline !important; font-size: 10pt; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-uBR3x_CQIvg/VK-Y7m0-s6I/AAAAAAAAB44/QTPK8Hh-0-8/s1600/4.png" height="292" width="400" /></a><br />
SQL Query: Prepare the insert statement as above using table name in which you need to insert/delete/update the data by click the down arrow at the right side.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-xx2jM5Tfo64/VK-Y73na2jI/AAAAAAAAB5Y/jtY5rSgUJv4/s1600/5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-xx2jM5Tfo64/VK-Y73na2jI/AAAAAAAAB5Y/jtY5rSgUJv4/s1600/5.png" height="263" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
5. To avoid creating blank in target file (optional). Add the below logic.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-wazgw2dg4jU/VK-Y8GCgUtI/AAAAAAAAB5E/In4IXeZ4zPw/s1600/6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-wazgw2dg4jU/VK-Y8GCgUtI/AAAAAAAAB5E/In4IXeZ4zPw/s1600/6.png" height="290" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
6. Drag or mapping required columns/ports to the target instance.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
7. To the passes the relation connection go the Workflow --> Session --> Mapping tab.</div>
<div class="separator" style="clear: both; text-align: left;">
Pass the relation connection details to source (in case relation db) and Sql Transformation as show below.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-aU_lVvBf9PA/VK-Y8v_8WeI/AAAAAAAAB5I/ooLVodjwOxw/s1600/7.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-aU_lVvBf9PA/VK-Y8v_8WeI/AAAAAAAAB5I/ooLVodjwOxw/s1600/7.png" height="463" width="640" /></a></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
</span></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com0tag:blogger.com,1999:blog-3888677960781784215.post-37998718949539256102014-12-24T18:10:00.003+05:302020-06-09T19:54:29.314+05:30SQL Transformation - Query Mode Dynamic (Connection Object)<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="margin: 0cm; text-align: left;">
<span lang="EN" style="font-size: 13px;"><span style="font-family: Verdana, sans-serif;"><b>SQL Transformation - Query Mode Dynamic Connection Object:</b></span></span></div>
<div style="margin: 0cm; text-align: left;">
<span lang="EN" style="font-size: 13px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span></div>
<div style="margin: 0cm; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">The SQL transformation processes SQL queries midstream in a pipeline. You can insert, delete, update, and retrieve rows from a database. You can pass the database connection information to the SQL transformation as input data at run time. The transformation processes external SQL scripts or SQL queries that you create in an SQL editor. The SQL transformation processes the query and returns rows and database errors.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin: 0cm; text-align: left;">
<br /></div>
<div style="margin: 0cm; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">For example, you might need to create database tables before adding new transactions. You can create an SQL transformation to create the tables in a workflow. The SQL transformation returns database errors in an output port. You can configure another workflow to run if the SQL transformation returns no errors.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div style="margin: 0cm; text-align: left;">
<br /></div>
<div style="margin: 0cm; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">When you create an SQL transformation, you configure the following options:</span></div>
<div style="margin: 0cm; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<div style="margin: 0cm;">
<div style="text-align: left;">
<b style="font-family: Verdana, sans-serif; font-size: 10pt;"><span lang="EN-US">Query Mode:</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"></span></div>
<div style="text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">When an SQL transformation runs in query mode, it executes an SQL query that you define in the transformation. You pass strings or parameters to the query from the transformation input ports to change the query statement or the query data.</span><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"></span></div>
<div style="text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"></span><br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">When we configure the SQL transformation to run in query mode, we create an active transformation. The transformation can return multiple rows for each input row.</span></div>
<div style="text-align: left;">
<br />
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"></span></div>
<div style="text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">
</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><span lang="EN-US">Create queries in the SQL transformation SQL Editor:</span></span></div>
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">
</span>
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><span lang="EN-US">To create a query, type the query statement in the SQL Editor main window. The SQL Editor provides a list of the transformation ports that you can reference in the query. You can double-click a port name to add it as a query parameter.</span></span></div>
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">
</span>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><br /></span></div>
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN-US">When we create a query, the SQL Editor validates the port names in the query. It also verifies that the ports you use for string substitution are string datatypes. The SQL Editor does not validate the syntax of the SQL query.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN-US">You can create the following types of SQL queries in the SQL transformation:</span><br />
<b style="font-size: 10pt; text-indent: -18pt;">Static SQL query: </b><span style="font-size: 10pt; text-indent: -18pt;">The query statement does not change, but you can use query parameters to change the data. The Integration Service prepares the query once and runs the query for all input rows.</span><br />
<span lang="EN-US" style="font-size: 10pt; text-indent: -18pt;"><b>Dynamic SQL query:</b> You can change the query statements and the data. The Integration Service prepares a query for each input row.</span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN-US">When we create a static query, the Integration Service prepares the SQL procedure once and executes it for each row. When you create a dynamic query, the Integration Service prepares the SQL for each input row. We can optimize performance by creating static queries.</span><br />
<span lang="EN-US"><br /></span>
<br />
<div style="margin-top: 0cm;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN;"><b>Logical Database Connection: </b></span></div>
<div id="GUID-3566A065-7A20-42FF-B57A-58DA3F406BCD__P186" style="margin: 0cm;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN;"><!-- -->We can configure the SQL transformation to connect to a database with a logical database connection. A logical database connection is a connection object name that you pass to the transformation at run time. Define the relational connection object in the Workflow Manager. When you configure the transformation to use a logical database connection, the Designer creates the LogicalConnectionObject input port.<o:p></o:p></span></div>
<div id="GUID-3566A065-7A20-42FF-B57A-58DA3F406BCD__P187" style="margin: 0cm;">
<br /></div>
<div style="margin: 0cm;">
</div>
<span style="font-size: 10pt;">We can pass a logical connection for each input row. Configure the mapping to pass the connection object name to the LogicalConnectionObject port. To avoid datatype conversion errors, use a relational connection for the same database type that is configured in the transformation.</span><span lang="EN-US"></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: left;">
<span lang="EN-US"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b>Sample Mapping:</b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br />
1. Create or Import the source and target definition into Mapping Designer workspace as show below.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/--qN3hHUvjZM/VK-iEpEZhMI/AAAAAAAAB6w/lbprlbBKsW4/s1600/9.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="160" src="http://4.bp.blogspot.com/--qN3hHUvjZM/VK-iEpEZhMI/AAAAAAAAB6w/lbprlbBKsW4/s1600/9.png" width="640" /></a></div>
<br />
2. Add a expression transformation next to source qualifier and drag all the required ports from SQ.<br />
<a href="http://1.bp.blogspot.com/-Ec8FmSFSRnc/VK-iBhY0GtI/AAAAAAAAB6A/-Wg4bBnvazU/s1600/10.png" imageanchor="1" style="clear: left; font-size: 10pt; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-Ec8FmSFSRnc/VK-iBhY0GtI/AAAAAAAAB6A/-Wg4bBnvazU/s1600/10.png" /></a><br />
Add a output port LogicalConnectionObject=<pass the infa connection object name><br />
Note: Infa connection object name available at workflow manager to insert/delete/update data using SQL transformation.<br />
<br />
3. <span style="background-color: white; font-size: 10pt; line-height: 20px;">Add SQL Transformation to the mapping.</span><br />
<span style="background-color: white; font-size: 10pt; line-height: 20px;">Mode: Query Mode</span><br />
<span style="background-color: white; font-size: 10pt; line-height: 20px;">DB Type: Oracle (target database)</span><br />
<div>
<span style="background-color: white; line-height: 20px;">Database Connection: Dynamic Connection - Connection Object</span>. </div>
<a href="http://3.bp.blogspot.com/-beGe9cTekHk/VK-iBYFyedI/AAAAAAAAB54/rROGQwzyRVc/s1600/11.png" imageanchor="1" style="font-size: 10pt; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="313" src="http://3.bp.blogspot.com/-beGe9cTekHk/VK-iBYFyedI/AAAAAAAAB54/rROGQwzyRVc/s1600/11.png" width="320" /></a><br />
<br />
By default it will create 2 port LogicalConnectionObject input port and SQLError output port as below.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-CwTcF-va_lw/VK-iBjP-Q2I/AAAAAAAAB58/T-ezw6rF6ag/s1600/12.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-CwTcF-va_lw/VK-iBjP-Q2I/AAAAAAAAB58/T-ezw6rF6ag/s1600/12.png" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: left;">
Drag or map the ports required from Expression to SQL Transformation.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/--8yFZuJWnNo/VK-iCZcYj8I/AAAAAAAAB6E/kKyzGNCN710/s1600/13.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/--8yFZuJWnNo/VK-iCZcYj8I/AAAAAAAAB6E/kKyzGNCN710/s1600/13.png" width="239" /></a></div>
<br />
Go the SQL settings tab to <span style="background-color: white; font-size: 10pt; line-height: 20px;">check the below highlighted information as your selection or not?</span><br />
<a href="http://1.bp.blogspot.com/-QhICY1KJV5c/VK-iCuOPvbI/AAAAAAAAB6c/gNC_Bc2yvYM/s1600/14.png" imageanchor="1" style="clear: left; display: inline !important; font-size: 10pt; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-QhICY1KJV5c/VK-iCuOPvbI/AAAAAAAAB6c/gNC_Bc2yvYM/s1600/14.png" /></a><br />
<br />
<div class="separator" style="clear: both; text-align: left;">
Go to SQL Ports tab:</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-SDkvwCiwfmM/VK-lTs2PKfI/AAAAAAAAB7E/7wKuC30y0fI/s1600/15.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="313" src="http://4.bp.blogspot.com/-SDkvwCiwfmM/VK-lTs2PKfI/AAAAAAAAB7E/7wKuC30y0fI/s1600/15.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Note:</div>
i) By default Native Type is blank, so we need to select appropriate datatypes which is required for SQL Transformation to perform DDL option here as show in below snap shot.<br />
ii) Un-check ports which you don't want as output ports (as here we are trying to insert data using SQL Transformation and not passing any values to other transformation)<br />
iii) It will prepare sql statement for each row passes through it.<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-dB7mcpTUy2c/VK-iDEkzwTI/AAAAAAAAB6Y/b1TC9HcAjCk/s1600/16.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-dB7mcpTUy2c/VK-iDEkzwTI/AAAAAAAAB6Y/b1TC9HcAjCk/s1600/16.png" /></a></div>
<br />
SQL Query: Prepare the insert statement as above using table name in which you need to insert/delete/update the data by click the down arrow at the right side.<br />
<br />
<div class="separator" style="clear: both;">
4. Drag or mapping required columns/ports to the target instance.</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
5. <span style="font-size: 10pt;">To the passes the relation connection go the Workflow --> Session --> Mapping tab.</span></div>
<div class="separator" style="clear: both;">
Pass the relation connection details to source (in case relation db) as show below.</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-NKOE1AJeAew/VK-iEWA-IgI/AAAAAAAAB6o/OW6kldNT_tQ/s1600/17.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="450" src="http://4.bp.blogspot.com/-NKOE1AJeAew/VK-iEWA-IgI/AAAAAAAAB6o/OW6kldNT_tQ/s1600/17.png" width="640" /></a></div>
<br /></div>
</span></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com1tag:blogger.com,1999:blog-3888677960781784215.post-66519314524986937312014-12-24T18:10:00.002+05:302020-06-09T19:54:27.931+05:30SQL Transformation - Query Mode Dynamic (Full Connection Information)<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="margin-bottom: .0001pt; margin: 0cm;">
<div style="background-color: white; margin: 0cm;">
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">SQL
Transformation - Query Mode Dynamic Connection Object:</span></b><span style="font-family: Arial, sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">The SQL transformation processes SQL
queries midstream in a pipeline. You can insert, delete, update, and retrieve
rows from a database. You can pass the database connection information to the
SQL transformation as input data at run time. The transformation processes
external SQL scripts or SQL queries that you create in an SQL editor. The SQL
transformation processes the query and returns rows and database errors.</span><span style="font-family: Arial, sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">For
example, you might need to create database tables before adding new
transactions. You can create an SQL transformation to create the tables in a
workflow. The SQL transformation returns database errors in an output port. You
can configure another workflow to run if the SQL transformation returns no
errors.</span><span style="font-family: Arial, sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">When you
create an SQL transformation, you configure the following options:</span><span style="font-family: Arial, sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<b><span lang="EN-US" style="font-family: Verdana, sans-serif; font-size: 10pt;">Query Mode:</span></b><span style="font-family: Arial, sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">When an SQL transformation runs in
query mode, it executes an SQL query that you define in the transformation. You
pass strings or parameters to the query from the transformation input ports to
change the query statement or the query data.</span><span style="font-family: Arial, sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">When we configure the SQL
transformation to run in query mode, we create an active transformation. The
transformation can return multiple rows for each input row.</span><span style="font-family: Arial, sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: Verdana, sans-serif; font-size: 10pt;">Create
queries in the SQL transformation SQL Editor:</span><span style="font-family: Arial, sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: Verdana, sans-serif; font-size: 10pt;">To
create a query, type the query statement in the SQL Editor main window. The SQL
Editor provides a list of the transformation ports that you can reference in
the query. You can double-click a port name to add it as a query parameter.</span><span style="font-family: Arial, sans-serif; font-size: 9pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: Verdana, sans-serif; font-size: 10pt;">When we
create a query, the SQL Editor validates the port names in the query. It also
verifies that the ports you use for string substitution are string datatypes.
The SQL Editor does not validate the syntax of the SQL query.</span><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: Verdana, sans-serif; font-size: 10pt;">You can
create the following types of SQL queries in the SQL transformation:<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Static SQL
query: </span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">The query
statement does not change, but you can use query parameters to change the data.
The Integration Service prepares the query once and runs the query for all
input rows.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<b><span lang="EN-US" style="font-family: Verdana, sans-serif; font-size: 10pt;">Dynamic SQL query:</span></b><span lang="EN-US" style="font-family: Verdana, sans-serif; font-size: 10pt;"> You can change the query statements and the data. The Integration
Service prepares a query for each input row.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span lang="EN-US" style="font-family: Verdana, sans-serif; font-size: 10pt;">When we
create a static query, the Integration Service prepares the SQL procedure once
and executes it for each row. When you create a dynamic query, the Integration
Service prepares the SQL for each input row. We can optimize performance by
creating static queries.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Full
Database Connection Information:</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">We can
configure the SQL transformation to connect to a database with a Full Database connection
Information. A Full Database connection Information is that you pass to the
transformation at run time. When you configure the transformation to use a Full
Database Connection, the Designer creates the ConnectString, DBUser, DBPasswd, CodePage
and AdvancedOptions input port.<o:p></o:p></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><span lang="EN">We can
pass connection information for each input row. Configure the mapping to pass
the connection object name to the ConnectString, DBUser, DBPasswd, CodePage and
AdvancedOptions input port. To avoid datatype conversion errors, use a
relational connection for the same database type that is configured </span><span lang="EN">in the
transformation.<o:p></o:p></span></span></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><br /></span></div>
<div class="MsoNormal" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; line-height: normal; margin-bottom: 0.0001pt;">
<span style="font-family: Verdana, sans-serif; font-size: x-small;"><a href="https://www.blogger.com/null" name="GUID-677B58BB-F536-45CB-ABA2-7DC7BD5964D"></a><span lang="EN">The following table describes the ports that the
Designer creates when you configure an SQL transformation to connect to a
database with a full connection:<o:p></o:p></span></span></div>
<div style="line-height: 20px; text-align: left;">
<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext; mso-cellspacing: 0cm; mso-padding-alt: 3.0pt 3.0pt 3.0pt 3.0pt; mso-yfti-tbllook: 1184;">
<thead>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Port <o:p></o:p></span></b></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Required/
<o:p></o:p></span></b></div>
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Optional <o:p></o:p></span></b></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div align="center" class="MsoNormal" style="text-align: center;">
<b><span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Description
<o:p></o:p></span></b></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">ConnectString<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Required<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Contains the database name and database server
name.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">DBUser<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Required<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Name of the user with permissions to read and
write from the database.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">DBPasswd<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Required<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">DBUser password.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">CodePage<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Optional<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Code page the Integration Service uses to read
from or write to the database. Use the ISO code page name, such as ISO-8859-6.
The code page name is not case sensitive.<o:p></o:p></span></div>
</td>
</tr>
<tr>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 20.0%;" valign="top" width="20%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">AdvancedOptions<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 13.0%;" valign="top" width="13%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Optional<o:p></o:p></span></div>
</td>
<td style="border: solid windowtext 1.0pt; mso-border-alt: solid windowtext .5pt; padding: 3.0pt 3.0pt 3.0pt 3.0pt; width: 66.0%;" valign="top" width="66%"><div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: xx-small; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-IN;">Connection attributes. Pass the attributes as
name-value pairs. Delimit each attribute from another with a semicolon.
Attribute names are not case sensitive.<o:p></o:p></span></div>
</td>
</tr>
</tbody></table>
</div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
<br /></div>
<div style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 20px;">
<b style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px;">Sample Mapping:</b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;">
<div class="MsoNormal" style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px; margin-bottom: 0.0001pt;">
1. Create or Import the source and target definition into Mapping Designer workspace as show below.</div>
<div class="MsoNormal" style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px; margin-bottom: 0.0001pt;">
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-1s1XuV_gsZs/Vizj-GrpbuI/AAAAAAAACOE/ss1nwSblDP8/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-1s1XuV_gsZs/Vizj-GrpbuI/AAAAAAAACOE/ss1nwSblDP8/s1600/1.png" /></a></div>
<br />
<span style="font-size: 13.3333px;">2. Add a expression transformation next to source qualifier and drag all the required ports from SQ. And added 4 new out ports for Full Database Connection Information. </span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">OutPut Ports: </span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #555555; font-family: Verdana, sans-serif;"><span style="font-size: 13.3333px; line-height: 20px;">out_ConnectString: <database connection string></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #555555; font-family: Verdana, sans-serif;"><span style="font-size: 13.3333px; line-height: 20px;">out_DBUser: <database user id></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #555555; font-family: Verdana, sans-serif;"><span style="font-size: 13.3333px; line-height: 20px;">out_DBPasswd: <database password></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #555555; font-family: Verdana, sans-serif;"><span style="font-size: 13.3333px; line-height: 20px;">out_CodePage: <Informatica Code Page></span></span></div>
<div class="MsoNormal" style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-size: 13.3333px;"><a href="http://4.bp.blogspot.com/-SSNkz53fHhQ/Vizj-JYT39I/AAAAAAAACOI/LtNQJ0Nx4w4/s1600/2.png" imageanchor="1" style="font-size: 13.3333px; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://4.bp.blogspot.com/-SSNkz53fHhQ/Vizj-JYT39I/AAAAAAAACOI/LtNQJ0Nx4w4/s1600/2.png" /></a></span><br />
<span style="font-size: 13.3333px;"><br /></span></div>
<div class="MsoNormal" style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-size: 13.3333px;">Note: Infa connection object name available at workflow manager to insert/delete/update data using SQL transformation. The connection information should created in worflow manager.</span></div>
<div class="MsoNormal" style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px; margin-bottom: 0.0001pt;">
<span style="font-size: 13.3333px;"><br /></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">3. </span><span style="color: #555555; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 20px;">Add SQL Transformation to the mapping.</span><br />
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 20px;">Mode: Query Mode</span><br />
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 20px;">DB Type: Oracle (target database)</span><br />
<div style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
Database Connection: Dynamic Connection - Full Connection Information. </div>
<div style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
<a href="http://2.bp.blogspot.com/-iv1Q6lp7QrI/Vizj-G6gXvI/AAAAAAAACOM/Up-yaKP2o5c/s1600/3.png" imageanchor="1" style="font-size: 13.3333px; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="314" src="http://2.bp.blogspot.com/-iv1Q6lp7QrI/Vizj-G6gXvI/AAAAAAAACOM/Up-yaKP2o5c/s320/3.png" width="320" /></a></div>
<div>
<span style="color: #555555; font-family: Verdana, sans-serif;"><span style="font-size: 13.3333px; line-height: 20px;">By default it will create 6 ports ConnectString, DBUser, DBPasswd, CodePage, AdvancedOptions</span></span><span style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;"> input port and SQLError output port as below.</span></div>
<div>
<a href="http://4.bp.blogspot.com/-CM2UjvXrpLU/Vizj-8tDbWI/AAAAAAAACOQ/XaARL8l9tC8/s1600/4.png" imageanchor="1" style="font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://4.bp.blogspot.com/-CM2UjvXrpLU/Vizj-8tDbWI/AAAAAAAACOQ/XaARL8l9tC8/s1600/4.png" /></a></div>
<div>
<div class="separator" style="clear: both; color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
Drag or map the ports required from Expression to SQL Transformation.</div>
</div>
<div>
<br /></div>
<div>
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">Go the SQL settings tab to </span><span style="color: #555555; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 20px;">check the below highlighted information as your selection or not?</span></div>
<div>
<div class="separator" style="clear: both; color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
<a href="http://1.bp.blogspot.com/-VfIGGxrIvSI/Vizj_FmzlAI/AAAAAAAACOY/bl9RPSFSvsw/s1600/5.png" imageanchor="1" style="font-size: 13.3333px; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="249" src="http://1.bp.blogspot.com/-VfIGGxrIvSI/Vizj_FmzlAI/AAAAAAAACOY/bl9RPSFSvsw/s400/5.png" width="400" /></a></div>
<div class="separator" style="clear: both; color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
Go to SQL Ports tab:</div>
</div>
<div>
<a href="http://1.bp.blogspot.com/-KeLGBN3LaM0/Vizj_dpAbxI/AAAAAAAACOc/Y84PtwpYypA/s1600/6.png" imageanchor="1" style="font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-KeLGBN3LaM0/Vizj_dpAbxI/AAAAAAAACOc/Y84PtwpYypA/s1600/6.png" /></a></div>
<div>
<div class="separator" style="clear: both; color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
Note:</div>
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">i) By default Native Type is blank, so we need to select appropriate datatypes which is required for SQL Transformation to perform DDL option here as show in below snap shot.</span><br />
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">ii) Un-check ports which you don't want as output ports (as here we are trying to insert data using SQL Transformation and not passing any values to other transformation)</span><br />
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">iii) It will prepare sql statement for each row passes through it.</span></div>
<div>
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 10pt; line-height: 20px;"><br /></span></div>
<div>
<span style="color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">SQL Query: Prepare the insert statement as above using table name in which you need to insert/delete/update the data by click the down arrow at the right side.</span><br />
<a href="http://1.bp.blogspot.com/-56XQ8wv__Gs/Vizj_kisMrI/AAAAAAAACOg/scYfG9kG5UQ/s1600/7.png" imageanchor="1" style="font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-56XQ8wv__Gs/Vizj_kisMrI/AAAAAAAACOg/scYfG9kG5UQ/s1600/7.png" /></a><br />
<div class="separator" style="clear: both; color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
4. Drag or mapping required columns/ports to the target instance.</div>
<div class="separator" style="clear: both; color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
<a href="http://1.bp.blogspot.com/-1s1XuV_gsZs/Vizj-GrpbuI/AAAAAAAACOE/ss1nwSblDP8/s1600/1.png" imageanchor="1" style="font-size: 13.3333px; margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-1s1XuV_gsZs/Vizj-GrpbuI/AAAAAAAACOE/ss1nwSblDP8/s1600/1.png" /></a></div>
<div class="separator" style="clear: both; color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
5. <span style="font-size: 10pt;">To the passes the relation connection go the Workflow --> Session --> Mapping tab.</span></div>
<div class="separator" style="clear: both; color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
Pass the relation connection details to source (in case relation db) as show below.</div>
</div>
<div class="separator" style="clear: both; color: #555555; font-family: Verdana, sans-serif; font-size: 13.3333px; line-height: 20px;">
<a href="http://3.bp.blogspot.com/-y0MWS5eJLS0/VizkANtbIwI/AAAAAAAACOo/AKb_YR-7Wvo/s1600/8.png" imageanchor="1" style="font-size: 13.3333px; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-y0MWS5eJLS0/VizkANtbIwI/AAAAAAAACOo/AKb_YR-7Wvo/s1600/8.png" /></a></div>
</div>
</div>
</div>
</div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com1tag:blogger.com,1999:blog-3888677960781784215.post-31354675275920412152014-09-02T16:44:00.002+05:302020-06-09T19:54:27.972+05:30Working with Excel as Source<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="margin-top: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">Working wit<!-- --><!-- -->h <!-- --><!-- -->Microsoft <!-- --><!-- -->Excel
<!-- --><!-- -->as <!-- --><!-- -->Source<!-- --><!-- -->:<o:p></o:p></span></h2>
<h2 style="margin-top: 0in;">
<div id="GUID-60E542E0-7625-48E4-A70F-61193C965175__P467" style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">PowerCenter
treats a Microsoft Excel source as a relational database, not a flat file. Like
relational sources required the ODBC connection to import definition, the
Designer uses ODBC to import a Microsoft Excel source.</span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">Note: No need
database permissions to import Microsoft Excel sources.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">Pre-required tasks
before we import an Excel source definition need to complete:<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">1. Install the
Microsoft Excel ODBC driver on the system.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">2. Create a Microsoft Excel ODBC data source for each source file in the
ODBC Data Source. <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">3. Prepare Microsoft Excel spreadsheets by defining ranges and formatting
columns of numeric data.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
</h2>
<h2 style="margin-top: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">Defining Ranges<o:p></o:p></span></h2>
<h2 style="margin-top: 0in;">
<div id="GUID-60E542E0-7625-48E4-A70F-61193C965175__P467" style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;"><!-- --><!-- -->The Designer creates source definitions based on ranges you
define in Microsoft Excel. We can define one or more ranges in a Microsoft
Excel sheet. If you have multiple sheets, define at least one range for each
sheet. When you import sources in the Designer, each range displays as a
relational source object. <o:p></o:p></span></div>
<div id="GUID-60E542E0-7625-48E4-A70F-61193C965175__P468" style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">We must define a range in the Microsoft Excel sheets to import the Excel
source definition. <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">To define a range: <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;"><!--6-->1. Open the
Microsoft Excel file. <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">2. Highlight the
column or group of columns of data to import. <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">3. Click Insert
> Name > Define. <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">4. Enter a name for
the selected range and click OK. <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt;">5. If you have
multiple sheets, select each sheet and repeat steps </span><a href="mk:@MSITStore:D:\GEGDC\GK333876\Informatica9.5.1\clients\PowerCenterClient\client\bin\Help\en\DESIGNER.CHM::/GUID-5EC399ED-37A1-4FE0-8110-98ACECFCFC3D.html#GUID-60E542E0-7625-48E4-A70F-61193C965175__STEP471"><span style="color: black; font-family: "Verdana","sans-serif"; font-size: 10.0pt;">2</span></a><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt;"> to </span><a href="mk:@MSITStore:D:\GEGDC\GK333876\Informatica9.5.1\clients\PowerCenterClient\client\bin\Help\en\DESIGNER.CHM::/GUID-5EC399ED-37A1-4FE0-8110-98ACECFCFC3D.html#GUID-60E542E0-7625-48E4-A70F-61193C965175__STEP473"><span style="color: black; font-family: "Verdana","sans-serif"; font-size: 10.0pt;">4</span></a><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt;"> to define ranges
for each set of data. <o:p></o:p></span></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">6. Click File >
Save. <o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
</h2>
<h2 style="margin-top: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">Formatting Columns of Numeric Data<o:p></o:p></span></h2>
<h2 style="margin-top: 0in;">
<div id="GUID-A6BB71B2-7B86-44F6-84CD-0F4DA6FC5637__P477" style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;"><!-- --><!-- -->In Microsoft Excel, we can assign datatypes to columns of
data. The Microsoft Excel datatypes are ODBC datatypes. PowerCenter supports
ODBC datatypes and converts them to transformation datatypes. <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">If we do not
assign datatypes in Microsoft Excel, the Designer imports each column as
VARCHAR. If you want to perform numeric or aggregate calculations in a mapping,
assign numeric datatypes in Microsoft Excel before importing the spreadsheet. <o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">To format
columns in Microsoft Excel:<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;"><!--7-->1. Open the Microsoft Excel file.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">2. Select the columns of data that consist
of numeric data.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">3. Click Format > Cells.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">4. In the Number tab, select Number.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">5. Specify the number of decimal places.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">6. Click OK.<o:p></o:p></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">7. Click File > Save.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">Steps to Import a Microsoft Excel Source Definition</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">After we define ranges and format cells, we can import the ranged
Microsoft Excel Sheet in the Designer. Ranges display as source definitions
when you import the source.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">To import a Microsoft Excel source definition:</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">1. In the
Designer, connect to the repository --> open the folder --> the source
definition.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">2. Open the Source
Analyzer and click Sources --> Import from Database.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">3. Select Excel
Files (Microsoft Excel Driver (*.xls)) for the data source.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">4. Click the Browse
button to open the ODBC.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">5. In the User or
System DSN tabs, depending on where you created the data source, double-click
the Microsoft Excel driver.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">6. Click Select
Workbook and browse for the Microsoft Excel file, which is considered a
relational database.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">7. Click OK three
times to return to the Import Tables dialog box.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">8. Click Connect in
the Import Tables dialog box.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;"><br /></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">Note:</span></div>
</h2>
<h2 style="margin-top: 0in;">
<div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-weight: normal;"><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt;">You
do not need to enter a database user name and password. <o:p></o:p></span></span></div>
<div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-weight: normal;"><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt;">The
ranges you defined in the Microsoft Excel file appear as table names. <o:p></o:p></span></span></div>
<div style="margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-weight: normal;"><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; font-stretch: normal;">
</span></span><!--[endif]--><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt;">The
database owner is No Owner because you are not required to enter a database
user name.<o:p></o:p></span></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<br /></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">9. Select the table
you want to import.</span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">To select more than one table, hold
down the Ctrl or Shift keys to highlight multiple tables.</span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;"><br /></span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">10. Click OK.</span></div>
<div style="margin-bottom: .0001pt; margin: 0in;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt; font-weight: normal;">In the Navigator, the source
definition appears in the Sources node, under the database name.</span></div>
</h2>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com4tag:blogger.com,1999:blog-3888677960781784215.post-5312029518407145772014-09-02T16:41:00.002+05:302020-06-09T19:54:28.013+05:30Informatica Server Upgrade 9.1.0 to 9.5.0<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: left;">
Informatica PowerCenter Server Upgrade from 9.1.0 to 9.5.0 Steps:</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
1. Click on the "install" batch file. </div>
<a href="http://1.bp.blogspot.com/-lhj8oHDv0iA/VJq-UD4oAYI/AAAAAAAABuY/yKz0FDClao4/s1600/12.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-lhj8oHDv0iA/VJq-UD4oAYI/AAAAAAAABuY/yKz0FDClao4/s1600/12.jpg" /></a><br />
<br />
<br />
2. Select an option "Install or upgrade to Informatica 9.5.1 Hotfix 2".<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<a href="http://4.bp.blogspot.com/-tJ62pEuWtHM/VJq-WfA5E6I/AAAAAAAABvE/0BC-NMZ8Hl8/s1600/15.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://4.bp.blogspot.com/-tJ62pEuWtHM/VJq-WfA5E6I/AAAAAAAABvE/0BC-NMZ8Hl8/s1600/15.jpg" /></a><br />
<br />
Note: If you want to "Run the Pre-Installation (i9Pi) System Check Tool", click on check box.<br />
<br />
3. Installation will process futher<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://2.bp.blogspot.com/-3682lNgnh2E/VJq-WTuLBJI/AAAAAAAABus/6DUjKHfeWmQ/s1600/16.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://2.bp.blogspot.com/-3682lNgnh2E/VJq-WTuLBJI/AAAAAAAABus/6DUjKHfeWmQ/s1600/16.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
4. Select "Upgrade to Informatica 9.5.1 HotFix 2".</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-qPzNo880wB0/VJq-XDKjhhI/AAAAAAAABu8/wQwgH1X_0tk/s1600/17.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-qPzNo880wB0/VJq-XDKjhhI/AAAAAAAABu8/wQwgH1X_0tk/s1600/17.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
5. Verify the upgrade pre-requisites and complete the pre-upgrade tasks before you continue.</div>
<a href="http://3.bp.blogspot.com/-AgDl1yaZzJQ/VJq-XV0AfII/AAAAAAAABvA/irP8d55_4Uw/s1600/18.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-AgDl1yaZzJQ/VJq-XV0AfII/AAAAAAAABvA/irP8d55_4Uw/s1600/18.jpg" /></a><br />
<br />
6. Enter the directory of the informatica to upgrade (currently installed), in 1st box and in the 2nd box enter the directory for informatica 9.5.1 (where you want to install it)<br />
<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-3Lg_rs-d3Kk/VJq-YEmi9UI/AAAAAAAABvM/AfB3D2K2j6A/s1600/19.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-3Lg_rs-d3Kk/VJq-YEmi9UI/AAAAAAAABvM/AfB3D2K2j6A/s1600/19.jpg" /></a></div>
<br />
7. It will starts the upgrade installation process<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-i843NQWmLSc/VJq-Ynba94I/AAAAAAAABvg/BDXFSIK6f6w/s1600/20.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-i843NQWmLSc/VJq-Ynba94I/AAAAAAAABvg/BDXFSIK6f6w/s1600/20.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
8. Provide the domain information of the currently configured</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-HZA6UXrebwM/VJq-ZIQKi5I/AAAAAAAABvo/RzfHjwLLqrs/s1600/21.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-HZA6UXrebwM/VJq-ZIQKi5I/AAAAAAAABvo/RzfHjwLLqrs/s1600/21.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Note: Test the connection information of the domain.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-6BBpJlN-xeE/VJq-ZaTSymI/AAAAAAAABvk/-X2ouoh0RvM/s1600/22.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://4.bp.blogspot.com/-6BBpJlN-xeE/VJq-ZaTSymI/AAAAAAAABvk/-X2ouoh0RvM/s1600/22.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
9. Registering Plugins</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-c2ntXbz8wB8/VJq-aAnDQ_I/AAAAAAAABwA/LtKTw4J83UM/s1600/23.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-c2ntXbz8wB8/VJq-aAnDQ_I/AAAAAAAABwA/LtKTw4J83UM/s1600/23.jpg" /></a></div>
<br />
<br />
<br />
10. If you want to "Run Informatica Services" under a different user account, check the box and provide user name and password.<br />
<a href="http://3.bp.blogspot.com/-pAmNY9Itar4/VJq-aYkSKxI/AAAAAAAABv0/vB_IIeneBuw/s1600/24.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-pAmNY9Itar4/VJq-aYkSKxI/AAAAAAAABv0/vB_IIeneBuw/s1600/24.jpg" /></a><br />
<br />
11. Pinging Domain<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://4.bp.blogspot.com/-QgjVxM1bID8/VJq-abVhs_I/AAAAAAAABv4/GX2vi6YxdV0/s1600/25.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-QgjVxM1bID8/VJq-abVhs_I/AAAAAAAABv4/GX2vi6YxdV0/s1600/25.jpg" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
12. Upgrade successfully installed.</div>
<a href="http://3.bp.blogspot.com/-NNGas82iQRI/VJq-bBYRqzI/AAAAAAAABwE/ntA_xAskOz4/s1600/26.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-NNGas82iQRI/VJq-bBYRqzI/AAAAAAAABwE/ntA_xAskOz4/s1600/26.jpg" /></a><br />
<br />
Note: The above process is to upgrade the software only. To complete the upgrade process complete the below steps for repository (meta data), without update the repository you cannot connect the repository connection objects like repository manager, designer, workflow manager and workflow monitory.<br />
<br />
13. Logon into the Administrator Console and select the repository which you want to upgrade --> Properties tab.<br />
<br />
<a href="http://3.bp.blogspot.com/-NmjdGUAfI1s/VJq-bWKkFyI/AAAAAAAABwM/AOYuF74Mw54/s1600/27.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-NmjdGUAfI1s/VJq-bWKkFyI/AAAAAAAABwM/AOYuF74Mw54/s1600/27.jpg" /></a><br />
<br />
There you will the repository version difference of the before and after upgraded product.<br />
<br />
14.Click on the actions on the right hand side on the top corner.<br />
<br />
select: Repository Contents --> Update<br />
<a href="http://2.bp.blogspot.com/-a4LNsZq42xc/VJq-b6KkSXI/AAAAAAAABwc/iBTCwtJ6N38/s1600/28.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://2.bp.blogspot.com/-a4LNsZq42xc/VJq-b6KkSXI/AAAAAAAABwc/iBTCwtJ6N38/s1600/28.jpg" /></a><br />
<br />
15. Upgrading on the repository content will processed<br />
<a href="http://2.bp.blogspot.com/-Yn5RZSZC5bw/VJq-ccZ3jSI/AAAAAAAABwU/9QK7gDR0ixY/s1600/29.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://2.bp.blogspot.com/-Yn5RZSZC5bw/VJq-ccZ3jSI/AAAAAAAABwU/9QK7gDR0ixY/s1600/29.jpg" /></a><br />
<br />
16. Upgrade of repository succeeded.<br />
<br />
<a href="http://4.bp.blogspot.com/-rF5HmNO84k0/VJq-dSqU5QI/AAAAAAAABww/bSijTJ7E22w/s1600/30.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://4.bp.blogspot.com/-rF5HmNO84k0/VJq-dSqU5QI/AAAAAAAABww/bSijTJ7E22w/s1600/30.jpg" /></a><br />
<br />
18. In case of Repository Operating Mode is Exclusive then change it to Normal. Click Ok to restart Repository Service.<br />
<br />
<a href="http://2.bp.blogspot.com/-9QjYP_dHA_k/VJq-dnJavDI/AAAAAAAABwk/z5Z5m5QlHTI/s1600/31.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://2.bp.blogspot.com/-9QjYP_dHA_k/VJq-dnJavDI/AAAAAAAABwk/z5Z5m5QlHTI/s1600/31.jpg" /></a><br />
<br />
19. And at the last Change the $PMRootDir path from version 9.1.0 to 9.5.1<br />
<br />
<a href="http://3.bp.blogspot.com/-gixPOLdFAeU/VJq-eebI3HI/AAAAAAAABw0/vIIWNj5Qfhs/s1600/32.jpg" imageanchor="1" style="clear: left; display: inline !important; margin-bottom: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://3.bp.blogspot.com/-gixPOLdFAeU/VJq-eebI3HI/AAAAAAAABw0/vIIWNj5Qfhs/s1600/32.jpg" /></a><br />
<br />
Now you have successfully upgrade Informatica from 9.1.0 to 9.5.1.</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com1tag:blogger.com,1999:blog-3888677960781784215.post-10921059926037247922014-03-23T10:28:00.002+05:302020-06-09T19:54:28.053+05:30Advance topic on Mapping Parameters and Variables<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<b><span style="color: #1f497d;"><span style="font-family: Verdana, sans-serif;">Advance topic on Mapping Parameters and Variables:<o:p></o:p></span></span></b></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">The Mapping parameters and variables are used to make the
mappings more flexible/dynamic. Mapping parameters and variables represent
values in mappings and mapplets.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">If we declare mapping parameters and variables in a mapping,
we can reuse a mapping by changing the parameter and variable values of the
mapping in the session or through a parameter file. This will reduce the
overhead of creating multiple mappings when only certain values of a mapping
are different.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">When we create a parameter or variable in a mapping/mapplet,
then we need to define a value for that mapping parameter or variable in a
parameter file before you run that session.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Mapping Parameter: It represents a constant value and
retains the same value throughout the session that we define before running a
session. </span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Mapping Variable: It represents a value that can change
throughout the session based on the business logic define for the mapping
variable in the mapping. The Integration Service saves that value of a mapping
variable to the repository at the end of the each successful session run and
uses that value the next time you run the session.</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="color: red;"><span style="font-family: Verdana, sans-serif;">Note: If you don’t want to use the
saved value of the mapping variable at the end of the session. You can override
those values at the end of the session.<o:p></o:p></span></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="color: #1f497d;"><span style="font-family: Verdana, sans-serif;">Mapping Parameter declaration:<o:p></o:p></span></span></b></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Name: $$NEWVARIABLE (starts with $$)</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Type: Parameter</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Datatype: string/text/small
integer/real/ntext/nstring/integer/double/decimal/datetime</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Precision: as you required</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Scale: as you required</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Aggregation: NA</span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">IsExpVar: FALSE/TRUE.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-ZaT077njmtY/Uy5nb0JSINI/AAAAAAAABjs/_qwbmrGn42U/s1600/MPV-1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-ZaT077njmtY/Uy5nb0JSINI/AAAAAAAABjs/_qwbmrGn42U/s1600/MPV-1.png" height="135" width="400" /></a></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">What is
“IsExpVar”: IsExpVar is determines how the Integration Service will expands the
parameter in an expression string.<o:p></o:p></span></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">If true, the Integration Service
expands the parameter before parsing the expression.<o:p></o:p></span></li>
</ul>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">If false, the Integration Service
expands the parameter after parsing the expression.<o:p></o:p></span></li>
</ul>
<div class="MsoNormal">
</div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">Default is false.</span><o:p></o:p></li>
</ul>
<br />
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">Note: If you set this
field to true, you must set the parameter datatype to String, or the
Integration Service fails the session. </span></div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><br /></span></div>
<div class="MsoNormal">
<b><span style="color: #1f497d;"><span style="font-family: Verdana, sans-serif;">Mapping Variable declaration:<o:p></o:p></span></span></b></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Name: $$NEWVARIABLE (starts with $$)</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Type: Variable</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Datatype: string/text/small
integer/real/ntext/nstring/integer/double/decimal/datetime</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Precision: as you required</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Scale: as you required</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">Aggregation: Max/Min and Count for integer datatype.</span></div>
<div class="MsoNormal">
</div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">IsExpVar: FALSE/TRUE.</span></div>
<a href="http://4.bp.blogspot.com/-KNQ2oleNcKY/Uy5nb6XisrI/AAAAAAAABjo/Q8FrRXVDt34/s1600/MPV-2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-KNQ2oleNcKY/Uy5nb6XisrI/AAAAAAAABjo/Q8FrRXVDt34/s1600/MPV-2.png" height="249" width="640" /></a><br />
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Verdana, sans-serif;"><b><span style="color: #1f497d;">Aggregation: </span></b>Determines the type of
calculation you can perform with the variable.</span></div>
<div style="text-align: left;">
</div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">Set the aggregation to Max
if you want to use the mapping variable to determine a maximum value from
a group of values.</span></li>
</ul>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">Set the aggregation to Min
if you want to use the mapping variable to determine a minimum value from
a group of values.</span></li>
</ul>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">Set the aggregation to
Count if you want to use the mapping variable to count number of rows read
from source.</span></li>
</ul>
<br />
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">Note: The Integration Service saves that value of a mapping
variable to the repository at the end of the each successful session run and
uses that value the next time you run the session.</span></div>
<div class="MsoNormal" style="text-align: left;">
<br /></div>
<div style="text-align: left;">
</div>
<div class="MsoNormal" style="text-align: left;">
<span style="font-family: Verdana, sans-serif;">Here is the sample mapping for how to use mapping variables
of different types.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://1.bp.blogspot.com/-KdjDCGGXxlw/Uy5nb5O5XiI/AAAAAAAABkQ/tzV7dxTBMF8/s1600/MPV-3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://1.bp.blogspot.com/-KdjDCGGXxlw/Uy5nb5O5XiI/AAAAAAAABkQ/tzV7dxTBMF8/s1600/MPV-3.png" height="179" width="640" /></a></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">1. First Drag & Drop Source/Target definition into
mapping designer workspace.</span></div>
<div class="separator" style="clear: both;">
</div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">2. From the menu select: Mappings à Parameters and
Variables</span></div>
<a href="http://1.bp.blogspot.com/-7uWfbFAdghE/Uy5ncU-GA2I/AAAAAAAABj0/54kR6jMwAFg/s1600/MPV-4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://1.bp.blogspot.com/-7uWfbFAdghE/Uy5ncU-GA2I/AAAAAAAABj0/54kR6jMwAFg/s1600/MPV-4.png" height="170" width="400" /></a><br />
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">Added 3 ports</span></li>
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">Name them $$Max_Value, $$Min_Value
and $$Count_Value</span></li>
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">Select Type as Variable</span></li>
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">Datatype as integer</span></li>
<li class="MsoNormal"><span style="font-family: Verdana, sans-serif;">Aggregation: $$Max_Value
as Max, $$Min_Value as Min and $$Count_Value as Count</span></li>
</ul>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">3. Added an Expression Transformation in between Source
Qualifier and Target Instance.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">4. Drag all port from SQ to Expression Transformation.</span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif;">5. Select Expression and Edit it.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-PxPyqD0ETkA/Uy5nclNlv0I/AAAAAAAABkA/4AUGSXlxyTI/s1600/MPV-5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-PxPyqD0ETkA/Uy5nclNlv0I/AAAAAAAABkA/4AUGSXlxyTI/s1600/MPV-5.png" height="452" width="640" /></a></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">Added 3 output ports:</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">out_MAX_SALARY = SETMAXVARIABLE($$Max_Value,
SAL)</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">out_MIN_SALARY = SETMINVARIABLE($$Min_Value,
SAL)</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">out_Count_Variable = SETCOUNTVARIABLE($$Count_Value)</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<br /></div>
<div class="MsoNormal" style="margin-left: 0.5in; text-align: center;">
<span style="font-family: Verdana, sans-serif;">OR</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<br /></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">3 variable ports and 3 port ports:</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">var_MAX_SALARY = SETMAXVARIABLE($$Max_Value,
SAL)</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">out_MAX_SALARY = var_MAX_SALARY</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">var_MIN_SALARY = SETMINVARIABLE($$Min_Value,
SAL)</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">out_MIN_SALARY = var_MIN_SALARY</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">var_Count_Variable = SETCOUNTVARIABLE($$Count_Value)</span></div>
<div class="MsoNormal" style="margin-left: .5in;">
<span style="font-family: Verdana, sans-serif;">out_Count_Variable = var_Count_Variable</span></div>
<div class="MsoNormal">
<br /></div>
<span style="font-family: Verdana, sans-serif;">6. Map the ports from Expression to Target as below:</span><br />
<div class="separator" style="clear: both; text-align: left;">
<a href="http://3.bp.blogspot.com/-E-dE0QSZuVY/Uy5nc4WLC_I/AAAAAAAABkE/SimO2eNEWgU/s1600/MPV-6.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-E-dE0QSZuVY/Uy5nc4WLC_I/AAAAAAAABkE/SimO2eNEWgU/s1600/MPV-6.png" height="206" width="400" /></a></div>
<div class="MsoNormal">
<br /></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com1tag:blogger.com,1999:blog-3888677960781784215.post-9422476115579697522014-01-04T14:53:00.003+05:302020-06-09T19:54:28.093+05:30Parameter File<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal" style="text-align: left;">
<div class="MsoNormal">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Overview:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">A parameter file is a list of parameters and
variables and their associated values. These values are defined properties for
a service, service process, workflow, worklet, or session. The Integration
Service applies these values when you run a workflow or session that uses the
parameter file.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Note:</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> Parameters and Variables defined at mapping level
are initialized through the session at the run time.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Parameter files provide the flexibility to
changing parameter and variable values each time you run a session or workflow.
You can include information for multiple services, service processes,
workflows, worklets, and sessions in a single parameter file. You can also
create multiple parameter files and use a different file each time you run a
session or workflow.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">The Integration Service reads the parameter
file at the start of the workflow or session to determine the start values for
the parameters and variables defined in the file. You can create a parameter
file using a text editor such as WordPad or Notepad or EditPlus or Notepad ++.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">Below is the following information when you use parameter files:<o:p></o:p></span></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Types of
parameters and variables:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> You can define different
types of parameters and variables in a parameter file. These include
service variables, service process variables, workflow and worklet
variables, session parameters, and mapping parameters and variables.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Properties you
can set in parameter files: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">You can use parameters and
variables to define many properties in the Designer and Workflow Manager.
The Integration Service expands the parameter when the session runs.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Parameter file
structure: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">You
can assign a value for a parameter or variable in the parameter file by
entering the parameter or variable name and value on a single line in the
form <i>name=value</i>. Groups of parameters and variables must be
preceded by a heading that identifies the service, service process,
workflow, worklet, or session to which the parameters or variables apply.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Parameter file
location: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">You
can specify the parameter file to use for a workflow or session. You can
enter the parameter file name and directory in the workflow or session
properties or in the <i>pmcmd</i> command line for manual.<o:p></o:p></span></li>
</ul>
<div class="MsoNormal">
<b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Note:</span></b></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">Parameters can be defined in global or local section. The Parameter
defined under global can be used in any of the session defined in that
parameter file. Like database connection, database user name, database password
etc. The parameters defined under session are application for only that
particular session only. We will be see this more at below.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Parameter and Variable Types</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<br /></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">A parameter file can contain different types of
parameters and variables. When you run a session or workflow that uses a
parameter file, the Integration Service reads the parameter file and expands
the parameters and variables defined in the file.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<br /></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">We can define the following types of parameter and
variable in a parameter file:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Service
variables: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">It
defines general properties for the Integration Service such as email
addresses, log file counts, and error thresholds. <b>Example: </b>$PMSuccessEmailUser,
$PMSessionLogCount, and $PMSessionErrorThreshold. The service variable
values you define in the parameter file override the values that are set
in the Administrator tool.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Service
process variables: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Itdefines the directories for
Integration Service files for each Integration Service process. <b>Example: </b>$PMRootDir,
$PMSessionLogDir, and $PMBadFileDir, $PMSourceFileDir, $PMTargetFileDir.
The service process variable values you define in the parameter file override
the values that are set in the Administrator tool. If the Integration
Service uses operating system profiles, the operating system user
specified in the operating system profile must have access to the
directories you define for the service process variables.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Workflow
variables: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">It
evaluates task conditions and record information in a workflow. <b>Example:
</b>you can use a workflow variable in a Decision task to determine
whether the previous task ran properly. In a workflow, $<i>TaskName</i>.PrevTaskStatus
is a predefined workflow variable and $$<i>VariableName</i> is a
user-defined workflow variable.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Worklet
variables: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">It
evaluates task conditions and record information in a worklet. You can use
predefined worklet variables in a parent workflow, but you cannot use
workflow variables from the parent workflow in a worklet. In a worklet, $<i>TaskName</i>.PrevTaskStatus
is a predefined worklet variable and $$<i>VariableName</i> is a
user-defined worklet variable.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Session
parameters: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">It definesvalues that can change
from session to session, such as database connections or file names.
$PMSessionLogFile and $Param<i>Name</i> are user-defined session
parameters.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Mapping
parameters: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">It defines values that remain
constant throughout a session, such as state sales tax rates. When
declared in a mapping or mapplet, $$<i>ParameterName</i> is a
user-defined mapping parameter.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Mapping
variables: </span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">It
defines values that can change during a session. The Integration Service
saves the value of a mapping variable to the repository at the end of each
successful session run and uses that value the next time you run the
session. When declared in a mapping or mapplet, $$<i>VariableName</i> is
a mapping variable.<o:p></o:p></span></li>
</ul>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">We cannot define the
following types of variables in a parameter file:</span></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">$Source and $Target connection variables: </span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Define
the database location for a relational source, relational target, lookup table,
or stored procedure.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Email variable: </span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Define
session information in an email message such as the number of rows loaded, the
session completion time, and read and write statistics.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Local variables:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> Temporarily
store data in variable ports in Aggregator, Expression, and Rank
transformations.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Built-in variables: </span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Variables
that return run-time or system information, such as Integration Service name or
system date.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Transaction control variables:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> Define
conditions to commit or rollback transactions during the processing of database
rows.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">ABAP program variables:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> Represent
SAP structures, fields in SAP structures, or values in the ABAP program.<o:p></o:p></span></div>
</li>
</ul>
<ul style="margin-top: 0in;" type="disc">
</ul>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Parameter File Structure</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">A parameter file contains a list of parameters and
variables with assigned values. You group parameters and variables in different
sections of the parameter file. Each section is preceded by a heading that
identifies the Integration Service, Integration Service process, workflow,
worklet, or session to which you want to define parameters or variables. You
define parameters and variables directly below the heading, entering each
parameter or variable on a new line. You can list parameters and variables in
any order within a section.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<br /></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Enter the parameter or variable definition in the form <i>name</i>=<i>value</i>.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<br /></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Example, the following lines assign a value to InputFile,
OutputFile</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">$InputFileName=sample_source.txt<o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$OutputFileName=sample_target.txt</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">The Integration Service interprets all characters between
the beginning of the line and the first equals sign as the parameter name and
all characters between the first equals sign and the end of the line as the
parameter value. Therefore, if you enter a space between the parameter name and
the equals sign, the Integration Service interprets the space as part of the
parameter name. If a line contains multiple equals signs, the Integration
Service interprets all equals signs after the first one as part of the
parameter value.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Warning:</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> The Integration Service uses the period character
(.) to qualify folder, workflow, and session names when you run a workflow with
a parameter file. If the folder name contains a period (.), the Integration
Service cannot qualify the names properly and fails the workflow.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Parameter File Sections</span></b><b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">We can define parameters and variables in any
section in the parameter file. If you define a service or service process
variable in a workflow, worklet, or session section, the variable applies to
the service process that runs the task. Similarly, if you define a workflow
variable in a session section, the value of the workflow variable applies only
when the session runs.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">The following table describes the parameter
file headings that define each section in the parameter file and the scope of
the parameters and variables that you define in each section:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Sample Parameter File:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">[Global]<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">The global parameter and variable can be used any of the session,
worklet or workflow mentioned in that parameter file without repeating them
again and again.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">[<folder name>.</span><b><span style="background: yellow; color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">WF:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><workflowname>.</span><b><span style="background: yellow; color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">WT:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><workletname>.</span><b><span style="background: yellow; color: red; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">ST:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><session
name>]<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Note: [] will defined the entry for the
respective job details like</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Folder Name=you project folder</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">WF:</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> is
to identify the workflow name followed by wokflowname</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">WT:</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> is
to identify the worklet name followed by workletname</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">ST:</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> is
to identify the session name followed by sessionname</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Below example for session details of the
workflow in particular folder</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">[<folder name>.WF:<workflowname>.ST:<session
name>]<o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Below example for session in a particular
folder.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">[<folder name>.<session name>]<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">Below example is global session which can be in
worklet/workflow/folder in that particular repository.<o:p></o:p></span></div>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">[<session name>]<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Example:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">[Global]</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$$SourceSystem=’Hyderabad’</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$$ETLUSER=’gk1’</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$$LOADTYPE=’Adhoc’</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$DBConnection_Oracle=Scott</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">[Practice.WF:wf_s_m_employee_table2file.ST:s_m_employee_table2file]</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$$LastRunDate=12/31/2013 01:12:11</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$$Departments=(10,20)</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$$Region=’INDIA’</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Note: </span></b><span lang="EN" style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">$ is defined session variable, $$ mapping
variable/parameters and $$$ are pre-defined (default) variable like
$$$SessStartTime</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">The variable defined under global can be
used in any of the workflow mentioned in that same parameter file.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Comments</span></b><b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">You can include comments in parameter files.
The Integration Service ignores lines that are not valid headings and do not
contain an equals sign character (=). The following lines are examples of
parameter file comments:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">---------------------------------------</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Created 10/11/12 by xyz.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">*** Update the parameters below this line when you run this workflow on
Integration Service Int_01. ***</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">; This is a valid comment because this line contains no equals sign.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Null Values</span></b><b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></b></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">You can assign null values to parameters and
variables in the parameter file. When you assign null values to parameters and
variables, the Integration Service obtains the value from the following places,
depending on the parameter or variable type:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Service and
service process variables:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> The Integration Service uses
the value set in the Administrator tool.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Workflow and
worklet variables:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> The Integration Service uses
the value saved in the repository (if the variable is persistent), the
user-specified default value, or the datatype default value.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Session
parameters:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> Session
parameters do not have default values. If the Integration Service cannot
find a value for a session parameter, it may fail the session, take an
empty string as the default value, or fail to expand the parameter at run
time. For example, the Integration Service fails a session where the
session parameter $DBConnection<i>Name</i> is not defined.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Mapping
parameters and variables:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> The Integration Service uses
the value saved in the repository (mapping variables only), the configured
initial value, or the datatype default value.<o:p></o:p></span></li>
</ul>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">To assign a null value, set the parameter or variable value to
“<null>” or leave the value blank. For example, the following lines
assign null values to service process variables $PMBadFileDir and $PMCacheDir:</span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$PMBadFileDir=<null> </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$PMCacheDir=</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span lang="EN" style="color: #336699; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Where to Use Parameters and Variables</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">We can use parameters and variables to assign values to
properties in the Designer and Workflow Manager and to override some service
and service process properties.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Example:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal"><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">We
can use a parameter to specify the Source/Target/Lookupfile name with
folder path.<o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">We
can use a parameter to specify the relation Source/Target/Lookup table
name and schema name.<o:p></o:p></span></li>
</ol>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">If the property is a SQL statement or command, we can either use
parameters and variables within the statement or command, or we can enter a
parameter or variable in the input field for the property, and set the
parameter or variable to the entire statement or command in the parameter file.</span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<br /></div>
<div class="MsoNormal">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Example: We want to use a parameter or
variable in a relational target override. We can enter a parameter or variable
within the UPDATE statement of a relational target override and define the
parameter or variable below the appropriate heading in the parameter file. Or,
to define the UPDATE statement in a parameter file, complete the following
steps:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<ol start="1" style="margin-top: 0in;" type="1">
<li class="MsoNormal"><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">In
the Designer, edit the target instance, enter session parameter
$ParamMyOverride in the Update Override field, and save the mapping.<o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">In
the Workflow Manager, configure the workflow or session to use a parameter
file.<o:p></o:p></span></li>
<li class="MsoNormal"><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Set
$ParamMyOverride to the SQL UPDATE statement below the appropriate heading
in the parameter file.<o:p></o:p></span></li>
</ol>
<div class="MsoNormal">
<span style="font-family: Verdana, sans-serif; font-size: 10pt;">We can also use a parameter
file to override service and service process properties defined in the
Administrator tool.</span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<br /></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">Example:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">We can override the session log directory,
$PMSessionLogDir. To do this, configure the workflow or session to use a
parameter file and set $PMSessionLogDir to the new file path in the parameter
file.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<br /></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<div class="MsoNormal" style="vertical-align: baseline;">
<span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">We can specify parameters and variables for the following
PowerCenter objects:</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
<b><span style="font-family: Verdana, sans-serif; font-size: 10pt;">Sources:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"> You
can use parameters and variables in input fields related to sources.<o:p></o:p></span></div>
<div class="MsoNormal" style="vertical-align: baseline;">
</div>
<ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Targets:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> You can
use parameters and variables in input fields related to targets.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Transformations:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> You can
use parameters and variables in input fields related to transformations.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Tasks:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> You can
use parameters and variables in input fields related to tasks in the
Workflow Manager.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Sessions:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> You can
use parameters and variables in input fields related to Session tasks.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Workflows:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> You can
use parameters and variables in input fields related to workflows.<o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Connections:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> You can
use parameters and variables in input fields related to connection
objects. <o:p></o:p></span></li>
<li class="MsoNormal"><b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Data profiling
objects:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> You
can use parameters and variables in input fields related to data
profiling.<o:p></o:p></span></li>
</ul>
<div>
<div class="MsoNormal" style="vertical-align: baseline;">
<b><span style="color: blue; font-family: "Verdana","sans-serif"; font-size: 10.0pt; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Some of the important
session parameters:</span></b><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$PMSessionLogFile</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> is defines the name of the session log between
session runs.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$InputFileName </span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">is defines a source file name and the parameter name
using the appropriate prefix.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$LookupFileName</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> is defines a lookup file name and the parameter
name using the appropriate prefix.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$OutputFileNames</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> is defines a target file name and the parameter
name using the appropriate prefix.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$BadFileName</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> is defines a reject file name and the parameter
name using the appropriate prefix. </span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$DBConnectionName</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> is defines a relational database connection for a
source, target, lookup, or stored procedure and Name the parameter using the
appropriate prefix.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$ParamName</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> is defines any other session property. For example,
you can use this parameter to define a table owner name, table name prefix, FTP
file or directory name, lookup cache file name prefix, or email address. You
can use this parameter to define source, lookup, target, and reject file names,
but not the session log file name or database connections and the parameter
name using the appropriate prefix.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10pt;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$PMFolderName</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> will return the folder name.</span><span style="font-family: Verdana, sans-serif; font-size: 10pt;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
</div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -.25in;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt;">
</span></span><!--[endif]--><b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;">$PMWorkflowName</span></b><span lang="EN" style="font-family: Verdana, sans-serif; font-size: 10pt;"> will return the workflow name.</span><span style="font-family: "Verdana","sans-serif"; font-size: 10.0pt;"><o:p></o:p></span></div>
</div>
</div>
<ul style="margin-top: 0in;" type="disc">
</ul>
</div>
<ul style="text-align: left;">
</ul>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com9tag:blogger.com,1999:blog-3888677960781784215.post-73057196330146069062013-09-30T20:54:00.001+05:302020-06-09T19:54:28.138+05:30Constraint Based Loading<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Constraint-Based Loading is used to load </span><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN;">the corresponding transformed row first to the primary key table, then to any foreign key tables.<o:p></o:p></span><br />
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">In the Workflow Manager, you can specify constraint-based loading for a session. When you select this option, the Integration Service orders the target load on a row-by-row basis. For every row generated by an active source, the Integration Service loads the corresponding transformed row first to the primary key table, then to any foreign key tables. Constraint-based loading depends on the following requirements:<o:p></o:p></span></div>
<ul style="text-align: left;">
<li><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Active source.</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Related target tables must have the same active source.<o:p></o:p></span></li>
<li><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Key relationships.</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> Target tables must have key relationships.<o:p></o:p></span></li>
<li><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Target connection groups.</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> Targets must be in one target connection group.<o:p></o:p></span></li>
<li><b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Treat rows as insert.</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"> Use this option when you insert into the target. You cannot use updates with constraint-based loading.<o:p></o:p></span></li>
</ul>
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-outline-level: 3;">
<b><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Active Source<o:p></o:p></span></b></div>
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">When target tables receive rows from different active sources, the Integration Service reverts to normal loading for those tables, but loads all other targets in the session using constraint-based loading when possible. For example, a mapping contains three distinct pipelines. The first two contain a source, source qualifier, and target. Since these two targets receive data from different active sources, the Integration Service reverts to normal loading for both targets. The third pipeline contains a source, Normalizer, and two targets. Since these two targets share a single active source (the Normalizer), the Integration Service performs constraint-based loading: loading the primary key table first, then the foreign key table.<o:p></o:p></span><br />
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-outline-level: 3;">
<b><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Key Relationships<o:p></o:p></span></b></div>
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">When target tables have no key relationships, the Integration Service does not perform constraint-based loading. Similarly, when target tables have circular key relationships, the Integration Service reverts to a normal load. For example, you have one target containing a primary key and a foreign key related to the primary key in a second target. The second target also contains a foreign key that references the primary key in the first target. The Integration Service cannot enforce constraint-based loading for these tables. It reverts to a normal load.<o:p></o:p></span><br />
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Target Connection Groups<o:p></o:p></span></b></div>
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">The Integration Service enforces constraint-based loading for targets in the same target connection group. If you want to specify constraint-based loading for multiple targets that receive data from the same active source, you must verify the tables are in the same target connection group. If the tables with the primary key-foreign key relationship are in different target connection groups, the Integration Service cannot enforce constraint-based loading when you run the workflow. <o:p></o:p></span><br />
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">To verify that all targets are in the same target connection group, complete the following tasks:<o:p></o:p></span></div>
<ul style="text-align: left;">
<li><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Verify all targets are in the same target load order group and receive data from the same active source.<o:p></o:p></span></li>
<li><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Use the default partition properties and do not add partitions or partition points.<o:p></o:p></span></li>
<li><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Define the same target type for all targets in the session properties.<o:p></o:p></span></li>
<li><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Define the same database connection name for all targets in the session properties.<o:p></o:p></span></li>
<li><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Choose normal mode for the target load type for all targets in the session properties.<o:p></o:p></span></li>
</ul>
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; mso-outline-level: 3;">
<b><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Treat Rows as Insert<o:p></o:p></span></b></div>
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Use constraint-based loading when the session option Treat Source Rows As is set to Insert. You might get inconsistent data if you select a different Treat Source Rows As option and you configure the session for constraint-based loading. <o:p></o:p></span><br />
<br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;">When the mapping contains Update Strategy transformations and you need to load data to a primary key table first, split the mapping using one of the following options:</span></div>
<ul style="text-align: left;">
<li><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-fareast-font-family: "Times New Roman"; mso-fareast-language: EN-US;"><span style="font-family: Times New Roman; font-size: small;"></span></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Load primary key table in one mapping and dependent tables in another mapping. Use constraint-based loading to load the primary table.<o:p></o:p></span></li>
<li><span style="font-family: Times New Roman; font-size: small;"></span><span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Perform inserts in one mapping and updates in another mapping.<o:p></o:p></span></li>
</ul>
<span style="font-family: Times New Roman; font-size: small;"><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";"></span></span><br />
<span style="font-family: Times New Roman; font-size: small;"><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-fareast-font-family: "Times New Roman";">Constraint-based loading does not affect the target load ordering of the mapping. Target load ordering defines the order the Integration Service reads the sources in each target load order group in the mapping. A target load order group is a collection of source qualifiers, transformations, and targets linked together in a mapping. Constraint-based loading establishes the order in which the Integration Service loads individual targets within a set of targets receiving data from a single source qualifier. </span></span><br />
<span style="font-family: Times New Roman; font-size: small;"><span style="font-family: Verdana; font-size: x-small;"></span></span><br />
<span style="font-family: Times New Roman; font-size: small;"><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-size: 13.5pt;"><strong>Example<o:p></o:p></strong></span></span><br />
<span style="font-family: Times New Roman; font-size: small;">
</span><br />
<span style="font-family: Times New Roman; font-size: small;"><div style="text-align: left;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-size: 8.5pt;">The following mapping is configured to perform constraint-based loading:<o:p></o:p></span></div>
<div style="text-align: left;">
<a href="http://4.bp.blogspot.com/-7v7wx-4IPWY/UkmOxE7hyXI/AAAAAAAABhY/0Halz4frYIo/s1600/cbl.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-7v7wx-4IPWY/UkmOxE7hyXI/AAAAAAAABhY/0Halz4frYIo/s1600/cbl.jpg" /></a></div>
<div style="text-align: left;">
</div>
<div style="text-align: left;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: "Times New Roman";">In the first pipeline, target T_1 has a primary key, T_2 and T_3 contain foreign keys referencing the T1 primary key. T_3 has a primary key that T_4 references as a foreign key.</span><br />
<span style="font-family: Verdana; font-size: x-small;"></span> </div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: left;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: "Times New Roman";">Since these tables receive records from a single active source, SQ_A, the Integration Service loads rows to the target in the following order: <o:p></o:p></span></div>
<div style="text-align: left;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">1. T_1 <o:p></o:p></span></div>
<div style="text-align: left;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">2. T_2 and T_3 (in no particular order)<o:p></o:p></span></div>
<div style="text-align: left;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">3. T_4</span><br />
<span style="font-family: Verdana; font-size: x-small;"></span><br />
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: "Times New Roman";">The Integration Service loads T_1 first because it has no foreign key dependencies and contains a primary key referenced by T_2 and T_3. The Integration Service then loads T_2 and T_3, but since T_2 and T_3 have no dependencies, they are not loaded in any particular order. The Integration Service loads T_4 last, because it has a foreign key that references a primary key in T_3.</span><br />
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"></span></b><br />
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Sample Example:<o:p></o:p></span></b></div>
<div style="text-align: left;">
<span style="font-family: "Verdana","sans-serif";">I have an employer file with employee and department data. Where the Department table is primary table and the Employee table is child table. So, I need to load data 1<span style="font-size: small;"><sup>st</sup> in Department table and then <span style="font-family: "Verdana","sans-serif"; line-height: 115%; mso-ansi-language: EN-US; mso-bidi-font-family: "Times New Roman"; mso-bidi-language: AR-SA; mso-bidi-theme-font: minor-bidi; mso-fareast-font-family: Calibri; mso-fareast-language: EN-US; mso-fareast-theme-font: minor-latin;">2<sup>nd</sup></span>Employee table.</span></span><br />
</div>
<div style="text-align: left;">
<b><span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 13.5pt; mso-fareast-font-family: "Times New Roman";">Enabling Constraint-Based Loading<o:p></o:p></span></b></div>
<div style="text-align: left;">
<span lang="EN" style="font-family: "Verdana","sans-serif"; font-size: 10pt; mso-ansi-language: EN; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 8.5pt; mso-fareast-font-family: "Times New Roman";">When you enable constraint-based loading, the Integration Service orders the target load on a row-by-row basis. <o:p></o:p></span></div>
<div style="text-align: left;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">1. Select the session you have created for 'Constraint-Based Loading' and double click on it.</span></div>
<div style="text-align: left;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">2. Go the Properties tab under General Option, Select the Treat Source Rows As "Insert". </span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://4.bp.blogspot.com/-XLML3t0v-og/UkmW_AmS0xI/AAAAAAAABhw/GW1npmsqeJA/s1600/cbl2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/-XLML3t0v-og/UkmW_AmS0xI/AAAAAAAABhw/GW1npmsqeJA/s1600/cbl2.jpg" height="516" width="640" /></a></div>
<div style="text-align: left;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">3. Go to the Config Object tab. In the Advanced settings, select Constraint Based Load Ordering.</span></div>
<div style="text-align: left;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";"> <a href="http://3.bp.blogspot.com/-7ABfWZ0CPrs/UkmW88AQ9TI/AAAAAAAABho/yk9i2XHonFs/s1600/cbl3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://3.bp.blogspot.com/-7ABfWZ0CPrs/UkmW88AQ9TI/AAAAAAAABho/yk9i2XHonFs/s1600/cbl3.jpg" height="516" width="640" /></a><o:p></o:p></span></div>
<div style="text-align: left;">
<span style="font-family: "Verdana","sans-serif"; font-size: 10pt; line-height: 115%; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: "Times New Roman";">4. Click 'Apply' and 'OK'. <o:p></o:p></span></div>
<div style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: left;">
<b style="mso-bidi-font-weight: normal;"><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;">Note:</span></b><span style="font-family: "Verdana","sans-serif"; font-size: 10pt;"> In Constraint-Based Loading we cannot update data, It is only for the insert.</span></div>
</span><br />
<div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: left;">
<br /></div>
</div>
Gowthamhttp://www.blogger.com/profile/04501852298572468867noreply@blogger.com6