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

Home -> Community -> Usenet -> c.d.o.server -> CBO choose full table scan, not index

CBO choose full table scan, not index

From: lsllcm <lsllcm_at_gmail.com>
Date: Tue, 27 Nov 2007 07:03:53 -0800 (PST)
Message-ID: <0f757d15-6716-4292-909d-883ee9505dbd@d21g2000prf.googlegroups.com>


Hi All,

I have one query

SELECT * FROM GASSET_MASTER
WHERE SERV_PROV_CODE = 'TEST' AND G1_ASSET_GROUP = 'LINE' AND ROWNUM < 101
;

ROWCNT is 1071973
INDEX:
GASSET_MASTER_UIX (SERV_PROV_CODE, G1_ASSET_GROUP, G1_ASSET_TYPE) The query chooses table scan and not use index.

The following are 10053 trace output, I don't want to add hint of index, and how to make the query use index scan access path.

/oracle/admin/pftest/udump/pftest_ora_11554.trc Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production
ORACLE_HOME = /oracle/ora92
System name: Linux

Node name:      localhost.localdomain
Release:        2.6.9-5.ELsmp
Version:        #1 SMP Wed Jan 5 19:30:39 EST 2005
Machine:        i686

Instance name: pftest
Redo thread mounted by this instance: 1
Oracle process number: 15
Unix process pid: 11554, image: oracle_at_localhost.localdomain (TNS V1- V3) Thanks Received on Tue Nov 27 2007 - 09:03:53 CST

Original text of this message

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