Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> table scan vs idx scan
Hi dbas
we have a situation here. can anybody tell me
why this is happening
:
we have 2 tables with identical rows(almost) with same columns even indexed in same manner.
tab1 51000 rows
tab2 51500 rows
tab1 indexed with idx1 on col1,col2,col3 tab2 indexed with idx2 on col1,col2,col3
TAB1:
this is using index scan and taking
90 seconds to get the data
(Explain plan )
TAB2:
this is using fulltable scan and taking
18 minutes to get data.
(Explain plan)
we tried in all possible ways for tab2 ,like
analyzed objects (both idx,table (compute statistics))
changed optimizer modes and tried,
giving hints to use index ,
rebuilt of index,
after all we dropped the idx2 and recreated it.
but the case is same. still it is taking >18 minutes.
even when i provided hints it is not searching for
that
index, doing the same old full table scan.
why oracle doesn't follow hints in some cases.
and what should i do to reduce the time to fetch the data.
thnx in adv
prasad
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: prasad maganti INET: prasadm_g_at_yahoo.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-LReceived on Sat Jul 21 2001 - 10:07:34 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
![]() |
![]() |