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 rjamya

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

probably system owns a table called dual ... check that first.

Raj

On 11/8/05, Frank B Hansen <frank4oraclel@(protected)> wrote:
>
> Hi David
>  OK. Next question and some additional info:
>  It is only when connected as SYSTEM that 3 rows are returned. If I
> connect as SYS og SCOTT, only 1 row is returned.
>  A select from x$dual returns one row:
>  sys@(protected)> select * from x$dual;
> ADDR INDX INST_ID D
> -- ----- -- ---- -- -- ---- -- -
> 01B74DC8 0 1 X
>   and the question:
> How do I delete row number the second and third row from dual ?
>  Thanks,
> Frank
>
>
> *David Sharples <davidsharples@(protected)>* skrev:
>
> someone inserted 2 extra rows into dual, find them and tell them politely
> not to do it again.
> Then delete the other rows as you have a broken database right now
>
>  On 11/8/05, Frank B Hansen <frank4oraclel@(protected)> wrote:
> >
> >   No matter what I select from dual, I get 3 rows. Anyone seen this
> > behaviour ?
> >
> >
>


--
-- ---- ---- ---- ---- ---- ---- ---- ---- ---
This space is available for rent.

probably system owns a table called dual ... check that first.<br><br>Raj<br>
<br><div><span class="gmail_quote">On 11/8/05, <b class="gmail_sendername">Frank
B Hansen</b> &lt;<a href="mailto:frank4oraclel@(protected)">frank4oraclel@(protected)
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div
>Hi David</div>
<div>&nbsp;</div>
<div>OK. Next question and some additional info:</div>
<div>&nbsp;</div>
<div>It is only when connected as SYSTEM that 3 rows are returned. If I connect
as SYS og SCOTT, only 1 row is returned.</div>
<div>&nbsp;</div>
<div>A select from x$dual returns one row:</div>
<div>&nbsp;</div>
<div><a href="mailto:sys@(protected)" target="_blank" onclick="return top.js
.OpenExtLink(window,event,this)">sys@(protected)</a>&gt; select * from x$dual;</div
>
<div>ADDR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INDX&nbsp
;&nbsp;&nbsp; INST_ID D<br>-- ----- -- ---- -- -- ---- -- -<br>01B74DC8&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp; 1 X</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>and the question:</div>
<div>How do I delete row number the second and third row from dual ?</div>
<div>&nbsp;</div>
<div>Thanks,</div>
<div>Frank</div>
<div>&nbsp;</div>
<div><br><br><b><i>David Sharples &lt;<a href="mailto:davidsharples@(protected)"
target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"
>davidsharples@(protected)</a>&gt;</i></b> skrev:</div><div><span class="e" id="q
_1076f99e1c5a507f_1">

<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px;
margin-left: 5px;">
<div>someone inserted 2 extra rows into dual, find them and tell them politely
not to do it again.&nbsp; </div>
<div>Then delete the other rows as you have a broken database right now<br><br>
&nbsp;</div>
<div><span class="gmail_quote">On 11/8/05, <b class="gmail_sendername">Frank B
Hansen</b> &lt;<a href="mailto:frank4oraclel@(protected)" target="_blank" onclick=
"return top.js.OpenExtLink(window,event,this)">frank4oraclel@(protected)
</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204
); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">
<div>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px;
margin-left: 5px;">
<blockquote dir="ltr" style="border-left: 2px solid rgb(0, 0, 0); padding-right
: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div>No matter what I select from dual, I get 3 rows.&nbsp; Anyone seen this
behaviour ?</div>
<div>&nbsp;</div></blockquote></blockquote></div></blockquote></div><br><
/blockquote>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>-- ---- ---- ---
-- ---- ---- ---- ---- ---- --<br>This space is available for rent.<br>