ORA-01467: sort key too long error on oracle 10g

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aju1986
    New Member
    • Nov 2014
    • 1

    ORA-01467: sort key too long error on oracle 10g

    Code:
    Select ITEM.ITEM_NAME,
    Max(decode(ANALYSIS.ANALYSIS_NAME,'CRASH',RESULT.AVG_VALUE)),
    Max(decode(ANALYSIS.ANALYSIS_NAME,'CRASH',RESULT.MIN_VALUE)),
    Max(decode(ANALYSIS.ANALYSIS_NAME,'CRASH',RESULT.MAX_VALUE)),
    
    Max(decode(ANALYSIS.ANALYSIS_NAME,'SPEED',RESULT.AVG_VALUE)),
    Max(decode(ANALYSIS.ANALYSIS_NAME,'SPEED',RESULT.MIN_VALUE)),
    Max(decode(ANALYSIS.ANALYSIS_NAME,'SPEED',RESULT.MAX_VALUE)) ,
    
    Max(decode(ANALYSIS.ANALYSIS_NAME,'BREAK',RESULT.AVG_VALUE)),
    Max(decode(ANALYSIS.ANALYSIS_NAME,'BREAK',RESULT.MIN_VALUE)),
    Max(decode(ANALYSIS.ANALYSIS_NAME,'BREAK',RESULT.MAX_VALUE))
    ...
    Max(...)
    ...
    
    from ITEM, ANALYSIS, RESULT
    where RESULT.ITEM_ID=ITEM.ITEM_ID
    and  RESULT.ANALYSIS_ID=ANALYSIS.ANALYSIS_ID
    Group by  ITEM.ITEM_NAME
    Last edited by Rabbit; Nov 1 '14, 03:55 PM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    What is the definition of MFTR_NAME ?

    But some googling found this link, which claims it's an Oracle 10 bug...

    Comment

    Working...