My Oracle Support Banner

WM_CONCAT Vs LISTAGG - ORA-00904: "WM_CONCAT": invalid identifier (Doc ID 2622063.1)

Last updated on DECEMBER 24, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.1.0.2 to 18.5.0.0.0 [Release 10.1 to 18]
Information in this document applies to any platform.

Goal

 

 From Oracle 12.1.0.1 onwards WM_CONCAT function is disabled. We need to use LISTAGG Function.

 

EXAMPLE:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> SELECT WM_CONCAT(DISTINCT TYPE) from v$parameter;

WM_CONCAT(DISTINCTTYPE)
--------------------------------------------------------------------------------
1,2,3,4,6

SQL>

 

Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> SELECT WM_CONCAT(DISTINCT TYPE) from v$parameter;
SELECT WM_CONCAT(DISTINCT TYPE) from v$parameter
*
ERROR at line 1:
ORA-00904: "WM_CONCAT": invalid identifier

SQL>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Solution

To view full details, sign in with your My Oracle Support account.

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


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.