 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Data issue in a Oracle Table</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/data-issue-in-a-oracle-table/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/data-issue-in-a-oracle-table/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 18:27:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: ctnaveenkumar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/data-issue-in-a-oracle-table/#comment-68894</link>
		<dc:creator>ctnaveenkumar</dc:creator>
		<pubDate>Fri, 09 Oct 2009 17:36:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-68894</guid>
		<description><![CDATA[Sorry Carlosdl. The data should look like this.

COLUMN NAME 	PRIMARY_KY 	PRIRTY_NO 	CLUST_ID_SK

DATA IN SOURCE 		1 	NULL 		-99

DATA IN TARGET 		1 	102 		NULL]]></description>
		<content:encoded><![CDATA[<p>Sorry Carlosdl. The data should look like this.</p>
<p>COLUMN NAME 	PRIMARY_KY 	PRIRTY_NO 	CLUST_ID_SK</p>
<p>DATA IN SOURCE 		1 	NULL 		-99</p>
<p>DATA IN TARGET 		1 	102 		NULL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/data-issue-in-a-oracle-table/#comment-68874</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Fri, 09 Oct 2009 13:57:04 +0000</pubDate>
		<guid isPermaLink="false">#comment-68874</guid>
		<description><![CDATA[Thanks for the details.

Regarding to this:

&lt;pre&gt;COLUMN NAME 	&lt;b&gt;PRIMARY_KY &lt;/b&gt;	PRIRTY_NO 	CLUST_ID_SK
		
DATA IN SOURCE 		&lt;b&gt;1 &lt;/b&gt;	NULL 		-99

DATA IN TARGET 		&lt;b&gt;2&lt;/b&gt; 	102 		NULL&lt;/pre&gt;

If the primary key is not the same, then you are comparing two different records.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the details.</p>
<p>Regarding to this:</p>
<pre>COLUMN NAME 	<b>PRIMARY_KY </b>	PRIRTY_NO 	CLUST_ID_SK
		
DATA IN SOURCE 		<b>1 </b>	NULL 		-99

DATA IN TARGET 		<b>2</b> 	102 		NULL</pre>
<p>If the primary key is not the same, then you are comparing two different records.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ctnaveenkumar</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/data-issue-in-a-oracle-table/#comment-68864</link>
		<dc:creator>ctnaveenkumar</dc:creator>
		<pubDate>Fri, 09 Oct 2009 08:40:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-68864</guid>
		<description><![CDATA[Tool  used : I tried with SQL plus and TOAD
DB version :Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
Datatype of the column in Number

I have an SCD type 2 table RDM_ACTIVITY_FACT in oracle database which is having both Partition and Sub partition. There are 132 columns in this table. I have created a new SCD type 1 table RDM_ACTIVITY_FACT_MIG with the same partition and sub partition and this table contains 99 columns.

Now I am migrating data from SCD type 2 to SCD type 1 table partition wise.
For e g:
If SCD type 2 table has partition JAN_2003 then I am migrating as below

Insert into RDM_ACTIVITY_FACT_MIG Partition (JAN_2003)
Select Columns from RDM_ACTIVITY_FACT Partition (JAN_2003) where CURR_RECRD_FLG=’Y’

I am giving the filter CURR_RECRD_FLG=’Y’ in the Source so that only latest Record is inserted into SCD type 1 fact.

While migrating like this, I am facing issue like some data is getting missed or wrongly fetched. The same record if I fetch by the table Primary Key then I am not facing the issue.

COLUMN NAME            PRIMARY_KY         PRIRTY_NO           CLUST_ID_SK

DATA IN SOURCE            1                              NULL                        -99

DATA IN TARGET              2                              102                           NULL

I have given a scenerio above how my data looks in Source tabel and the target table.


PRIMARY_KY  --- Primary key column
PRIRTY_NO and CLUST_ID_SK are 2 columns


PRIRTY_NO is NULL data in source but while migrating, some value 102 is inserted into target table. Similarly CLUST_ID_SK is -99 in source but it inserts as a NULL in target.


When i insert these 2 records with the help of Primary key, then correct value is getting migrated]]></description>
		<content:encoded><![CDATA[<p>Tool  used : I tried with SQL plus and TOAD<br />
DB version :Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 &#8211; 64bi<br />
Datatype of the column in Number</p>
<p>I have an SCD type 2 table RDM_ACTIVITY_FACT in oracle database which is having both Partition and Sub partition. There are 132 columns in this table. I have created a new SCD type 1 table RDM_ACTIVITY_FACT_MIG with the same partition and sub partition and this table contains 99 columns.</p>
<p>Now I am migrating data from SCD type 2 to SCD type 1 table partition wise.<br />
For e g:<br />
If SCD type 2 table has partition JAN_2003 then I am migrating as below</p>
<p>Insert into RDM_ACTIVITY_FACT_MIG Partition (JAN_2003)<br />
Select Columns from RDM_ACTIVITY_FACT Partition (JAN_2003) where CURR_RECRD_FLG=’Y’</p>
<p>I am giving the filter CURR_RECRD_FLG=’Y’ in the Source so that only latest Record is inserted into SCD type 1 fact.</p>
<p>While migrating like this, I am facing issue like some data is getting missed or wrongly fetched. The same record if I fetch by the table Primary Key then I am not facing the issue.</p>
<p>COLUMN NAME            PRIMARY_KY         PRIRTY_NO           CLUST_ID_SK</p>
<p>DATA IN SOURCE            1                              NULL                        -99</p>
<p>DATA IN TARGET              2                              102                           NULL</p>
<p>I have given a scenerio above how my data looks in Source tabel and the target table.</p>
<p>PRIMARY_KY  &#8212; Primary key column<br />
PRIRTY_NO and CLUST_ID_SK are 2 columns</p>
<p>PRIRTY_NO is NULL data in source but while migrating, some value 102 is inserted into target table. Similarly CLUST_ID_SK is -99 in source but it inserts as a NULL in target.</p>
<p>When i insert these 2 records with the help of Primary key, then correct value is getting migrated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlosdl</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/data-issue-in-a-oracle-table/#comment-68809</link>
		<dc:creator>carlosdl</dc:creator>
		<pubDate>Thu, 08 Oct 2009 13:18:11 +0000</pubDate>
		<guid isPermaLink="false">#comment-68809</guid>
		<description><![CDATA[Could you please provide more details ?

What tool are you using to query the table ?  is it SQL*Plus ? Sql Developer ?  other ?
What database version are you working on ?
What is the data type of the column ?
Can you post your queries ?

Thanks,]]></description>
		<content:encoded><![CDATA[<p>Could you please provide more details ?</p>
<p>What tool are you using to query the table ?  is it SQL*Plus ? Sql Developer ?  other ?<br />
What database version are you working on ?<br />
What is the data type of the column ?<br />
Can you post your queries ?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.012 seconds using memcached
Object Caching 310/313 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 00:00:30 -->