Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from puck1183.startdedicated.com (localhost [127.0.0.1])
 by puck1183.startdedicated.com (Postfix) with ESMTP id 02CC1196057B
 for <oracle-l@orafaq.com>; Fri,  8 Aug 2014 21:31:40 +0200 (CEST)
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by puck1183.startdedicated.com (Postfix) with ESMTP
 for <oracle-l@orafaq.com>; Fri,  8 Aug 2014 21:31:39 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id CB4E02C0D0;
 Fri,  8 Aug 2014 15:31:37 -0400 (EDT)
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ZiuVAo8-KNxa; Fri,  8 Aug 2014 15:31:37 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id D34782C85C;
 Fri,  8 Aug 2014 15:30:56 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 08 Aug 2014 15:30:15 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id A02AB2C808
 for <oracle-l@freelists.org>; Fri,  8 Aug 2014 15:30:15 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 5KLEImBYHJnT for <oracle-l@freelists.org>;
 Fri,  8 Aug 2014 15:30:15 -0400 (EDT)
Received: from troll.tpk.net (mail.tpk.net [216.107.198.11])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 228472C80A
 for <oracle-l@freelists.org>; Fri,  8 Aug 2014 15:29:44 -0400 (EDT)
Received: from mwf4500 (c-50-133-134-194.hsd1.ma.comcast.net [50.133.134.194])
 by troll.tpk.net (8.14.2/8.12.11) with ESMTP id s78JThHw009624
 for <oracle-l@freelists.org>; Fri, 8 Aug 2014 15:29:44 -0400
From: "Mark W. Farnham" <mwf@rsiz.com>
To: "'ORACLE-L'" <oracle-l@freelists.org>
References: <7DCF5A73984B85409A1FB7B957E590ED8446504C@EXMB3RSC.roswellpark.org> <0BDF2A25A09ADD40908745EEFC0A0FB6021C1620@HKJUMXMB103B.zone1.scb.net> <CA+S=qd2G+pxaYy2vwow8f5wQ6OcGfOaXkoRv9kR170As=_nnpg@mail.gmail.com> <CAORjz=PhyyhCaXkEUxKQzkmA1=st4w_LLTFh=d4H0G+=9+ysjA@mail.gmail.com> <1E24812FBE5611419EFAFC488D7CCDD126EDE330@G6W2491.americas.hpqcorp.net>
In-Reply-To: <1E24812FBE5611419EFAFC488D7CCDD126EDE330@G6W2491.americas.hpqcorp.net>
Subject: RE: rowid value
Date: Fri, 8 Aug 2014 15:29:40 -0400
Message-ID: <17d701cfb33f$19d3dba0$4d7b92e0$@rsiz.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_17D8_01CFB31D.92C23BA0"
Content-Language: en-us
X-archive-position: 55869
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: mwf@rsiz.com
Precedence: normal
Reply-To: mwf@rsiz.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:mark.bobak@proquest.com>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
------=_NextPart_000_17D8_01CFB31D.92C23BA0
Content-Type: text/plain;
 charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

If someone tells me they have a duplicate rows, I think: All columns the =
same

If someone tells me they have a unique key violation I would not call =
the rows duplicates nor  assume they are without investigation.

If someone tells me they have duplicates, then I wonder (and ask).

=20

Agreed these are very different cases.

=20

Import jobs done twice with no constraint are duplicate rows.

Application duplicate control without constraints could be either.

=20

If you have PK and UKs defined, they don=E2=80=99t happen in your =
tables, and if you=E2=80=99ve got at least one, there will be no =
duplicate rows.

=20

mwf

=20

From: oracle-l-bounce@freelists.org =
[mailto:oracle-l-bounce@freelists.org] On Behalf Of Powell, Mark
Sent: Friday, August 08, 2014 2:55 PM
To: ORACLE-L
Subject: RE: rowid value

=20

Jared said, =E2=80=9CIdentifying which 'duplicate' to delete it [sic] =
not always straight forward.=E2=80=9D

=20

No it isn=E2=80=99t since the non-key columns may differ and in some =
cases you actually should determine which row to save based on the =
non-key data.  Worse is when you discover you need some data from =
multiple rows. =20

=20

=20

=20

From: oracle-l-bounce@freelists.org =
[mailto:oracle-l-bounce@freelists.org] On Behalf Of Jared Still
Sent: Friday, August 08, 2014 2:23 PM
To: kibeha@gmail.com
Cc: Hemant-K.Chitale@sc.com; Brian Zelli; ORACLE-L
Subject: Re: rowid value

=20

=20

On Wed, Aug 6, 2014 at 1:15 AM, Kim Berg Hansen <kibeha@gmail.com> =
wrote:

