ORA-04036 when PGA_AGGREGATE_LIMIT=0
Hey all,
one of our production database reported ora-04036 last week when some user process was running out of PGA.
Some of our db consultants decided to change PGA_AGGREGATE_LIMIT to zero to avoid this ORA- error. So he entered: ALTER SYSTEM SET PGA_AGGREGATE_LIMIT=0 scope=both;, but it didn't help.Ora-04036 is still being reported.
How is that possible? It should work as pre 12c - without hard limit on PGA consumed. Am I right?
So, next day we changed this parameter to 30G (db host has some unused memory so we wanted to use it). But again, ora-04036 is still reported. So i checked v$pgastat and what i found was confusing - it says that maximum PGA allocated is around 5.7G, that is almost exactly out PGA_AGGREGATE_TARGET (!!) parameter. Quite weird, isn't it?