SQL Statement Using GROUPING Function Fails With ORA-30481

(Doc ID 2404925.1)

Last updated on JUNE 03, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

Following error encountered when using grouping function in SQL statement.
ORA-30481: GROUPING function only supported with GROUP BY CUBE or ROLLUP

Example:

Changes

 

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