<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Prabhu DC's DataWarehouse</title>
	<atom:link href="http://prabhudc.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://prabhudc.wordpress.com</link>
	<description>2^n bits {n-&#62;∞}</description>
	<lastBuildDate>Fri, 14 Oct 2011 01:51:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='prabhudc.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Prabhu DC's DataWarehouse</title>
		<link>http://prabhudc.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://prabhudc.wordpress.com/osd.xml" title="Prabhu DC&#039;s DataWarehouse" />
	<atom:link rel='hub' href='http://prabhudc.wordpress.com/?pushpress=hub'/>
		<item>
		<title>InfoPackage/DTP Package Size</title>
		<link>http://prabhudc.wordpress.com/2011/01/06/infopackagedtp-package-size/</link>
		<comments>http://prabhudc.wordpress.com/2011/01/06/infopackagedtp-package-size/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 05:26:41 +0000</pubDate>
		<dc:creator>Prabhu DC</dc:creator>
				<category><![CDATA[SAP BI]]></category>

		<guid isPermaLink="false">http://prabhudc.wordpress.com/?p=53</guid>
		<description><![CDATA[I learnt something new today about Package size while extracting from ECC into BI 7.0. I happened to notice that one of the datasources which executes in delta mode from ECC to BI was transferring a very high number of packages. What was strange was that, although the number of packages were high, the number [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=53&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I learnt something new today about Package size while extracting from ECC into BI 7.0.</p>
<p>I happened to notice that one of the datasources which executes in delta mode from ECC to BI was transferring a very high number of packages. What was strange was that, although the number of packages were high, the number of records that each package contained was significantly less. This aroused my curiosity!</p>
<p>I did know that BW internally allocates the package size, but I did not know the criteria on which this was being done.</p>
<p>On reading a few posts at SDN, I figured out the logic behind this golden number called Package size.</p>
<p>[Credits to original posters at SDN]</p>
<p><span style="color:#800000;"><em>Package size = MAXSIZE * 1000 / size of the transfer structure,but not more than MAXLINES.</em></span></p>
<p>I tried simulating and it worked out like a gem!</p>
<p>Read on to see the steps involved in this simulation. . .</p>
<p><span id="more-53"></span></p>
<p>For my testing I used the datasource 0FI_GL_14, which is the new GL Line Item datasource.</p>
<p>On executing an infopackage against this DataSource, I constantly received a package size of 7924!</p>
<p style="text-align:center;">﻿﻿﻿<a href="http://prabhudc.files.wordpress.com/2011/01/package_size.png"><img class="size-medium wp-image-54 aligncenter" title="Package_Size" src="http://prabhudc.files.wordpress.com/2011/01/package_size.png?w=300&#038;h=204" alt="Package Size" width="300" height="204" /></a></p>
<p>In my source system &#8211; ECC 6.0 , SBIW T-code, I have configured the MAXSIZE in kb to be at 20,000. This is done under SBIW -&gt; General Settings -&gt; Maintain Control Parameters for Data Transfer</p>
<p style="text-align:center;"><a href="http://prabhudc.files.wordpress.com/2011/01/sbiw.png"><img class="size-medium wp-image-55 aligncenter" title="SBIW" src="http://prabhudc.files.wordpress.com/2011/01/sbiw.png?w=300&#038;h=116" alt="" width="300" height="116" /></a></p>
<p>To identify the Transfer structure for a particular DS, open up the DataSource in your source system. You could use RSA6 to do this. As my test case was for the DS - 0FI_GL_14, the transfer structure is FAGLPOSBW.</p>
<p>To get the length of the transfer structure, use T-code SE11</p>
<p>Once you are in the &#8220;Display Structure&#8221; view, select Utilities-&gt;Runtime Object-&gt;Display to identify the length.</p>
<p>For my test case, this is 2524</p>
<p style="text-align:center;"><a href="http://prabhudc.files.wordpress.com/2011/01/table-length.png"><img class="size-medium wp-image-56 aligncenter" title="Table Length" src="http://prabhudc.files.wordpress.com/2011/01/table-length.png?w=300&#038;h=184" alt="" width="300" height="184" /></a></p>
<p>When the pieces are assembled. . .</p>
<p>MAXSIZE=20000</p>
<p>Size of Transfer Structure = 2524</p>
<p>Package Size = 20000*1000/2524 = <strong>7924</strong></p>
<p>Hence the theory holds good!</p>
<p>Changing the MAXSIZE to accommodate a better package size is not advisable for the shear reason that the MAXSIZE would in turn multiple systems and datasources. Hence this needs to be done cautiously.</p>
<p>If you have just one BI system, you could change the value for MAXSIZE in SBIW, at the same time limit the MAXSIZE within the InfoPackages were you do need a large package size. This can be done in an IP under Scheduler-&gt;Data Source Default Data Transfer.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prabhudc.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prabhudc.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prabhudc.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prabhudc.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prabhudc.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prabhudc.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prabhudc.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prabhudc.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prabhudc.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prabhudc.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prabhudc.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prabhudc.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prabhudc.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prabhudc.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=53&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prabhudc.wordpress.com/2011/01/06/infopackagedtp-package-size/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b464ab1272cc87768bc8dbf54658b539?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prabhudc</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2011/01/package_size.png?w=300" medium="image">
			<media:title type="html">Package_Size</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2011/01/sbiw.png?w=300" medium="image">
			<media:title type="html">SBIW</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2011/01/table-length.png?w=300" medium="image">
			<media:title type="html">Table Length</media:title>
		</media:content>
	</item>
		<item>
		<title>SAP BI Cube Zero Record Timing problem</title>
		<link>http://prabhudc.wordpress.com/2010/12/19/sap-bi-cube-zero-record-timing-problem/</link>
		<comments>http://prabhudc.wordpress.com/2010/12/19/sap-bi-cube-zero-record-timing-problem/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 04:37:22 +0000</pubDate>
		<dc:creator>Prabhu DC</dc:creator>
				<category><![CDATA[SAP BI]]></category>
		<category><![CDATA[BW zero record]]></category>
		<category><![CDATA[WO DSO]]></category>
		<category><![CDATA[write optimized DSO]]></category>

		<guid isPermaLink="false">http://prabhudc.wordpress.com/?p=51</guid>
		<description><![CDATA[This post is all about another problem that I faced in our production system. I had to do significant analysis/simulation to understand the problem. When you have a configuration as below Datastage job to post into BW (3.x datasource) Infopackage triggered is of type &#8211; Update PSA and data target in parallel, typically a write [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=51&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is all about another problem that I faced in our production system. I had to do significant analysis/simulation to understand the problem.</p>
<p>When you have a configuration as below</p>
<ol>
<li>Datastage job to post into BW (3.x datasource)</li>
<li>Infopackage triggered is of type &#8211; Update PSA and data target in parallel, typically a write optimized DSO</li>
<li>You use an external scheduling tool to trigger the datastage job</li>
<li>Have another BW chain to extract data from a DSO and post into a cube which is also triggered by an external scheduler</li>
</ol>
<p>There is a possibility that your DTP load from the DSO to the cube could post empty data.</p>
<p>The reason why this happens is that, BW takes a lot of time to actually update the data in the WO DSO. BW responds back to datastage as soon as it recieves all the data and does not really wait for the data to get saved in the DSO.</p>
<p>If your BI system is slow for any reason, the external scheduler would trigger your DTP for the cube much before the data is actually saved in the DSO. This eventually results in zero records being transferred to the cube.</p>
<p>A solution to this problem is to only post to the PSA by datastage and have a process chain to push data to the DSO and DSO to the Cube.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prabhudc.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prabhudc.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prabhudc.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prabhudc.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prabhudc.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prabhudc.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prabhudc.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prabhudc.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prabhudc.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prabhudc.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prabhudc.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prabhudc.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prabhudc.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prabhudc.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=51&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prabhudc.wordpress.com/2010/12/19/sap-bi-cube-zero-record-timing-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b464ab1272cc87768bc8dbf54658b539?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prabhudc</media:title>
		</media:content>
	</item>
		<item>
		<title>Sap  Datastage &#8211; Unable to delete variant problem</title>
		<link>http://prabhudc.wordpress.com/2010/12/19/dsunbl_del_var/</link>
		<comments>http://prabhudc.wordpress.com/2010/12/19/dsunbl_del_var/#comments</comments>
		<pubDate>Sun, 19 Dec 2010 03:17:00 +0000</pubDate>
		<dc:creator>Prabhu DC</dc:creator>
				<category><![CDATA[SAP BI]]></category>
		<category><![CDATA[Datastage]]></category>
		<category><![CDATA[delete variant]]></category>
		<category><![CDATA[SAP]]></category>

		<guid isPermaLink="false">http://prabhudc.wordpress.com/?p=22</guid>
		<description><![CDATA[It has been a while now since I have created a post. I have slowly migrated SAP&#8217;s  BI product and have been learning it. Recently we hit a major issue with datastage working with SAP.  I had to perform extensive simulation/analysis to understand the problem and come to a solution. I would like to share [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=22&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It has been a while now since I have created a post. I have slowly migrated SAP&#8217;s  BI product and have been learning it. Recently we hit a major issue with datastage working with SAP.  I had to perform extensive simulation/analysis to understand the problem and come to a solution. I would like to share the analysis with everyone (could save some precious time). . .</p>
<p><span style="color:#800000;"><span style="font-family:Calibri, sans-serif;"><span style="font-size:medium;"><span style="text-decoration:underline;"><strong>Explanation</strong></span></span></span></span></p>
<p><span style="font-family:Calibri, sans-serif;">Multiple calls are made by datastage to the function module Z_RFC_DS_SERVICE with different parameters. Accordingly different activities such as create variant, delete variant, load program etc. is done.</span></p>
<p><span style="font-family:Calibri, sans-serif;">Z_RFC_DS_SERVICE is the function module invoked remotely by datastage through the RFC.</span></p>
<p><span style="font-family:Calibri, sans-serif;">Z_RFC_DS_SERVICE invokes the function module RS_VARIANT_DELETE</span></p>
<p><span style="font-family:Calibri, sans-serif;">This function in turn invokes the form check_v_used_in_job.</span></p>
<p><span style="font-family:'Arial Monospaced for SAP', sans-serif;font-size:xx-small;">perform check_v_used_in_job using rsvar-report rsvar-variant.</span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m2061f1541.gif"><img class="aligncenter size-full wp-image-29" title="Variant Debugged_html_m2061f154" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m2061f1541.gif" alt="" width="471" height="63" /></a></p>
<p><span style="font-family:'Arial Monospaced for SAP', sans-serif;font-size:xx-small;">This function invokes the function module BP_VARIANT_USED_IN_JOB</span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_6f4536e5.gif"><img class="aligncenter size-full wp-image-30" title="Variant Debugged_html_6f4536e5" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_6f4536e5.gif" alt="" width="550" height="364" /></a></p>
<p><span style="color:#000000;"><span style="font-family:'Arial Monospaced for SAP', sans-serif;"><span style="font-size:xx-small;">Depending on the response from this function module the “unable to rename/delete variant”  error is thrown. If the number of jobs in TBTCP is not equal to the number of entries in TBTCO which has finished or aborted status, the error will be thrown.</span></span></span></p>
<p><span style="color:#000000;"><span style="font-family:'Arial Monospaced for SAP', sans-serif;"><span style="font-size:xx-small;"><span id="more-22"></span><br />
</span></span></span></p>
<p><span style="font-family:Calibri, sans-serif;">Consider the below screen-shot. These programs have been scheduled but not executed yet.</span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_4af77cf7.gif"><img class="aligncenter size-full wp-image-31" title="Variant Debugged_html_4af77cf7" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_4af77cf7.gif" alt="" width="665" height="187" /></a></p>
<p><span style="font-family:Calibri, sans-serif;">Let us consider BI_PROCESS_TRIGGER as an example. This program executes with the report name </span><span style="font-family:Calibri, sans-serif;"><strong>RSPROCESS</strong></span><span style="font-family:Calibri, sans-serif;"> and Variant name </span><span style="font-family:Calibri, sans-serif;"><strong>&amp;0000000000076.</strong></span></p>
<p><span style="font-family:Calibri, sans-serif;">Below is the entry in </span><span style="font-family:Calibri, sans-serif;"><span style="text-decoration:underline;">TBTCP</span></span><span style="font-family:Calibri, sans-serif;"> table</span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_7d4a72b3.gif"><img class="aligncenter size-full wp-image-32" title="Variant Debugged_html_7d4a72b3" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_7d4a72b3.gif" alt="" width="665" height="151" /></a></p>
<p><span style="font-family:Calibri, sans-serif;">Below is the entry in </span><span style="font-family:Calibri, sans-serif;"><span style="text-decoration:underline;">TBTCO</span></span><span style="font-family:Calibri, sans-serif;"> table</span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_6fa37f1d.gif"><img class="aligncenter size-full wp-image-33" title="Variant Debugged_html_6fa37f1d" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_6fa37f1d.gif" alt="" width="665" height="129" /></a></p>
<p><span style="font-family:Calibri, sans-serif;">Below is the part of the program BP_VARIANT_USED_IN_JOB that calculates the value for l_no_jobs and l_finish_cancel.</span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m34da5318.gif"><img class="aligncenter size-full wp-image-34" title="Variant Debugged_html_m34da5318" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m34da5318.gif" alt="" width="483" height="247" /></a></p>
<p><span style="font-family:Calibri, sans-serif;">The status field for these scheduled programs are blank in TBTCO. Hence the l_no_jobs=1 and l_finish_cancel=0 resulting in the error being thrown.</span></p>
<p><span style="color:#800000;font-family:Calibri, sans-serif;font-size:medium;"><span style="text-decoration:underline;"><strong>Simulation of variant deletion through SE38</strong></span></span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m1c6dfd5d.gif"><img class="aligncenter size-full wp-image-35" title="Variant Debugged_html_m1c6dfd5d" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m1c6dfd5d.gif" alt="" width="401" height="331" /></a></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m5a354570.gif"><img class="aligncenter size-full wp-image-36" title="Variant Debugged_html_m5a354570" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m5a354570.gif" alt="" width="436" height="373" /></a></p>
<p><span style="color:#800000;font-family:Calibri, sans-serif;font-size:medium;"><span style="text-decoration:underline;"><strong>Simulation of variant deletion through the program by which datastage is deleting.</strong></span></span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_4ab25d79.gif"><img class="aligncenter size-full wp-image-37" title="Variant Debugged_html_4ab25d79" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_4ab25d79.gif" alt="" width="413" height="265" /></a></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m7cd9f73.gif"><img class="aligncenter size-full wp-image-38" title="Variant Debugged_html_m7cd9f73" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m7cd9f73.gif" alt="" width="377" height="204" /></a></p>
<p><span style="color:#800000;"><span style="font-family:Calibri, sans-serif;"><span style="font-size:medium;"><span style="text-decoration:underline;"><strong>Simulation of values thrown  by the function module BP_VARIANT_USED_IN_JOB.</strong></span></span></span></span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_76d918ab.gif"><img class="aligncenter size-full wp-image-39" title="Variant Debugged_html_76d918ab" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_76d918ab.gif" alt="" width="567" height="255" /></a></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_3458c1c5.gif"><img class="aligncenter size-full wp-image-40" title="Variant Debugged_html_3458c1c5" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_3458c1c5.gif" alt="" width="570" height="274" /></a></p>
<p><span style="color:#800000;"><span style="font-family:Calibri, sans-serif;"><span style="font-size:medium;"><span style="text-decoration:underline;"><strong>Deletion of job schedule in SM37 and validation of table entries</strong></span></span></span></span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_128574ad1.gif"><img class="aligncenter size-full wp-image-41" title="Variant Debugged_html_128574ad" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_128574ad1.gif" alt="" width="665" height="271" /></a></p>
<p><span style="font-family:Calibri, sans-serif;">Entry has been deleted from TBTCP</span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_7316c1a3.gif"><img class="aligncenter size-full wp-image-42" title="Variant Debugged_html_7316c1a3" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_7316c1a3.gif" alt="" width="665" height="228" /></a></p>
<p><span style="font-family:Calibri, sans-serif;">Also from TBTCO</span></p>
<p><a href="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_7de9fc3.gif"><img class="aligncenter size-full wp-image-43" title="Variant Debugged_html_7de9fc3" src="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_7de9fc3.gif" alt="" width="665" height="182" /></a></p>
<p><span style="font-family:Calibri, sans-serif;">In a typical scenario following are the sequence of events when Datastage tries to create a variant in ECC and hence execute and ABAP program.</span></p>
<ol>
<li><span style="font-family:Calibri, sans-serif;">Check 	RFC connection</span></li>
<li><span style="font-family:Calibri, sans-serif;">Create 	variant through Z_RFC_DS_SERVICE</span></li>
<li><span style="font-family:Calibri, sans-serif;">Trigger 	the job through the BAPI_XBP_JOB_START_IMMEDIATELY</span></li>
<li><span style="font-family:Calibri, sans-serif;">Check 	the status of the job in constant intervals</span></li>
<li><span style="font-family:Calibri, sans-serif;">Delete 	all job related information through BAPI_XBP_JOB_DELETE</span></li>
<li><span style="font-family:Calibri, sans-serif;">Finally 	delete the variant</span></li>
</ol>
<p><span style="font-family:Calibri, sans-serif;"><span style="text-decoration:underline;"><strong>Solution</strong></span></span></p>
<p><span style="font-family:Calibri, sans-serif;">In Datastage&#8217;s </span><span style="font-family:Calibri, sans-serif;"><span style="text-decoration:underline;">abort scenario</span></span><span style="font-family:Calibri, sans-serif;"> or </span><span style="font-family:Calibri, sans-serif;"><span style="text-decoration:underline;">starting point</span></span><span style="font-family:Calibri, sans-serif;">, add a clean-up job. This job can do the following</span></p>
<ul>
<li><span style="font-family:Calibri, sans-serif;">Execute 	the FM BAPI_XBP_JOB_DELETE with the respective ABAP program name and 	variant name</span></li>
<li><span style="font-family:Calibri, sans-serif;">Execute 	the FM Z_RFC_DS_SERVICE with parameter 10 to delete the variant</span></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prabhudc.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prabhudc.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prabhudc.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prabhudc.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prabhudc.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prabhudc.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prabhudc.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prabhudc.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prabhudc.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prabhudc.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prabhudc.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prabhudc.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prabhudc.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prabhudc.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=22&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prabhudc.wordpress.com/2010/12/19/dsunbl_del_var/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b464ab1272cc87768bc8dbf54658b539?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prabhudc</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m2061f1541.gif" medium="image">
			<media:title type="html">Variant Debugged_html_m2061f154</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_6f4536e5.gif" medium="image">
			<media:title type="html">Variant Debugged_html_6f4536e5</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_4af77cf7.gif" medium="image">
			<media:title type="html">Variant Debugged_html_4af77cf7</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_7d4a72b3.gif" medium="image">
			<media:title type="html">Variant Debugged_html_7d4a72b3</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_6fa37f1d.gif" medium="image">
			<media:title type="html">Variant Debugged_html_6fa37f1d</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m34da5318.gif" medium="image">
			<media:title type="html">Variant Debugged_html_m34da5318</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m1c6dfd5d.gif" medium="image">
			<media:title type="html">Variant Debugged_html_m1c6dfd5d</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m5a354570.gif" medium="image">
			<media:title type="html">Variant Debugged_html_m5a354570</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_4ab25d79.gif" medium="image">
			<media:title type="html">Variant Debugged_html_4ab25d79</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_m7cd9f73.gif" medium="image">
			<media:title type="html">Variant Debugged_html_m7cd9f73</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_76d918ab.gif" medium="image">
			<media:title type="html">Variant Debugged_html_76d918ab</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_3458c1c5.gif" medium="image">
			<media:title type="html">Variant Debugged_html_3458c1c5</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_128574ad1.gif" medium="image">
			<media:title type="html">Variant Debugged_html_128574ad</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_7316c1a3.gif" medium="image">
			<media:title type="html">Variant Debugged_html_7316c1a3</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2010/12/variant-debugged_html_7de9fc3.gif" medium="image">
			<media:title type="html">Variant Debugged_html_7de9fc3</media:title>
		</media:content>
	</item>
		<item>
		<title>Open Source solution for Datastage</title>
		<link>http://prabhudc.wordpress.com/2010/02/19/open-source-solution-for-datastage/</link>
		<comments>http://prabhudc.wordpress.com/2010/02/19/open-source-solution-for-datastage/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 03:32:20 +0000</pubDate>
		<dc:creator>Prabhu DC</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://prabhudc.wordpress.com/?p=17</guid>
		<description><![CDATA[Ever thought of an Open Source alternative for the expensive IBM  product -Datastage. Ladies and Gentlemen http://www.talend.com/demo/index.php<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=17&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever thought of an Open Source alternative for the expensive IBM  product -Datastage. Ladies and Gentlemen <a href="http://www.talend.com/demo/index.php">http://www.talend.com/demo/index.php</a></p>
<p><a href="http://www.talend.com/demo/index.php"></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prabhudc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prabhudc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prabhudc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prabhudc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prabhudc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prabhudc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prabhudc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prabhudc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prabhudc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prabhudc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prabhudc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prabhudc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prabhudc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prabhudc.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=17&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prabhudc.wordpress.com/2010/02/19/open-source-solution-for-datastage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b464ab1272cc87768bc8dbf54658b539?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prabhudc</media:title>
		</media:content>
	</item>
		<item>
		<title>Data Mining &#124; Scores and Models</title>
		<link>http://prabhudc.wordpress.com/2008/08/27/data-mining-scores-and-models/</link>
		<comments>http://prabhudc.wordpress.com/2008/08/27/data-mining-scores-and-models/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 04:04:06 +0000</pubDate>
		<dc:creator>Prabhu DC</dc:creator>
				<category><![CDATA[1]]></category>

		<guid isPermaLink="false">http://prabhudc.wordpress.com/2008/08/27/data-mining-scores-and-models/</guid>
		<description><![CDATA[What is scoring? Scoring is a well known concept under data mining. For a newbie, Data Mining is the usage of data from a data warehouse for marketing. Data Mining involves complicate logics applied to get the maximum out of the data available with you on sales, guests, inventory etc. Coming back to our topic, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=16&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b>What is scoring?</b>
<p>Scoring is a well known concept under data mining. For a newbie, Data Mining is the usage of data from a data warehouse for marketing. Data Mining involves complicate logics applied to get the maximum out of the data available with you on sales, guests, inventory etc.
<p>Coming back to our topic, scoring is one of the methodologies under data-mining. Scoring can be applied to several dimensions such as guests, items etc.
<p>Example :
<p>Consider that you are planning to send out an offer on discount of Bakery items. Consider you being a retail giant, will have around 100 million customers. Sending offers to all of them would prove an expensive investment. Hence, you would rather prefer to send it to customers who have a history of purchasing bakery items. That is where scoring comes in. The probability that a customer will buy a bakery item again will be granted as a score to that guest. Say a score of 0 will be the least probability that he will purchase a bakery item and 1 the maximum. This directly depends on the number of times he/she has already purchased bakery items.
<p><b>What is the Scoring Process?</b>
<p align="center"><a href="http://prabhudc.files.wordpress.com/2008/08/scoring.jpg"><img style="border-right:0;border-top:0;border-left:0;border-bottom:0;" height="210" alt="scoring" src="http://prabhudc.files.wordpress.com/2008/08/scoring-thumb.jpg?w=411&#038;h=210" width="411" border="0"></a> </p>
<p>The above picture summarizes the scoring process. I shall explain in detail each of the sections.
<p><u>Segment</u>
<p>Segment is the category of data to which the scoring process is to be applied. An example would explain it well.
<p>Example:
<p>Say I decide to run the offer of discount in Bakery items to Women of the age category 30-40. This becomes the segment that forms as a candidate for the scoring process.
<p><u>Model</u>
<p>Model is the logic or rule being applied to the data to decide what score it gets. Models are usually written in an XML type of language called <b>PMML(Predictive Model Markup Language).</b> Designing a model itself is a critical and complex process. Usually a dedicated team is available for this.
<p>Example:
<p>The model decides how to interpret the data. An example of a model would be
<p>(Total amount spent on bakery Items by the guest)<b>/</b>(Total amount spent by the guest on purchase)
<p>Basically it is just the calculation that needs to be applied on the data to generate the score.
<p><u>Scoring Engine</u>
<p>The scoring engine is responsible for applying the model on the input segment of data. It could be a Procedure, Java based application etc.
<p><u>Score</u>
<p>The output of the whole scoring process is the score. The score need not be 0-1 always. It could be any kind of desirable range value.
<p><u>Campaign</u>
<p>Just having the scores does not complete the work. Now comes the work of campaigning. Once the scores have been assigned, a selection is made on the scored data to identify which need to be chosen or eliminated.
<p>Example:
<p>Once scoring is done for all women in the segment 30-40, we have a range of scores(0-1). The guests can be ordered by scores and the first 30% can be chosen for sending out the offers.
<p><u><b>Summarizing everything</b></u>
<p>A segment of data is taken from a large Data Warehouse to perform the scoring. This selection is decided usually by the Business teams of the retail firm. Usually a view or table is created for each segment as there would be several segments and several models. A model is to be applied to these segments. The model is again done usually by a dedicated modeling team. Model is the statistical analysis that needs to be done for the segment to assign the score. Once the score is generated by the scoring engine the scores are saved in a ordered format. Again as there are multiple models and segments, usually dedicated tables are created. The campaigning team runs a selection criteria on the data based on the scores and decides the audience for the discounted bakery offer.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/prabhudc.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/prabhudc.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prabhudc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prabhudc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prabhudc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prabhudc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prabhudc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prabhudc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prabhudc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prabhudc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prabhudc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prabhudc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prabhudc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prabhudc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prabhudc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prabhudc.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=16&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prabhudc.wordpress.com/2008/08/27/data-mining-scores-and-models/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b464ab1272cc87768bc8dbf54658b539?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prabhudc</media:title>
		</media:content>

		<media:content url="http://prabhudc.files.wordpress.com/2008/08/scoring-thumb.jpg" medium="image">
			<media:title type="html">scoring</media:title>
		</media:content>
	</item>
		<item>
		<title>Firing up db2 9.5 on Ubuntu Hardy Heron</title>
		<link>http://prabhudc.wordpress.com/2008/08/24/firing-up-db2-95-on-ubuntu-hardy-heron/</link>
		<comments>http://prabhudc.wordpress.com/2008/08/24/firing-up-db2-95-on-ubuntu-hardy-heron/#comments</comments>
		<pubDate>Sun, 24 Aug 2008 04:54:44 +0000</pubDate>
		<dc:creator>Prabhu DC</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://prabhudc.wordpress.com/2008/08/24/firing-up-db2-95-on-ubuntu-hardy-heron/</guid>
		<description><![CDATA[I work on IBM DB2 at office. So, I was curious to set it up at home in my new lappy. It was fun and I did it successfully. I found it quite difficult to set it up though, but after a few hick-ups I was able to make it. Even though I ran the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=10&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Cambria;">I work on IBM DB2 at office. So, I was curious to set it up at home in my new lappy. It was fun and I did it successfully.</span></p>
<p><span style="font-family:Cambria;"> </span></p>
<p><span style="font-family:Cambria;">I found it quite difficult to set it up though, but after a few hick-ups I was able to make it. Even though I ran the command line setup, the engine never started when I gave the db2start statement. After a lot of googling I found a solution ironically on a Russian website. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </span></p>
<p><span style="text-decoration:underline;"><span style="font-family:Cambria;">De-package</span></span></p>
<blockquote>
<pre><span style="font-family:Cambria;">sudo dpkg -i db2exc_9.5.0-1gutsy1_i386.deb</span></pre>
</blockquote>
<pre><span style="font-family:Cambria;"><span style="text-decoration:underline;">Set the annoying environment variable</span>
</span></pre>
<blockquote><p><span style="font-family:Cambria;">sudo echo &#8220;kernel.shmmax=1610612736&#8243; &gt;&gt;  /etc/sysctl.conf</span></p></blockquote>
<p><span style="text-decoration:underline;"><span style="font-family:Cambria;">Run the Set-up</span></span></p>
<blockquote><p><span style="font-family:Cambria;">/home/Prabhu/exp $ . ./db2_install</span></p></blockquote>
<p><span style="text-decoration:underline;"><span style="font-family:Cambria;">Start the Engine</span></span></p>
<blockquote><p><span style="font-family:Cambria;">db2start</span></p></blockquote>
<p><span style="text-decoration:underline;"><span style="font-family:Cambria;">Create the SAMPLE database</span></span></p>
<blockquote><p><span style="font-family:Cambria;">db2sampl</span></p></blockquote>
<p><span style="text-decoration:underline;"><span style="font-family:Cambria;">Refresh</span></span></p>
<blockquote><p><span style="font-family:Cambria;">db2stop</span></p></blockquote>
<blockquote><p><span style="font-family:Cambria;">db2start</span></p></blockquote>
<p><span style="text-decoration:underline;"><span style="font-family:Cambria;">Connect and Enjoy</span></span></p>
<blockquote><p><span style="font-family:Cambria;">db2 connect to sample</span></p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/prabhudc.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/prabhudc.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prabhudc.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prabhudc.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prabhudc.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prabhudc.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prabhudc.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prabhudc.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prabhudc.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prabhudc.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prabhudc.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prabhudc.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prabhudc.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prabhudc.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prabhudc.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prabhudc.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=10&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prabhudc.wordpress.com/2008/08/24/firing-up-db2-95-on-ubuntu-hardy-heron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b464ab1272cc87768bc8dbf54658b539?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prabhudc</media:title>
		</media:content>
	</item>
		<item>
		<title>ftp timeout in AIX</title>
		<link>http://prabhudc.wordpress.com/2008/08/16/ftp-timeout-in-aix/</link>
		<comments>http://prabhudc.wordpress.com/2008/08/16/ftp-timeout-in-aix/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 00:58:02 +0000</pubDate>
		<dc:creator>Prabhu DC</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://prabhudc.wordpress.com/2008/08/16/ftp-timeout-in-aix/</guid>
		<description><![CDATA[Ever wondered how you could increase the timeout of an ftp connection. The default ftp timeout limit for for an AIX OS would be 15mins. This can be easily increased. Edit the file /etc/inetd.conf file. Go to the line where ftp configuration is done. (Run a search in vi) add the following &#8220;-t &#60;time-out limit&#62;&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=7&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how you could increase the timeout of an ftp connection. The default ftp timeout limit for for an AIX OS would be 15mins. This can be easily increased.</p>
<ul>
<li>Edit the file /etc/inetd.conf file. </li>
<li>Go to the line where ftp configuration is done. (Run a search in vi)</li>
<li>add the following &#8220;-t &lt;time-out limit&gt;&#8221;</li>
<li>for further details please go to the man pages of the ftp daemon. &#8220;man ftpd&#8221;. </li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/prabhudc.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/prabhudc.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prabhudc.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prabhudc.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prabhudc.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prabhudc.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prabhudc.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prabhudc.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prabhudc.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prabhudc.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prabhudc.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prabhudc.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prabhudc.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prabhudc.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prabhudc.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prabhudc.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=7&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prabhudc.wordpress.com/2008/08/16/ftp-timeout-in-aix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b464ab1272cc87768bc8dbf54658b539?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prabhudc</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating a large table with partitions</title>
		<link>http://prabhudc.wordpress.com/2008/08/09/updating-a-large-table/</link>
		<comments>http://prabhudc.wordpress.com/2008/08/09/updating-a-large-table/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 01:21:55 +0000</pubDate>
		<dc:creator>Prabhu DC</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://prabhudc.wordpress.com/2008/08/09/updating-a-large-table/</guid>
		<description><![CDATA[I came across a situation where I had to update a very large table. It had 373 million records. A simple query could time out or you would end up with a snapshot too old error. UPDATE EMP SET EMP_LOC_C = &#8217;03&#8242; WHERE EMP_LOC = &#8216;NY&#8217; &#160; Now if this table has more than a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=5&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I came across a situation where I had to update a very large table. It had 373 million records. A simple query could time out or you would end up with a snapshot too old error.</p>
<p>UPDATE EMP</p>
<blockquote><p>SET EMP_LOC_C = &#8217;03&#8242;</p>
</blockquote>
<blockquote><p>WHERE EMP_LOC = &#8216;NY&#8217;</p>
</blockquote>
<blockquote></blockquote>
<p>&nbsp;</p>
<p>Now if this table has more than a billion records, the query might not succeed.</p>
<p>The ideal solution is to run an update partition by partition. You can get the partitions for your table by querying dba_tab_partitions.</p>
<p>&nbsp;</p>
<p>SELECT TABLE_NAME,PARTITION_NAME</p>
<p>FROM DBA_TAB_PARTITIONS </p>
<p>WHERE TABLE_NAME LIKE &#8216;EMP&#8217;</p>
<p>P_001</p>
<p>P_002</p>
<p>. . . . . </p>
<p>P_030</p>
<p>Now what you could do is to let the query run against each partitions separately.</p>
<p>UPDATE EMP PARTITION(P_001)</p>
<p>SET EMP_LOC_C = &#8217;03&#8242;</p>
<p>WHERE EMP_LOC = &#8216;NY&#8217;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Moreover if there is an index built on any of the columns you can use that as well and split the query even further.</p>
<p>UPDATE EMP PARTITION(P_001)</p>
<p>SET EMP_LOC_C = &#8217;03&#8242;</p>
<p>WHERE EMP_LOC = &#8216;NY&#8217;</p>
<p>AND EMP_I &gt; 8612751936</p>
<p>&nbsp;</p>
<p>So this way you can split and update the table w.r.t. partitions. </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/prabhudc.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/prabhudc.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prabhudc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prabhudc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prabhudc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prabhudc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prabhudc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prabhudc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prabhudc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prabhudc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prabhudc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prabhudc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prabhudc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prabhudc.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prabhudc.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prabhudc.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=5&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prabhudc.wordpress.com/2008/08/09/updating-a-large-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b464ab1272cc87768bc8dbf54658b539?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prabhudc</media:title>
		</media:content>
	</item>
		<item>
		<title>Lookup failing due to huge data volume</title>
		<link>http://prabhudc.wordpress.com/2008/08/03/lookup-failing-due-to-huge-data-volume/</link>
		<comments>http://prabhudc.wordpress.com/2008/08/03/lookup-failing-due-to-huge-data-volume/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 01:05:22 +0000</pubDate>
		<dc:creator>Prabhu DC</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://prabhudc.wordpress.com/2008/08/03/lookup-failing-due-to-huge-data-volume/</guid>
		<description><![CDATA[&#160; This is an annoying situation you would come across in a production environment. Occasionally the volume of data would surge and the lookup stage would not be able to process it. Sparse lookup stage basically fetches all the records from the driver link and the reference link and then loads it onto the RAM [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=4&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>This is an annoying situation you would come across in a production environment. Occasionally the volume of data would surge and the lookup stage would not be able to process it. </p>
<p>Sparse lookup stage basically fetches all the records from the driver link and the reference link and then loads it onto the RAM prior to performing the join. Definitely if the volume is above a certain extent the RAM would become a bottle neck. There are two ways by which this can be averted.</p>
<p>&nbsp;</p>
<p>1) Modify the lookup type to &#8220;Sparse&#8221; from &#8220;Normal&#8221;. This can be done provided the input link count is considerable less. It should be below 1000 ideally. </p>
<p>2) Another option would be replace the lookup with a join. The join stage does not load the records into the RAM and performs quite well. The obvious question would be why not always use a join stage. Lookup stage is expected to work much faster than a join stage.</p>
<p>That&#8217;s it for now. . Happy Warehousing!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/prabhudc.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/prabhudc.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/prabhudc.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/prabhudc.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/prabhudc.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/prabhudc.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/prabhudc.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/prabhudc.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/prabhudc.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/prabhudc.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/prabhudc.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/prabhudc.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/prabhudc.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/prabhudc.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/prabhudc.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/prabhudc.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=prabhudc.wordpress.com&amp;blog=4373989&amp;post=4&amp;subd=prabhudc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://prabhudc.wordpress.com/2008/08/03/lookup-failing-due-to-huge-data-volume/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b464ab1272cc87768bc8dbf54658b539?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">prabhudc</media:title>
		</media:content>
	</item>
	</channel>
</rss>
