Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Index not being used .... why?

Re: Index not being used .... why?

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Tue, 20 Nov 2001 12:17:18 -0800
Message-ID: <F001.003C9DEB.20011120120536@fatcity.com>

"Jamadagni, Rajendra" wrote:
>
> This is from my user .... I can't figure why Oracle is not using the index
> even with a hint. Optimizer mode is RULE. BTW the query always returns NULL
> value.
>
> I'm running a simple query. It's taking too long. Ran an explain plan on it
> and it's doing a full table scan for some reason. I've tried every data base
> thinking there was an index missing or something. I did /*+ first_rows */
> as well with no success. Any ideas ? Any suggestions would be appreciated
> !!!!!!
>
> select mso_or_independent_id
> from billing_file_summary
> where mso_or_independent_id = 0104167;
>

A good reason would be mso_or_independent_id to be declared as a VARCHAR2. Put the id between quotes.

-- 
Regards,

Stephane Faroult
Oriole Corporation
Voice:  +44  (0) 7050-696-269 
Fax:    +44  (0) 7050-696-449 
Performance Tools & Free Scripts
--------------------------------------------------------------
http://www.oriole.com, designed by Oracle DBAs for Oracle DBAs
--------------------------------------------------------------
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Nov 20 2001 - 14:17:18 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US