How to fix ORA-979: not a GROUP BY expression in 11.2.0.1 version

January 25th, 2011 | Posted in 11gR2, Blog | 2 Comments



1- Introduction:
After migration my Oracle version 10gR2 to 11gR2 (11.2.0.1), Some of the queries did not run successfully.
Some of the queries gave me an ORA-979 error.
In this article, I am going to explain how to fix the error. Oracle says ORA-979 in 11gR2 is a bug.
The bug number is 9411496.

2- Environment test details:
First, I am going to create a test table, then insert a few records and run a query with a group by expression.

The query gives an error, ORA-979: not a GROUP BY expression

3- Solution 1:

You can Set the hidden parameter “_FIX_CONTROL”=’5520732:OFF’ in the pfile. This parameter disables a given bug number.
_fix_control is an undocumented parameter that can be used to turn off/on a particular bug fix identifier. This is a solution introduced from the version 10.2.0.2 of Oracle. (Be careful when using this parameter, it can prevent your database from starting).

We create a pfile from the spfile. Then we edit the pfile and we set the _FIX_CONTROL”=’5520732:OFF’. After shut down the instance, we create the spfile from the pfile and finally, we start up it.



Now, We run the query and it successfully gives a result.

3- Solution 2:
First, let’s remove the parameter _FIX_CONTROL”=’5520732:OFF’ from the pfile.
After running again the query, we get the ORA-979 error.


The solution 2 is to set the parameter optimizer_features_enable to a previous version of Oracle, ’11.1.0.7′ for example.

Thank you very much,
Nice reading

Wissem EL KHLIFI
www.oracle-class.com

Scridb filter


2 Comments to “How to fix ORA-979: not a GROUP BY expression in 11.2.0.1 version”

  1. tom Sikora says:

    Please do not use pictures for sample code. It would be great to copy and go in our own environment…

  2. Thank you for another informative blog. The place else may just
    I am getting that kind of information written in such a perfect approach?
    I’ve a mission that I am simply now running on, and I’ve been at the look out for such
    info.


Leave a Comment





Subscribe


Polls

which oracle topic interests you most?

View Results

Loading ... Loading ...


Oracle Class Tweets


Recent Posts


Recent Comments

  • Jaspreet: Brilliant explanation.
  • Yousuf: Very Nice… Just wanted to check you have done all patching at Node 1 only.. is there any thing need to...
  • Yousuf: Very Nice.. Thanks for sharing.. Once question.. You have executed all commands on Node 1 only.. Is there any...
  • Emir: Thanks… Great article
  • borse firmate: Thank you for another informative blog. The place else may just I am getting that kind of information...
  • leandro: why this parameter is systemwide? could you read from a asm instance from one failure group and from the...
  • Mohammad: paul, we create pfile from target database to source database and later we change database name, and...
  • Muhammad Ikram: Thanks Brother for sharing pearls of knowledge. May ALLAH reward you for this both here and...
  • rgrover: Thanks for the POST. I recently encounter similar issue. Your POST helped.
  • gopalredy: really its very use full to dbas
  • Vivian: This is awesome! Thank you so much!
  • henry zhong: CDB=DB, and PDB=SCHEMA but in a sub dictionary?
  • Dehbashee: Salam Brother, Thanx for sharing, however, i would be interested in chaging the password for the grid user...
  • wissem: No we don’t need that :) Just the scripts I posted above
  • Md. Tanweer: Thanks for posting the material. I really appreciate if you can send me, if you have tutorial for 11g...
  • christiaan: Thanks!! This has been bugging the hell out of me for so long.
  • Rajasekhar: Thank you
  • Samarjit Panigrahy: Very Nice and Simple Demo… Cool :)
  • cq: Any reason not to use auto patch for both CRS and RAC homes with one command? Or use opatch auto for RAC home as...
  • Hitesh: Hi, Can we use this RACcheck tool on oracle SE version ? Thanks