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 Dougie McGibbon

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

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>&nbsp;</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>&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.....<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....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>&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.....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>&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>