If the idea of deleting the "higher" ROWID is to delete the "newest" =
row, that is not at all certain. But if the rows are identical =
duplicates, that shouldn't matter ;-)


Probably this is already stated somewhere in this thread, but it bears =
repeating.

=20

Duplicate refers to PK/UK, not the row.

=20

Identifying which 'duplicate' to delete it not always straight forward.

=20





Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

Sr Oracle DBA at Pythian

Pythian Blog http://www.pythian.com/blog/author/still/
Oracle Blog: http://jkstill.blogspot.com
Home Page: http://jaredstill.com


------=_NextPart_000_17D8_01CFB31D.92C23BA0
Content-Type: text/html;
 charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 14 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.EmailStyle17
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>If someone tells me they have a duplicate rows, I think: All columns =
the same<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>If someone tells me they have a unique key violation I would not call =
the rows duplicates nor=C2=A0 assume they are without =
investigation.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>If someone tells me they have duplicates, then I wonder (and =
ask).<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Agreed these are very different cases.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Import jobs done twice with no constraint are duplicate =
rows.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Application duplicate control without constraints could be =
either.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>If you have PK and UKs defined, they don=E2=80=99t happen in your =
tables, and if you=E2=80=99ve got at least one, there will be no =
duplicate rows.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>mwf<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><div><div =
style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in =
0in 0in'><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org] =
<b>On Behalf Of </b>Powell, Mark<br><b>Sent:</b> Friday, August 08, 2014 =
2:55 PM<br><b>To:</b> ORACLE-L<br><b>Subject:</b> RE: rowid =
value<o:p></o:p></span></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Jared said, =E2=80=9CIdentifying which 'duplicate' to delete it [sic] =
not always straight forward.=E2=80=9D<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>No it isn=E2=80=99t since the non-key columns may differ and in some =
cases you actually should determine which row to save based on the =
non-key data.&nbsp; Worse is when you discover you need some data from =
multiple rows. &nbsp;<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
<a =
href=3D"mailto:oracle-l-bounce@freelists.org">oracle-l-bounce@freelists.o=
rg</a> [<a =
href=3D"mailto:oracle-l-bounce@freelists.org">mailto:oracle-l-bounce@free=
lists.org</a>] <b>On Behalf Of </b>Jared Still<br><b>Sent:</b> Friday, =
August 08, 2014 2:23 PM<br><b>To:</b> <a =
href=3D"mailto:kibeha@gmail.com">kibeha@gmail.com</a><br><b>Cc:</b> <a =
href=3D"mailto:Hemant-K.Chitale@sc.com">Hemant-K.Chitale@sc.com</a>; =
Brian Zelli; ORACLE-L<br><b>Subject:</b> Re: rowid =
value<o:p></o:p></span></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p class=3DMsoNormal>On Wed, =
Aug 6, 2014 at 1:15 AM, Kim Berg Hansen &lt;<a =
href=3D"mailto:kibeha@gmail.com" =
target=3D"_blank">kibeha@gmail.com</a>&gt; wrote:<o:p></o:p></p><p =
class=3DMsoNormal>If the idea of deleting the &quot;higher&quot; ROWID =
is to delete the &quot;newest&quot; row, that is not at all certain. But =
if the rows are identical duplicates, that shouldn't matter =
;-)<o:p></o:p></p></div><p class=3DMsoNormal><br>Probably this is =
already stated somewhere in this thread, but it bears =
repeating.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Duplicate refers to PK/UK, not the =
row.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>Identifying which 'duplicate' to delete it not always =
straight forward.<o:p></o:p></p></div><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal><br><br clear=3Dall><o:p></o:p></p><div><div><p =
class=3DMsoNormal>Jared Still<br>Certifiable Oracle DBA and Part Time =
Perl Evangelist<o:p></o:p></p><div><p class=3DMsoNormal>Sr Oracle DBA at =
Pythian<o:p></o:p></p><div><p class=3DMsoNormal>Pythian Blog&nbsp;<a =
href=3D"http://www.pythian.com/blog/author/still/" =
target=3D"_blank">http://www.pythian.com/blog/author/still/</a><br>Oracle=
 Blog: <a href=3D"http://jkstill.blogspot.com" =
target=3D"_blank">http://jkstill.blogspot.com</a><br>Home Page: <a =
href=3D"http://jaredstill.com" =
target=3D"_blank">http://jaredstill.com</a><o:p></o:p></p></div></div></d=
iv></div></div></div></div></body></html>
------=_NextPart_000_17D8_01CFB31D.92C23BA0--

--
http://www.freelists.org/webpage/oracle-l


