Oracle Solution for Error ora-37079

Solution for Oracle Error ORA-37079

ORA-37079: (XSMCSESS07) Aggmap workspace object

cannot be used for AGGREGATE.

What triggered the Error:

The current aggmap may be for ALLOCATE

What should we do to fix it:

Choose the correct aggmap for AGGREGATE only.