ORA-00904: "WMSYS"."WM_CONCAT": invalid identifier (文档 ID 2215183.1)
2017-05-13 16:06
1376 查看
APPLIES TO:
Oracle Transportation Management Cloud Service - Version 6.4.1 and laterOracle Transportation Management - Version 6.4.1 and later
Oracle Global Trade Management Cloud Service - Version 6.4.1 and later
Oracle Global Trade Management - Version 6.4.1 and later
Information in this document applies to any platform.
SYMPTOMS
You have an agent which is failing on a Direct SQL in call with errorjava.sql.SQLSyntaxErrorException: ORA-00904: "WMSYS"."WM_CONCAT": invalid identifier
CAUSE
The database function WM_CONCAT is being used.WM_CONCAT is undocumented and unsupported by Oracle meaning it should not be used in production systems.
This function has been removed from Oracle 12c.
Since version 6.4.1 includes a database update to 12c this function can no longer be used.
SOLUTION
The Oracle PL/SQL WM_CONCAT function is used to aggregate data from a number of rows into a single row, giving a list of data associated with a specific value. In effect, it cross-tabulates a comma delimitedlist.
WM_CONCAT is gone in 12c.
Use the LISTAGG function instead, which can produce the same output as WM_CONCAT is both documented and supported by Oracle.
Basic Syntax:
LISTAGG(col_name_to_be_aggregated, ',') WITHIN GROUP (ORDER BY col)
Def LISTAGG http://psoug.org/definition/LISTAGG.htm
http://stackoverflow.com/questions/11510870/listagg-in-oracle-to-return-distinct-values http://dba.stackexchange.com/questions/696/eliminate-duplicates-in-listagg-oracle
相关文章推荐
- ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的解决办法
- [Bug]ArcGIS Desktop10.1进行Join版本数据操作报:"ORA-00904: invalid identifier"
- EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- 对Oracle导出文件错误和DMP文件结构的分析,EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- ORA-00904: "POLTYP": invalid identifier 错误
- exp导出出现:ORA-00904: "POLTYP": invalid identifier
- ORA-00904: "MAXSIZE": invalid identifier
- 对Oracle导出文件错误和DMP文件结构的分析,EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- SQL Developer error: ORA-00904: "ORA_ROWSCN": invalid identifier
- ORA-00904: "POLTYP": invalid identifier
- 对Oracle导出文件错误和DMP文件结构的分析,EXP-00008: 遇到 ORACLE 错误 904 ORA-00904: "MAXSIZE": invalid identifier
- ‘ORA-00904: "AGE": invalid identifier’ The association between double quote and case sensitivity
- ORA-00904: "DROP_SEGMENTS": invalid identifier 解决方法
- exp导出报错“ORA-00904: : invalid identifier ”的处理
- ERROR: org.hibernate.util.JDBCExceptionReporter - ORA-00904: "XXXX": invalid identifie
- ORA-04031 With Leak in "OBJ STAT MEMO" Allocations Seen in V$SGASTAT on 10.2.0.5 (文档 ID 1350050.1)
- ORACLE 数据库表字段查询报错之ORA-00904:invalid identifier
- Oracle Linux: Error "Missing Or Invalid IPv4 Prefix '0' On Linux Server" (文档 ID 1522095.1)
- ORA-600 [4511] "Row locked by inactive ITL" (文档 ID 39553.1)
- ORA-600 [729] "UGA Space Leak" (文档 ID 31056.1)