Database Tuning (MOSC)

MOSC Banner

Creating extended stats on a ASCENDING/DESCENDING index

edited Jun 5, 2012 3:26PM in Database Tuning (MOSC) 2 commentsAnswered ✓
I have an index which is created with "DESC" option and is not being used unless a hint is used. I am trying to create an extended statistics but I
cannot get the syntax right:



select dbms_stats.create_extended_stats(user,'EMP','("SAL" DESC)') from
dual;
select dbms_stats.create_extended_stats(user,'EMP','("SAL" DESC)') from
dual
       *
ERROR at line 1:
ORA-20001: Error when processing extension -  missing right parenthesis

Has anybody done it?

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