ORA-01467 USING MANY LISTAGG() WITH SAME "OVER( PARTITION BY XX )" CLAUSE (Doc ID 1562517.1)

Last updated on DECEMBER 28, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.2 and later
Information in this document applies to any platform.
***Checked for relevance on 29-DEC-2016***

Symptoms

RDBMS 11.2.0.2 

The following error occurs

ERROR
-----------------------
ORA-01467: sort key too long

 

while running a query that includes about 24 LISTAGG() .. OVER() expressions.

Trying workaround

alter session set "_windowfunc_optimization_settings" = 128;

mentioned in Bug 14178745 - ORA-1467 FOLLOWING UPGRADE FROM 11.1.0.6 TO
11.2.0.3
did not solve the issue


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms