--Oracle--RAC--禁用SELinux--禁用防火墙--NTP同步时钟等。。。

-----------

禁用selinux(在两个节点上)

#vi /etc/sysconfig/selinux
        

# This file controls the state of SELinux on the system.
SELINUX=disabled








禁用防火墙(在两个节点上)

检查并确定防火墙选项是关闭的

#/etc/rc.d/init.d/iptables status
#/etc/rc.d/init.d/iptables stop
#chkconfig iptables off


 

 

 

==============


用NTP同步时钟(在两个节点上)

确保每个节点的日期和时间都尽可能完全相同,Oracle强烈建议使用网络时间协议(NTP),大多数操作系统都支持这个协议,在所有节点上引用同一个网络时间协议服务器。

#/etc/init.d/ntpd status
ntpd (pid 2295) is running...

#more /etc/ntp.conf

server swisstime.ethz.ch
restrict swisstime.ethz.ch mask 255.255.255.255 nomodify notrap noquery


内核参数(在两个节点上)
在每个群集节点启动时内核参数都需要被定义,本节集中讲述配置两个linux服务器 -- 为安装Oracle 11g RAC做好准备,包括校验SWAP空间是否充足、设置共享内存和信号、最大文件句柄数量、本地ip端口范围、oracle用户的shell限制,并激活所有内核参数。

#more /etc/sysctl.conf
        

# Additional Parameters added for Oracle 11【为Oracle 11添加的参数】
# -----------------------------------------
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128

kernel.shmmni = 4096
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144

# Additional Parameters added for RAC【为RAC添加的参数】
# -----------------------------------
net.ipv4.ipfrag_high_thresh = 524288
net.ipv4.ipfrag_low_thresh = 393216
net.ipv4.tcp_rmem = 4096 524288 16777216
net.ipv4.tcp_wmem = 4096 524288 16777216
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 0
net.ipv4.tcp_window_scaling = 1
net.core.optmem_max = 524287
net.core.netdev_max_backlog = 2500
sunrpc.tcp_slot_table_entries = 128
sunrpc.udp_slot_table_entries = 128
net.ipv4.tcp_mem = 16384 16384 16384
fs.file-max = 6553600
运行下面的命令改变当前的内核参数
#/sbin/sysctl -p

限制oracle用户(在两个节点上)

#more /etc/security/limits.conf
        

# Limits for User Oracle
oracle           soft    nproc           2047
oracle           hard    nproc           16384
oracle           soft    nofile          1024
oracle           hard    nofile          65536

#more /etc/pam.d/login

# For Oracle
session    required     /lib/security/pam_limits.so
session    required     pam_limits.so

 


管理服务的启动(在两个节点上)


只启动需要的服务,可以使用chkconfig或service命令完成
#chkconfig --list | grep "3:on"

crond         0:off   1:off   2:on    3:on    4:on    5:on    6:off
gpm             0:off   1:off   2:on    3:on    4:on    5:on    6:off
kudzu           0:off   1:off   2:off   3:on    4:on    5:on    6:off
netfs           0:off   1:off   2:off   3:on    4:on    5:on    6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
nfs             0:off   1:off   2:off   3:on    4:off   5:off   6:off
nfslock         0:off   1:off   2:off   3:on    4:on    5:on    6:off
ntpd            0:off   1:off   2:off   3:on    4:off   5:on    6:off
portmap         0:off   1:off   2:off   3:on    4:on    5:on    6:off
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
syslog          0:off   1:off   2:on    3:on    4:on    5:on    6:off
sysstat         0:off   1:off   2:on    3:on    4:off   5:on    6:off
xfs             0:off   1:off   2:on    3:on    4:on    5:on    6:off

#service --status-all | grep "is running"

crond (pid 2458) is running...
gpm (pid 2442) is running...
rpc.mountd (pid 2391) is running...
nfsd (pid 2383 2382 2381 2380 2379 2378 2377 2376) is running...
rpc.rquotad (pid 2339) is running...
rpc.statd (pid 2098) is running...
ntpd (pid 2284) is running...
portmap (pid 2072) is running...
rpc.idmapd (pid 2426) is running...
sshd (pid 4191 4189 2257) is running...
syslogd (pid 2046) is running...
klogd (pid 2049) is running...
xfs (pid 2496) is running...



posted @ 2009-06-16 15:16  mop  阅读(711)  评论(0)    收藏  举报