After RAM upgrade on 32-bit Oracle server, ORA-04031: unable to allocate x bytes of shared memory
The error just means that the shared_pool ran out of free space. This can be caused by many things, mostly application related. Make sure your shared_pool has a minimum size needed to run your application.
Sometimes it helps to increase the shared_pool_reserved_size so larger objects can be loaded in there.