Shared memory errors
So I started out the day with the following Oracle 8.1.7 errors:
ERROR:
ORA-04031: unable to allocate 4096 bytes of shared memory (”shared pool”,
“BEGIN DBMS_OUTPUT.DISABLE; E…”,”PL/SQL MPCODE”,”BAMIMA: Bam Buffer”)
Our DBA told us to increase our shared_pool_size in the $ORACLE_HOME/dbs/init<SID>.ora file, but make sure that the values we increase the pool_size to is in blocks of 512K and that it is only 20% - 50% more memory than before (anything more or less than that will cause performance problems). Also, DBA suggested putting in a shared_pool_reserved_size that is 20% of whatever we changed the shared_pool_size to, so that Oracle has a cache of available memory space that it can always use — again, 20% for performance reasons. Interesting.
Here is what I ended up setting in the init<SID>.ora file to and then I stopped and started the database instance:
shared_pool_size = 8388608 shared_pool_reserved_size = 1677721