Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Why the index is not used?
In as an workaround, I created a view as
create or replace force view VAC_ROAMING_POSTED_0423 as select /*+ index(a,ACRP_IDX_0423) */ * from AC_ROAMING_POSTED_0423 where SVCNO > ' '
Now it is faster but it is going for an index full scan although the plan still showing range scan. Even RBO does not work. The trace is
WAIT #1: nam='SQL*Net message to client' ela= 0 p1=675562835 p2=1 p3=0 WAIT #1: nam='SQL*Net message from client' ela= 0 p1=675562835 p2=1 p3=0 STAT #1 id=1 cnt=1 pid=0 pos=0 obj=0 op='SORT AGGREGATE ' STAT #1 id=2 cnt=141 pid=1 pos=1 obj=4899 op='INDEX FULL SCAN ' WAIT #1: nam='SQL*Net message to client' ela= 0 p1=675562835 p2=1 p3=0 WAIT #1: nam='SQL*Net message from client' ela= 0 p1=675562835 p2=1 p3=0
=====================
-- Posted via Mailgate.ORG Server - http://www.Mailgate.ORGReceived on Thu Apr 11 2002 - 09:34:45 CDT