Make sure that you do actually have 3 rows by selecting the rowid from dual. It may be that you're seing some weird results from a view or synonyms.
Dougie -- --Original Message-- -- From: Hollis, Les [mailto:Les.Hollis@(protected)] Sent: Wednesday, November 09, 2005 9:53 AM To: jkstill@(protected); Rudy.Zung@(protected) Cc: frank4oraclel@(protected); ORACLE-L; frank.hansen@(protected) Subject: RE: Select from dual return 3 rows !
Think what Rudy was trying to say is that it is a table and that additional rows CAN be inserted....not that they SHOULD.....or WOULD....
Mistakes happen.....
I have hit this issue twice in 13 years....once I THINK it was because of an import...the other ....I have no stinkin' clue.....
But on both, applications started going crazy due to the multiple rows returned when only one expected.....fix was drop the table, recreate it and recreate the public synonym......this with Oracle support on the line......
__ __
From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] On Behalf Of Jared Still Sent: Tuesday, November 08, 2005 2:46 PM To: Rudy.Zung@(protected) Cc: frank4oraclel@(protected); ORACLE-L; frank.hansen@(protected) Subject: Re: Select from dual return 3 rows !
On 11/8/05, Rudy Zung <Rudy.Zung@(protected) <mailto:Rudy.Zung@(protected)> > wrote:
DUAL, when you really come down to it, is really just a table into which Oracle defaults with just a single record. However, because it is just a simple table, additional records can be inserted into it, as you have just discovered.
That is version dependent.
At least as far back as 8.1.7.4 <http://8.1.7.4> , there can be only one row in sys.dual.
Try it.
-- Jared Still Certifiable Oracle DBA and Part Time Perl Evangelist
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = "urn:schemas-microsoft-com:vml" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word"><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Message</TITLE>
<META content="MSHTML 6.00.2600.0" name=GENERATOR><!--[if !mso]> <STYLE>v\:* { BEHAVIOR: url(#default#VML) } o\:* { BEHAVIOR: url(#default#VML) } w\:* { BEHAVIOR: url(#default#VML) } .shape { BEHAVIOR: url(#default#VML) } </STYLE> <![endif]--> <STYLE>@(protected) { font-family: Tahoma; } @(protected) Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline } A:visited { COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlinkFollowed { COLOR: blue; TEXT-DECORATION: underline } SPAN.EmailStyle18 { COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply } DIV.Section1 { page: Section1 } </STYLE> </HEAD> <BODY lang=EN-US vLink=blue link=blue> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=187160021-08112005>Make sure that you do actually have 3 rows by selecting the rowid from dual. It may be that you're seing some weird results from a view or synonyms.</SPAN></FONT></DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=187160021-08112005></SPAN></FONT> </DIV> <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=187160021-08112005>Dougie</SPAN></FONT></DIV> <DIV></DIV> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma size=2>-- --Original Message-- --<BR><B>From:</B> Hollis, Les [mailto:Les.Hollis@(protected)] <BR><B>Sent:</B> Wednesday, November 09, 2005 9:53 AM<BR><B>To:</B> jkstill@(protected); Rudy.Zung@(protected)<BR><B>Cc:</B> frank4oraclel@(protected); ORACLE-L; frank.hansen@(protected)<BR><B>Subject:</B> RE: Select from dual return 3 rows !<BR><BR></FONT></DIV> <DIV class=Section1> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Think what Rudy was trying to say is that it is a table and that additional rows CAN be inserted....not that they SHOULD.....or WOULD....<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Mistakes happen.....<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have hit this issue twice in 13 years....once I THINK it was because of an import...the other ....I have no stinkin' clue.....<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">But on both, applications started going crazy due to the multiple rows returned when only one expected.....fix was drop the table, recreate it and recreate the public synonym......this with Oracle support on the line......<o:p></o:p></SPAN></FONT ></P> <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p>< /SPAN></FONT></P> <DIV> <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <HR tabIndex=-1 align=center width="100%" SIZE=2> </SPAN></FONT></DIV> <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN>< /FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Jared Still<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, November 08, 2005 2:46 PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Rudy.Zung@(protected)<BR><B><SPAN style="FONT-WEIGHT: bold">Cc:</SPAN></B> frank4oraclel@(protected); ORACLE-L; frank.hansen@(protected)<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: Select from dual return 3 rows !</SPAN></FONT><o:p></o:p></P></DIV> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">On 11/8/05, <B><SPAN style="FONT-WEIGHT: bold">Rudy Zung</SPAN></B> <<A href="mailto:Rudy.Zung@(protected)">Rudy.Zung@(protected)</A>> ; wrote:<o:p></o:p></SPAN></FONT></P> <DIV> <BLOCKQUOTE style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 6pt; PADDING-BOTTOM: 0in; MARGIN-LEFT: 4.8pt; BORDER-LEFT: #cccccc 1pt solid; MARGIN-RIGHT: 0in; PADDING-TOP: 0in; BORDER-BOTTOM: medium none"> <DIV> <P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">DUAL, when you really come down to it, is really just a table into which Oracle defaults with just a single record. However, because it is just a simple table, additional records can be inserted into it, as you have just discovered.</SPAN></FONT><o:p></o:p></P></DIV> <DIV> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> <o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE ></DIV> <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><BR>That is version dependent.<BR><BR>At least as far back as <A href="http://8.1.7.4">8.1.7.4</A>, there can<BR>be only one row in sys.dual.<BR><BR>Try it.<BR><BR clear=all><BR>-- <BR>Jared Still<BR>Certifiable Oracle DBA and Part Time Perl Evangelist<o:p></o:p></SPAN></FONT></P></DIV></BODY></HTML>