Database Tuning (MOSC)

MOSC Banner

Optimiser choosing Wrong Index

edited Apr 7, 2009 2:55AM in Database Tuning (MOSC) 3 commentsAnswered
Hello All,
Oracle 9i
   
       
I have a query based on three tables, and looks like it is not choosing correct index and taking
long time to execute
   
1. Here index TRA_IND_CP is chosen and the query takes a very long time.
       
EXPLAIN PLAN FOR
SELECT SIT_CORR_SIT_ID, SIT_ID
  FROM DCSW_OWNER.PEC_ACC_LOCAL P, CRIS.TRA T, CRIS.SIT S
 WHERE P.ACC_TYPE = 'LC'
   AND P.STATUS = 'P'
   AND P.PEC_CLI_ID = 2
   AND P.EX_INTRADAY_CASH = 'N'
   AND T.TRA_SIT_ID = P.CLI_SIT_ID
   AND T.TRA_TRANSACT_TYPE NOT IN ('L', 'Y')

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center