你好,游客 登录 注册 搜索
背景:
阅读新闻

在Red Hat Linux 5.4 (虚拟机) 上安装 Oracle 11g R2 RAC (ASM)

[日期:2012-02-21] 来源:Linux社区  作者:风影子 [字体:大 中 小]
6       配置 Linux 内核参数  (所有节点设置)  

[root@racdb01 etc]# 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=1048576

 

[root@racdb01 etc]# sysctl  -p  使生效。

 

 

 

7       为 Oracle 用户设置 shell  limits(每个节点执行) .   7.1     修改 /etc/security/limits.conf  

[root@racdb01 etc]# cd /etc/security/ 

[root@racdb01 security]# vi limits.conf  

 

grid soft nproc 2047

grid hard nproc 32768

grid soft nofile 1024

grid hard nofile 250000

 

oracle soft nproc 2047

oracle hard nproc 32768

oracle soft nofile 1024

oracle hard nofile 250000

 

 

 

7.2     修改/etc/pam.d/login,如果不存在以下行,请加入 

session    required    pam_limits.so  

 

 

7.3     对默认 shell startup file 做变更,加入如下行到/etc/profile 

 

if [ \$USER = "oracle" ] || [ \$USER = "grid" ]; then 

    if [ \$SHELL = "/bin/ksh" ]; then 

         ulimit ‐p 16384 

         ulimit ‐n 65536 

    else 

         ulimit ‐u 16384 ‐n 65536 

    fi 

    umask 022 

fi 

 

 

7.4     设置 SELinux为 disable (每个节点都设置).  

# vi   /etc/grub.conf   

default=3 

timeout=5 

splashimage=(hd0,0)/grub/splash.xpm.gz 

hiddenmenu 

title Red Hat Enterprise Linux Server (2.6.18‐128.el5xen) 

         root (hd0,0) 

         kernel /xen.gz‐2.6.18‐128.el5 

         selinux=0 

linux
相关资讯       RedHat安装  oracle数据库教程 
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* 匿名 发表于 2013/4/18 20:41:52
楼主,按你那样就是创建一个数据库这里,居然跑几个小时都没创建完。