Oracle11g+asm+RAC安装指导
环境说明:
网络接口、IP分配: # public bind0
192.100.65.19 tpps-ora01 192.100.65.20 tpps-ora02 # vip
192.100.65.21 tpps-ora01-vip 192.100.65.22 tpps-ora02-vip
# private
172.16.65.19 tpps-ora01-priv 172.16.65.20 tpps-ora02-priv
# scan
192.100.65.23 orascan
主机名:
修改hostname如主节点tpps-ora01,次节点tpps-ora02
注:图里的rac01改为tpps-ora01,rac02改为tpps-ora02下面所有图都是如此操作。 [root@localhost ~]#vi/etc/sysconfig/network
关闭SELINUX配置:
[root@localhost ~]#cat /etc/selinux/config
# This file controls the state of SELinux on the system. # SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted 关闭防火墙:
[root@localhost ~]#chkconfig --list iptables
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off [root@localhost ~]#chkconfigiptables off [root@localhost ~]# chkconfig --list iptables
iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
1.检查每个节点的OS环境
1检查可用空间: ○
[root@localhost ~]# df -h
FilesystemSize Used Avail Use% Mounted on
/dev/sda2 124G 4.2G 114G 4% /
/dev/sda1 494M 17M 452M 4% /boot tmpfs 2.0G 0 2.0G 0% /dev/shm 2网络配置: ○
登录系统,修改/etc/sysconfig/network-scripts路径下文件 将对应网卡地址改为相应的IP。
3时间同步协议NTP配置:(不建议使用NTP) ○
备份ntp.conf文件
[root@tpps-ora01 ~]#cp /etc/ntp.conf /etc/ntp.conf.bak [root@tpps-ora02 ~]# cp /etc/ntp.conf /etc/ntp.conf.bak [root@tpps-ora02 ~]# vi /etc/ntp.conf
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html). #server 0.rhel.pool.ntp.org #server 1.rhel.pool.ntp.org #server 2.rhel.pool.ntp.org
server 10.10.11.26
[root@tpps-ora01 ~]#chkconfigntpd on [root@tpps-ora02 ~]#chkconfigntpd on [root@tpps-ora01 ~]#servicentpd start [root@tpps-ora02 ~]# servicentpd start ntpq–p
4NSLOOKUP域名解析:(无域名解析) ○
节点1
[root@tpps-ora01 ~]# mv /usr/bin/nslookup /usr/bin/nslookup.bak [root@tpps-ora01 ~]# vi /usr/bin/nslookup
#!/bin/bash
HOSTNAME=${1}
if [[ $HOSTNAME=\echo \ 192.100.65.21\echo \ 192.100.65.21#53\echo \echo \ orascan\echo \ 192.100.65.23\else
/usr/bin/nslookup.bak $HOSTNAME fi
[root@tpps-ora01 ~]# chmod 755 /usr/bin/nslookup [root@tpps-ora01 ~]# nslookuporascan
节点2
[root@tpps-ora02 ~]#mv /usr/bin/nslookup /usr/bin/nslookup.bak [root@tpps-ora02 ~]#vi /usr/bin/nslookup
#!/bin/bash
HOSTNAME=${1}
if [[ $HOSTNAME=\echo \ 192.100.65.22\echo \ 192.100.65.22#53\echo \echo \ orascan\echo \ 192.100.65.22\else
/usr/bin/nslookup.bak $HOSTNAME fi
[root@tpps-ora02 ~]# chmod 755 /usr/bin/nslookup [root@tpps-ora02 ~]# nslookuporascan 5OS调整 ○
内核参数: 节点1
[root@tpps-ora01 ~]# vi /etc/sysctl.conf # Add by RAC install fs.aio-max-nr = 1048576 fs.file-max = 6815744 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 [root@tpps-ora01 ~]# sysctl -p net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0
kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536
kernel.shmmax = 68719476736 kernel.shmall = 4294967296 fs.aio-max-nr = 1048576 fs.file-max = 6815744 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
节点2
[root@tpps-ora02 ~]# vi /etc/sysctl.conf # Add by RAC install fs.aio-max-nr = 1048576 fs.file-max = 6815744 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 [root@tpps-ora02 ~]# sysctl -p net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0
kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296 fs.aio-max-nr = 1048576 fs.file-max = 6815744 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
安全限制调整: 节点1
[root@tpps-ora01 ~]# vi /etc/security/limits.conf #Add by RAC install grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 # End of file
节点2
[root@tpps-ora02 ~]# vi /etc/security/limits.conf #Add by RAC install grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 # End of file
会话限制调整: 节点1
[root@tpps-ora01 ~]# vi /etc/pam.d/login # Add by RAC install
session required pam_limits.so
[root@tpps-ora01 ~]#vi /etc/profile