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
Smells like oracle bug?

Smells like oracle bug?

2006-07-13       - By Niall Litchfield

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

On 7/13/06, Jared Still <jkstill@(protected)> wrote:
>
> It appears that Oracle is taking your hint quite seriously.
>
> As there is no data in idx2 due to the only value in the
> id2 column being null, Oracle is not returning any rows.
>
> Take idx2 out of the hint, and you get data.
>

a classic justification for this being a bug. You cannot (or at least
shouldn't be able to) provide a hint to an access path that gives wrong
results. Imagine if there were a hint (it would be nice) table_scan
(table_name) a writer shouldnt be able to write

select /*+ table_scan(dept) */ empno,ename
from emp;

and get a tablescan of dept to answer the query. You want to do that there
is always DBMS_ADVANCED_REWRITE! This is the same thing.






--
Niall Litchfield
Oracle DBA
http://www.orawin.info

On 7/13/06, <b class="gmail_sendername">Jared Still</b> &lt;<a href="mailto
:jkstill@(protected)">jkstill@(protected)</a>&gt; wrote:<div><span class="gmail
_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb
(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>It appears that Oracle is taking your hint quite seriously.<br><br>As
there is no data in idx2 due to the only value in the<br>id2 column being null,
Oracle is not returning any rows.<br><br>Take idx2 out of the hint, and you get
data.
</div></blockquote><div><br>a classic justification for this being a bug. You
cannot (or at least shouldn't be able to) provide a hint to an access path that
gives wrong results. Imagine if there were a hint (it would be nice)
<span style="font-family: courier new,monospace;">table_scan (table_name) <
/span>a writer shouldnt be able to write<br><span style="font-family: courier
new,monospace;"><br>select /*+ table_scan(dept) */ empno,ename<br>from emp;
<br><br></span>and get a tablescan of dept to answer the query. You want to do
that there is always <span style="font-family: courier new,monospace;">DBMS
_ADVANCED_REWRITE! </span>This is the same thing. <br><br><br></div>
<br></div><br><br clear="all"><br>-- <br>Niall Litchfield<br>Oracle DBA<br><a
href="http://www.orawin.info">http://www.orawin.info</a>