| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Index not Being Used
I'm running a query, and for some reason unknown to me, the indexes aren't being used. When I run the query, even though I am using indexes in the search criterea, the query is scanning the entire table.
The problem with the table scan is that there are over a million records in the table, and it's taking a very long time to run the query.
Does anyone know why an index wouldn't be used in a select, and more importantly, how can I tell Oracle to use the index and not scan the table. All help is appreciated.
Here is the query that I am trying to run:
SELECT CONTACT.CONTACT_ID, CONTACT.FIRST_NAME, CONTACT.LAST_NAME,
CONTACT.BUSINESS_NAME, CONTACT.PHONE, CONTACT.ADDRESS,
POSTAL_CODES.CITY, POSTAL_CODES.STATE,
POSTAL_CODES.POSTAL_CODE
Client_ID and UPPER_LAST_NAMER comprise the index, but for some reason the index is not being utilized. Thanks.
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Thu Feb 10 2000 - 00:00:00 CST
![]() |
![]() |