Database Tuning (MOSC)

MOSC Banner

Help a newbie with TKPROF output

edited Dec 21, 2009 2:54AM in Database Tuning (MOSC) 13 commentsAnswered
 Hi!

I have this query which takes over 1.5 minutes to complete. Is there anything I can do to make it go faster?

TASK_LOG have up to date statistics and have around 700 000 rows and RFM_ROLE_TASK_STORER only 200.

What to do?

SELECT *
FROM
 TASK_LOG WHERE EXISTS (SELECT * FROM RFM_ROLE_TASK_STORER WHERE USER_ROLE_ID
  = :B4 AND (STORER_ID = TASK_LOG.STORER_ID OR STORER_ID ='#ALL#') AND
  (TASK_TYPE = TASK_LOG.TASK_TYPE OR TASK_TYPE ='#ALL#')) AND NVL2(:B3 ,
  PICKLIST_GROUP_NO, -1) = NVL(:B3 , -1) AND NVL2(:B2 , TASK_TYPE, '¤') =

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