欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Oracle修改内存大小

程序员文章站 2022-06-03 13:59:56
...

修改服务器内核参数,修改如下:

##配置内核参数
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;