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: Why are my indexes being ignored?

RE: Why are my indexes being ignored?

From: Nicoll, Iain (Calanais) <iain.nicoll_at_calanais.com>
Date: Fri, 29 Jun 2001 08:45:31 -0700
Message-ID: <F001.0033DB12.20010629085104@fatcity.com>

You table doesn't have a degree > 1 does it?. I've seen examples where this caused a lot of indexes to be ignored.

-----Original Message-----
Sent: 29 June 2001 16:53
To: Multiple recipients of list ORACLE-L

I'm returning 117 rows.

Bill Carle
AT&T
Database Administrator
816-995-3922
wcarle_at_att.com

 -----Original Message-----
Sent: Friday, June 29, 2001 9:50 AM

To:     ORACLE-L_at_fatcity.com; Carle, William T (Bill), NLCIO
Subject:        Re: Why are my indexes being ignored?

"Carle, William T (Bill), NLCIO" wrote:
>
> Hi,
>
> I created an index on a table. The table has about 83,000 rows. The
> index is a simple index on one field, 35 different values of the index. I
> analyzed the table and I analyzed the index, trying it both with a
histogram
> and without a histogram. No matter how I do it, it does a full table scan.
> Any ideas why? I know I can use a hint, but it seems to me that it ought
to
> use the index.

how many rows are you returning? if i remember right, and if i don't i'm sure i'll be reminded;-), if you return more than a certain % of the table it does a full table scan even if there are indexes.

--
Bill "Shrek" Thater   Certifiable ORACLE DBA
Telergy, Inc.            thaterw_at_telergy.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You gotta program like you don't need the money,
You gotta compile like you'll never get hurt,
You gotta run like there's nobody watching,
It's gotta come from the heart if you want it to work.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"It's not a bug. It's an undocumented feature"
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Carle, William T (Bill), NLCIO
  INET: wcarle_at_att.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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Nicoll, Iain (Calanais)
  INET: iain.nicoll_at_calanais.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 Fri Jun 29 2001 - 10:45:31 CDT

Original text of this message

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