SOLVED
ORA-04031: unable to allocate nn bytes of shared memory
Asked by OracleDba••13 views•oracle
12345678910111213
ORA-04031: unable to allocate nn bytes of shared memory
ORA-04031: unable to allocate nn bytes of shared memory
Question: I am getting the error ORA-04031 Cannot allocate shared memory. I've tried increasing my init.ora shared_pool_size, but to no avail. What are some causes for the ORA-04031 error, and how do I fix it?
Answer: The ORA-04031 error has many root causes. Also, see MOSC notes 146599.1 and 396940.1 for more details for resolving the ORA-04031 error:
1.Heavy fragmentation of the shared pool - This can be fixed by increasing the shared_pool_size or doing a "alter system flush shared pool" or bouncing the instance.
2.Too many pinned packages - If you have pinned lots of packages with dbms_shared_pool.keep, they have not leave enough room for new work.
Ultimately the#oracle#error