ORA-04031: unable to allocate 4096 bytes of shared memory
2012-02-12 17:37
295 查看
解决方案一、alter system flush shared_pool
解决方案二、
1、首先看shared_pool的两个参数设置
SQL> show parameter shared_pool;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
shared_pool_reserved_size big integer 77175193
shared_pool_size big integer 320M
共享池:320M
保留区的大小为:77175193
2、查看保留区的使用情况
SQL> select sum(free_space) from v$shared_pool_reserved;
SUM(FREE_SPACE)
---------------
77246328
大家可以看到保留区基本没有使用
那么如何提高保留区的使用效率呢,接着如下查询
3、查看保留区使用情况
SQL> SELECT FREE_SPACE, FREE_COUNT, REQUEST_FAILURES, REQUEST_MISSES, LAST_FAILURE_SIZE FROM V$SHARED_POOL_RESERVED;
FREE_SPACE FREE_COUNT REQUEST_FAILURES REQUEST_MISSES
LAST_FAILURE_SIZE
---------- ---------- ---------------- -------------- -----------------
77246328 23 6950 0
4192
请求失败次数为6950,已经并入膏肓了。最后一次请求为4192
4、查看门值
SQL> select KSPPINM,KSPPSTVL from x$ksppi, x$ksppcv where x$ksppi.indx = x$ksppcv.indx and KSPPINM = '_shared_pool_reserved_min_alloc';
KSPPINM KSPPSTVL
---------------------------------------- ----------
_shared_pool_reserved_min_alloc 4400
可以看出只有>=4400的申请才会使用保留区,为提供保留区的使用率。必须降低门值。建议降低为4100
//下次数据库启动时才能生效
SQL> alter system set "_shared_pool_reserved_min_alloc" = 4100 scope = spfile;
System altered.
相关文章推荐
- ORA-04031: unable to allocate 4096 bytes of shared memory ("shared pool","BEGIN :EXEC_STR := SYS.DBMS...","PL/SQL MPCODE","BAMIM
- ORA-04031:unable to allocate N bytes of shared memory
- ORA-04031:unable to allocate 4120 bytes of shared memory ‘obj stat mem’故障解决
- ECC 6.0 SR3 安装import abap出错ORA-04031: unable to allocate 116 bytes of shared memory和DbSl Trace: ORA-1403 when accessing table SA
- ORA-04031: unable to allocate 2048024 bytes of shared memory
- OERR: ORA-4031 "unable to allocate %s bytes of shared memory ("%s","%s","%s")" (文档 ID 4031.1)
- Oracle错误:ORA-27121: unable to determine size of shared memory segment
- ORA-04030: out of process memory when trying to allocate 64544 bytes (sort subheap,sort key)
- ORA-04031: unable to allocate 4096 bytes of shared memory (解决方案)
- :"ORA-27121: unable to determine size of shared memory segment" 错误
- Oracle错误:ORA-27121: unable to determine size of shared memory segment
- ORA-27125: unable to create shared memory segment的解决方法(转)
- rac 实例1 无法启动 ORA-17503:can open spfile,ORA-27123:unable to attach to shared memory segment
- ORA-27125: unable to create shared memory segment
- ORA-39095: Dump file space has been exhausted: Unable to allocate 8192 bytes
- spark 1.5.x Unable to acquire 33554432 bytes of memory
- ORACLE ORA-04030之 out of process memory when trying to allocate
- ORA-27125: unable to create shared memory segment
- ORA-27125: unable to create shared memory segment 问题解决
- Oracle Linux 6.1 安装Oracle 10g ORA-27125:unable to create shared memory segment 解决方法