紧急求助:ora-04031:unable to allocate 27996 bytes of share memory
紧急求助:ora-04031:unable to allocate 27996 bytes of share memory 我用的是10G
[解决办法]
You should increase your shared pool size. You can also flush shared pool to avoid this error temporarily.
If the shared pool is out of memory, either use the dbms_shared_pool package to pin large packages, reduce your use of shared memory, or increase the amount of available shared memory by increasing the value of the INIT.ORA parameters "shared_pool_reserved_size" and "shared_pool_size". If the large pool is out of memory, increase the INIT.ORA parameter "large_pool_size".
[解决办法]
flush sga...
同楼上的结论, 可能是你的SGA碎片化严重,最有效的解决办法应该是修改参数, 不能重启数据库的话就flush sga 了。
[解决办法]
查看数据库的配置参数是否正确,尤其是shared_pool_size,
或者通过如下sql确认:
select pool,sum(bytes) from v$sgastat group by pool;
如果设置正确,不排除遇到oracle bug的可能。