如何解决ORA-04031错误
诊断并解决ORA-04031错误 当我们在共享池中试图分配大片的连续内存失败的时候,Oracle首先清除池中当前没使用的所有对象,使空闲内存块合并。如果仍然没有足够大单个的大块内存满足请求,就会产生ORA-04031错误。 当这个错误出现的时候你得到的错误解释信息类似如下: 1 [ oracle@yft ~ ] $ oerr ora 04031 2 04031 , 00000 , "unable to allocate % s bytes of shared memory (\" % s\",\" % s\",\" % s\",\" % s\")" 3 // * Cause: More shared memory is needed than was allocated in the shared 4 // pool. 5 // * Action: If the shared pool is out of memory, either use the 6 // DBMS_SHARED_POOL package to pin large packages, 7 // reduce your use of shared memory, or increase the amount of 8 // available shared memory by increasing the