Home » RDBMS Server » Performance Tuning » Index not being used in Query
Index not being used in Query [message #161569] Mon, 06 March 2006 01:39 Go to next message
samidc
Messages: 35
Registered: February 2006
Member
I have a query in which in where condition i have condition only on transaction id and books id as

select * from table_name
where trans_id = 'trans_id'
and booksid = 'bks_id';

there is an unique index on trans_id and no where any function is used in where clause of the query.
Still full tabel scan is happening. index is not getting used.

Can somebody let me know the reason and how to make index used?
Note :Index hints are not allowed.

Thanks
Re: Index not being used in Query [message #161574 is a reply to message #161569] Mon, 06 March 2006 01:54 Go to previous messageGo to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
How many rows does your table contain?
Re: Index not being used in Query [message #161577 is a reply to message #161574] Mon, 06 March 2006 02:08 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
And, are statistics current/updated?
If so, how did you collect statistics?
Previous Topic: Bulk Collect in Oracle 8i
Next Topic: ORA-024012: PLAN_TABLE not found
Goto Forum:
  


Current Time: Thu Apr 18 00:29:40 CDT 2024