可以看到每条内核参数都有清晰明了的注释,我这里是安装10g RAC,那么就按照注释说明,将那些For 10g的参数启用即可。
3. /etc/security/limits.conf 增加oracle用户内容cat /etc/security/limits.conf 确认如下是自动增加的内容:
# Oracle-Validated setting for nofile soft limit is 131072 oracle soft nofile 131072 # Oracle-Validated setting for nofile hard limit is 131072 oracle hard nofile 131072 # Oracle-Validated setting for nproc soft limit is 131072 oracle soft nproc 131072 # Oracle-Validated setting for nproc hard limit is 131072 oracle hard nproc 131072 # Oracle-Validated setting for core soft limit is unlimited oracle soft core unlimited # Oracle-Validated setting for core hard limit is unlimited oracle hard core unlimited # Oracle-Validated setting for memlock soft limit is 50000000 oracle soft memlock 50000000 # Oracle-Validated setting for memlock hard limit is 50000000 oracle hard memlock 50000000由于我接下来要安装Oracle10g RAC,只用到一个oracle用户,所以这里不需要修改,如果你装的是11g RAC,则需要手工添加grid用户的资源使用限制条目。
4. 创建Oracle 用户和相关组查看已经创建了oracle用户,组oinstall和dba
[root@oradb28 cdrom]# id oracle uid=54321(oracle) gid=54321(oinstall) groups=54321(oinstall),54322(dba) context=root:system_r:unconfined_t:SystemLow-SystemHigh安装RAC需要确定各节点oracle用户和组的uid,gid保持一致,由于它自动生成的uid和gid的对应数字很大,所以一般都一致。
这样一来,在OEL系统上安装Oracle前的主机配置系列工作将得到简化,我们不必再去过多的考虑需要哪些依赖包和内核参数设置的问题了。