ORA-04031

ORA-04031:unable to allocate 3264 bytes of shared memory

1、问题背景

修改SGA重启数据库后报错

系统内存:8G
原SGA大小:3G
修改后SGA大小:5G

image-20230811164502290

数据库可以正常重启,但是trance日志一直在报错

2、解决办法

调整shared_pool_size和streams_pool_size大小

alter system set shared_pool_size=2G;

alter system set streams_pool_size=1G;


查看大小
show parameter sga;

show parameter pool;
  • 原大小

image-20230811165222897

  • 调整后大小

image-20230811165314092

猜你喜欢

转载自blog.csdn.net/m0_49562857/article/details/132236106