前端之家收集整理的这篇文章主要介绍了
Oracle修改内存大小,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
修改服务器内核参数,修改如下:
##配置内核参数
vi /etc/sysctl.conf
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
kernel.panic)on_oops = 1
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.default.rp_filter = 2
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
执行如下命令生效:
/sbin/sysctl -p
操作结束后,进行内存大小调整
sql> show parameter sga;
sql> alter system set sga_max_size = 50G scope=spfile;
sql> alter system set sga_target = 50G scope=spfile;
sql> shutdown immediate
sql> startup mount
sql> show parameter sga;
原文链接:/oracle/207681.html