Nope. What Jared was saying is that starting with particular version of Oracle, there is no way to create second (or third,...) row in dual. I.e., under 10.1 if you issue: insert into dual values('Y');
nothing happens: you don't get an error, BUT (which is more important) no additional rows created in dual. You should really try it.
__ ____ ____ ____ ____ ____ ____
From: oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] On Behalf Of Hollis, Les Sent: Tuesday, November 08, 2005 3:53 PM 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)> 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, 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"> <META content="MSHTML 6.00.2900.2769" 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 dir=ltr align=left><SPAN class=152535920-08112005><FONT face=Arial color=#0000ff size=2>Nope.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=152535920-08112005><FONT face=Arial color=#0000ff size=2>What Jared was saying is that starting with particular version of Oracle, there is no way to create second (or third,...) row in dual.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=152535920-08112005><FONT face=Arial color=#0000ff size=2>I.e., under 10.1 if you issue:</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=152535920-08112005><FONT face=Arial color=#0000ff size=2>insert into dual values('Y');</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=152535920-08112005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV dir=ltr align=left><SPAN class=152535920-08112005><FONT face=Arial color=#0000ff size=2>nothing happens: you don't get an error, BUT (which is more important) no additional rows created in dual.</FONT></SPAN></DIV> <DIV dir=ltr align=left><SPAN class=152535920-08112005><FONT face=Arial color=#0000ff size=2>You should really try it.</FONT></SPAN></DIV><FONT face=Arial color=#0000ff size=2></FONT><BR> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> oracle-l-bounce@(protected) [mailto:oracle-l-bounce@(protected)] <B>On Behalf Of </B>Hollis, Les<BR><B>Sent:</B> Tuesday, November 08, 2005 3:53 PM<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></FONT><BR></DIV> <DIV></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>