Oracle Solution for Error ora-36178

Solution for Oracle Error ORA-36178

ORA-36178: (XSAGGR01) To be used with AGGREGATE, AGGMAP workspace object

must be declared with the AGGMAP command.

What triggered the Error:

The user used the ALLOCMAP command to define the AGGMAP, so the AGGMAP can only be used with the ALLOCATE command, or the AGGMAP has no contents attached to it.

What should we do to fix it:

Use the AGGMAP command to define the AGGMAP.