My Oracle Support Banner

ORA-979:Not A Group By Expression With CURSOR_SHARING=Similar Or Force (Doc ID 1081548.1)

Last updated on DECEMBER 18, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.7 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

ORA-979: not a GROUP BY expression with CURSOR_SHARING=similar or force.

With CURSOR_SHARING=exact, the query works. 
 
Errorstack is similar to
 
 kgesev <- kgesec0 <- qcuErroer <- qcuErroep <- erroep <- qecgoc <- qecsel <- qecpqbcheck <- qecdrv <- qecdrv  <- kkqcttcalo <- kkqctdrvIT <- apadrv <- opitca
 
The failing query has GROUP BY clause which contains expressions involving literals,

       

Changes

Cursor_sharing parameter set to similar or force

Cause

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
Symptoms
Changes
Cause
Solution

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