Query tuning
Following query needs to be tuned. The query and its explain plan are given below. Although there are indexes on both the tables given in the query , the indexes are not used and full table access is done. Using Index hints increases the cost of query, considerably. Index details given below. Database : Oracle 10g
Please suggest.
SELECT XCD.SR_NUMBER,XCD.TASK_NUMBER,
XCD.TASK_TYPE,
XCD.SR_TYPE,
XCD. CATEGORY ,
XCD. CLASS ,
XCD.PHASE,
XCD.SDO_CODE,
XBCD.RECEIPT_NUMBER,
XCD.CHARGE,
XCD.CHARGE_CATEGORY,
XCD.CHARGE_PAID_FLAG,
XCD.GPR_PPR_CATEGORY,
XCD.GEB_CATEGORY
FROM XXCRM_CHARGES_DETAILS XCD, XXBILL.XXBL_CHARGES_DETAILS XBCD