Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Q: Optimizer question(index not used on compute stat) ?
Hi.
HTH. Michael.
In article <7tdg55$bae$1_at_nnrp1.deja.com>,
tedchyn_at_yahoo.com wrote:
> sir, I have a table with 300000 rows and index is defined on
> mid,oid,odate as primary index and table is analyzed use estimating
> statistics. oracle 8.0.4 sun solaris.
> question,
> 1. why index is not used ?
> 2. would compute statistics improve this situation?
>
> Thanks in advance
> Ted Chyn(tedchyn_at_yahoo.com)
>
> ## TABLE and Index layout
> desc batch_transactions
> Name Null? Type
> ------------------------------- -------- ----
> MID NOT NULL NUMBER(38)
> OID NOT NULL VARCHAR2(100)
> ODATE NOT NULL NUMBER(38)
> STATUS NOT NULL CHAR(1)
> BATCH_TIME NUMBER(38)
>
> SQL> select column_name,column_position from dba_ind_columns where
> index_name='BATCH_TRANSACTIONS_PK';
>
> COLUMN_NAME
>
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Tue Oct 05 1999 - 17:03:57 CDT