SQL Performance (MOSC)

MOSC Banner

Functional indexes ignored in sql plan (12.1.0.2 - FORCE)

edited Aug 19, 2019 6:11AM in SQL Performance (MOSC) 4 commentsAnswered

Hi,

We had a 12.1.0.2.

cursor_sharing=FORCE

The following query (from T24 banking application):

select t.recid from ftn1_account t where NVL(NUMCAST(EXTRACTVALUES(t.xmlrecord,'/row/c2')),0)=3439;

Which was using the corresponding functional index based on:  NVL(NUMCAST(EXTRACTVALUE(XMLRECORD,'/row/c2')),0)

From now, the same query, just full scans the table.

Exec time is 17m.

Workaround:

cursor_sharing=EXACT

Functionnal index is used.

Exec time back to the hundredth of  18 second.

But because the application's queries are not binded, the cost in term of CPU is high (but we have plenty of them...).

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