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 Jared Still

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

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.

--
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist


On 7/13/06, Gints Plivna <gints.plivna@(protected)> wrote:
>
> ...
> SQL> create index idx2 on blahh (id2);
>
> Index created.
>
> SQL> insert into blahh values (1, null);
>
> 1 row created.
>
> ...
>
> SQL> select 'x' from dual where exists (
>   2    select /*+ index_ffs (blahh idx1 idx2) */ 'z' from blahh where
>   3    (id1 = 1 and id2 is null) or (id1 is null and id2 = 1))
>   4  /
>
> no rows selected
>
>
>

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.
<br><br>-- <br>Jared Still<br>Certifiable Oracle DBA and Part Time Perl
Evangelist<br>
<br><br><div><span class="gmail_quote">On 7/13/06, <b class="gmail_sendername"
>Gints Plivna</b> &lt;<a href="mailto:gints.plivna@(protected)">gints.plivna@(protected)
.com</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;">
...<br>SQL&gt; create index idx2 on blahh (id2);<br><br>Index created.<br><br
>SQL&gt; insert into blahh values (1, null);<br><br>1 row created.<br><br>...<br
><br>SQL&gt; select 'x' from dual where exists (<br>&nbsp;&nbsp;2&nbsp;&nbsp;
&nbsp;&nbsp;select /*+ index_ffs (blahh idx1 idx2) */ 'z' from blahh where
<br>&nbsp;&nbsp;3&nbsp;&nbsp;&nbsp;&nbsp;(id1 = 1 and id2 is null) or (id1 is
null and id2 = 1))<br>&nbsp;&nbsp;4&nbsp;&nbsp;/<br><br>no rows selected<br><br
><br></blockquote></div><br>