Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: ORA-04167 Sort key too long
Error: ORA 1467
Text: sort key too long
Explanation:
Any SORT (e.g. from ORDER BY , GROUP BY) must use a key that fits into a single oracle block. For the operation being performed the sort
key was too long. From 7.3 onwards Sorts allow long sort keys but there are still restrictions for GROUP BY operations.
Diagnosis:
This should show some sort operation - even if it is just an Oracle SORT-MERGE JOIN operation. (For SMJ all columns returned for the
tables being merged form the sort key so it is easy to get this error)
Note that users can specify varchar(2000) columns in the select list, but the sort will terminate with an error only if one of the data values exceeds the size
of a data block minus some overhead. In addition, this only occurs for block sizes 2K. Also, this is completely unrelated to the restrictions on LONG
columns, as they are processed separately.
3. Fast Full Index scan can read corrupt index blocks that are not in the B*Tree. You can check this by checking the explain plan for a Fast Full Scan. You can
also set 1467 errorstack Level 3 and checkout the index block that should be there. This will be corrupted. See [BUG:622603] Base [BUG:487957].
"The Views expressed here are my own and not necessarily those of Oracle Corporation"
Eric DUCHET <eric.duchet_at_free.fr> wrote in message
news:Ibx%3.2378$Ey.11132086_at_nnrp1.proxad.net...
> Hi,
>
> I try to create an index on a non unique field VARCHAR2(13)
> and i've got the error message :
>
> create index DI_EVT_3 on EVENT(EVT_ITEMCODE) tablespace INDEX_1;
> ERROR at line 1:
> ORA-01467: sort key too long
>
> I have 1 000 000 rows in my table.
>
> What does mean this error ?
> Haow can I do to create my index ????
>
> Thanx
>
>
Received on Fri Nov 26 1999 - 10:25:38 CST