ORA-600 [32695] [hash aggregation can't be done] (Doc ID 729447.1)

Last updated on FEBRUARY 07, 2014

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.1.0.6 [Release 10.2 to 11.1]
Information in this document applies to any platform.
***Checked for relevance on 17-Nov-2011***

Symptoms

When running a statement that involves a GROUP BY operation, the following error is raised:

ORA-00600: internal error code, arguments: [32695], [hash aggregation can't be done], [], [],

 If we look in the trace file, under Call Stack Trace section, we see the functions:

... qeshPartitionBuildHD qeshGBYOpenScan2 qeshGBYOpenScan qerghFetch qervwFetch ...


and the query plan for the SQL statement shows a HASH GROUP BY, eg. :

------------------------------------------
| Id | Operation                         |
------------------------------------------
| 0 | INSERT STATEMENT                   |
| 1 | PX COORDINATOR                     |
| 2 | PX SEND QC (RANDOM)                |
| 3 | HASH GROUP BY                      |
...

 

A second case where this would occur could be with a failing query that has no GROUP BY, but has a Select Distinct. The Plan table indicates a HASH UNIQUE instead of HASH GROUP BY.

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