Increasing SGA/shared pool is not always the solution for this type of error:
Check the code that triggers this : is it trying to pull in all records of a large table in the
recordset property ( applicable to dotnot/ java /vb platforms) ? Can u instead code to pick about
1000/2000 records/rows at a time, then go for the next lot?

out of process memory can also be due to runaway code that attempts to load all rows of a table
in memory array - then triggers such errors.