Links
Home
Oracle DBA Forum
Frequent Oracle Errors
TNS:could not resolve the connect identifier specified
Backtrace message unwound by exceptions
invalid identifier
PL/SQL compilation error
internal error
missing expression
table or view does not exist
end-of-file on communication channel
TNS:listener unknown in connect descriptor
insufficient privileges
PL/SQL: numeric or value error string
TNS:protocol adapter error
ORACLE not available
target host or object does not exist
invalid number
unable to allocate string bytes of shared memory
resource busy and acquire with NOWAIT specified
error occurred at recursive SQL level string
ORACLE initialization or shutdown in progress
archiver error. Connect internal only, until freed
snapshot too old
unable to extend temp segment by string in tablespace
Credential retrieval failed
missing or invalid option
invalid username/password; logon denied
unable to create INITIAL extent for segment
out of process memory when trying to allocate string bytes
shared memory realm does not exist
cannot insert NULL
TNS:unable to connect to destination
remote database not found'>ora-02019
exception encountered: core dump
inconsistent datatypes
no data found
TNS:operation timed out
PL/SQL: could not find program
existing state of packages has been discarded
maximum number of processes exceeded
error signaled in parallel query server
ORACLE instance terminated. Disconnection forced
TNS:packet writer failure
see ORA-12699
missing right parenthesis
name is already used by an existing object
cannot identify/lock data file
invalid file operation
quoted string not properly terminated
Select from dual return 3 rows !

Select from dual return 3 rows !

2005-11-08       - By Igor Neyman

Reply:     1     2     3     4     5     6     7     8     9     10     >>  

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>&nbsp;</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&#8230;.not that they SHOULD&#8230;..or WOULD&#8230;.<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>&nbsp;</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&#8230;..<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>&nbsp;</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>&nbsp;</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&#8230;.once I THINK it was because of an import&#8230;the
other &#8230;.I have
no stinkin&#8217; clue&#8230;..<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>&nbsp;</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&#8230;..fix was drop the table, recreate it and recreate the public
synonym&#8230;&#8230;this with Oracle support on the line&#8230;&#8230;<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>&nbsp;</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>&nbsp;</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> &lt;<A href="mailto:Rudy.Zung@(protected)">Rudy.Zung@(protected)</A>&gt
;
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">&nbsp;<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>