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 Hollis, Les

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

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


<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft
-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http:
//www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[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>
<!--
/* Font Definitions */
@(protected)
  {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";}
a:link, span.MsoHyperlink
  {color:blue;
  text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
  {color:blue;
  text-decoration:underline;}
span.EmailStyle18
  {mso-style-type:personal-reply;
  font-family:Arial;
  color:navy;}
@(protected) Section1
  {size:8.5in 11.0in;
  margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
  {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Mistakes happen&#8230;..<o:p></o:p></span>
</font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>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 size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;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 size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>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:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in
0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<p class=MsoNormal><font size=2 color=blue face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:blue'>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 size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</blockquote>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><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>