1. 程式人生 > >CentOS6u9 Oracle11g 安裝部署的核心引數設定簡錄

CentOS6u9 Oracle11g 安裝部署的核心引數設定簡錄

簡單說明:

官檔地址:https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm
檢視 Configuring Kernel Parameters 章節部分
參考文件《CentOS5u11 Oracle 10g 安裝部署的核心引數設定簡析》
已經在上一篇部落格中解釋了所有官檔要求的引數的功能
本篇博文只是根據CentOS6u9對11g的這些引數的要求的配置操作記錄

官檔引數要求:

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax
= 536870912 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 = 1048576

系統預設:

fs.aio-max-nr = 65536
fs.file-max = 193094
kernel.shmall = 4294967296
kernel.shmmax
= 68719476736 kernel.shmmni = 4096 kernel.sem = 250 32000 32 128 net.ipv4.ip_local_port_range = 32768 60999 net.core.rmem_default = 124928 net.core.rmem_max = 124928 net.core.wmem_default = 124928 net.core.wmem_max = 124928

配置命令:

echo 'fs.aio-max-nr = 3145728'>>/etc/sysctl.conf
echo
'fs.file-max = 6815744'>>/etc/sysctl.conf # 如果實體記憶體大於64G,則開啟使用 # echo 'kernel.shmmax = 137438953472'>>/etc/sysctl.conf echo 'kernel.shmmni = 4096'>>/etc/sysctl.conf echo 'kernel.sem = 250 32000 100 128'>>/etc/sysctl.conf echo 'net.ipv4.ip_local_port_range = 9000 65000'>>/etc/sysctl.conf echo 'net.core.rmem_default = 262144'>>/etc/sysctl.conf echo 'net.core.rmem_max = 4194304'>>/etc/sysctl.conf echo 'net.core.wmem_default = 262144'>>/etc/sysctl.conf echo 'net.core.wmem_max = 1048576'>>/etc/sysctl.conf sysctl -p