Database Tuning (MOSC)

MOSC Banner

[10.2.0.4] About dynamic sampling

edited Sep 10, 2010 4:06AM in Database Tuning (MOSC) 7 commentsAnswered
Hi, A software is using the following query :
SELECT/*+DYNAMIC_SAMPLING(0) INDEX(T "DR$IDX_FTIDX_PRIMARYFILE$X")*/ DISTINCT TOKEN_TEXT FROM FTUSER.DR$IDX_FTIDX_PRIMARYFILE$I T
WHERE TOKEN_TEXT LIKE :lkexpr ESCAPE '\'
and (TOKEN_TYPE IN (0, 4, 6, 604) OR (TOKEN_TYPE BETWEEN 16 AND 74) OR (TOKEN_TYPE BETWEEN 616 AND 674))

The AWR report says that that query consume 79 min for 6 executions (weak CPU time of 81 s and 4 cores processor).
When I look at the plan I've got a cost of 138811 and a cardinality of 15188560 (the table contains 17 000 000 lines).

According to you is there a problem with that query ? and in the case yes, do you have any idea for the solution ?

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