您的位置:首页 > 数据库 > Oracle

ORACLE - 安装前 系统参数配置

2016-05-25 09:43 447 查看
使用root用户登入

su - root

设置内核参数

修改/etc/sysctl.conf(vi /etc/sysctl.conf), 添加:

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmall = 8388608

kernel.shmmax = 18253611008

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048586

net.ipv4.tcp_wmem = 262144 262144 262144

net.ipv4.tcp_rmem = 4194304 4194304 4194304

修改后运行"/sbin/sysctl -p"命令使得内核改变立即生效;

备注:

1)kernel.shmall表示内存总量(以页为单位,每页=4K)。

本机的内存为32G,kernel.shmall=32*1024*1024*1024/4096=8388608。

2)kernel.shmmax值需要大于SGA,本机内存为32G,

SGA=16G,kernel.shmmax=17*1024*1024*1024=18253611008

3)shmmni:该参数的默认值是 4096。通常不需要更改。

设置用户资源限制



编辑文件:vi /etc/security/limits.conf加入以下语句:

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 4096

oracle hard nofile 65536

备注:

noproc - 进程的最大数目

2)nofile - 打开文件的最大数目

C)linux操作系统的登陆配置文件

编辑文件:vi /etc/pam.d/login加上下面的行:

session required pam_limits.so

备注:如果是redhat5及以上的版本,此处可以不设置

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: