I don't think this is related to kernal parameters.

An ORA-4031 error is related to poor use of one of the memory pools. The error message will usually specify which pool it is trying to use when you get the ORA-4031. I would not be suprised to find you have shared pool fragmentation in your shared_pool.

See http://metalink.oracle.com/metalink/...&p_id=146599.1 for details on diagnosing and resolving this error.