Let me just add my two-cents...

Fact: Your process is exhausting O/S Process Memory.

Is it Unix/Linux?... it could be ulimit related

Are you resorting to Bulk Collect, it worked on 9i and it's failing on 10g? If this is the case you have bumped into the same bug we bumped a couple of month ago. Solution: Remove Bulk Collect.