RHEL 6 (x86_x64)安装 oracle 11g r2
--编写整理作者:蓝创星空
希望本文能给你提供一点点的帮助,如果有问题,你可以在我的百度空间留言,地址:
http://hi.baidu.com/creative_in_the_sky/home。
我在 RHEL6 64 位上安装。使用 GNOME 图形界面,安装的时候把 Development Tools 里
的开发包都安装上,或者快速安装后搭建本地 yum 源再利用群组安装也可。值得注意的是
swap 要求至少 3G,我的机器为 2G 物理内存。
安装过程分为两步,一是修改系统参数,二是软件及数据库安装。
修改系统参数
step1: vi /etc/sysctl.conf, 添加如下参数:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 1073741824
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
保存并使之生效
/sbin/sysctl -p
如果有如下提示错误,忽略,因为即使未修改参数也提示有这个错误
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key
注意: kernel.shmmax's 的值是物理内存的一半。 我的是 2G 内存,所以是 1073741824
step2: vi /etc/security/limits.conf,添加:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
step3: vi /etc/pam.d/login,添加参数:
session required pam_limits.so
相关文档
评论