oracle添加内存,Oracle 在线增加 sga_target 内存大小 hang 说明

查看Oracle AWR后,发现内存有优化的余地,直接修改后,session 挂住,等了很久后中断了会话:https://www.cndba.cn/dave/article/4159

cndba@SQL> alter system set sga_target=30G scope=both;

^Calter system set sga_target=30G scope=both

*

ERROR at line 1:

ORA-02097: parameter cannot be modified because specified value is invalid

ORA-01013: user requested cancel of current operation

sga_target 参数是支持在线调整的,但这里明显是调不动,上MOS搜了一下,解释是内存不足导致的:

https://www.cndba.cn/dave/article/4159https://www.cndba.cn/dave/article/4159

ALTER SYSTEM SET SGA_TARGET=’’G Scope=memory Hangs (Doc ID 1946257.1)https://www.cndba.cn/dave/article/4159https://www.cndba.cn/dave/article/4159

The problem lies in the scope=memory option. If there is not enough available memory to increase the sga_target, it causes the statement and the server to hang.

https://www.cndba.cn/dave/article/4159https://www.cndba.cn/dave/article/4159

cndba@SQL> alter system set sga_target=30G scope=spfile;

System altered.

cndba@SQL> alter system set sga_target=30G scope=memory;

^C alter system set sga_target=30G scope=memory

*

ERROR at line 1:

ORA-02097: parameter cannot be modified because specified value is invalid

ORA-01013: user requested cancel of current operation

版权声明:本文为博主原创文章,未经博主允许不得转载。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值