11gR2 Grid Infrastructure Installation prerequisites On LINUX
基础环境
服务器品牌
IBM
服务器型号
X3650M2
cpu类型
Intel Xeon E5620 @ 2.40GHz
cpu个数
2
内存大小
24G
磁盘阵列
DS3200
硬盘大小
1.8TB
软件准备:
-- Oracle Database (includes Oracle Database and Oracle RAC)
p10404530_112030_platform_1of7.zip
p10404530_112030_platform_2of7.zip
--Oracle Grid Infrastructure (includes Oracle ASM, Oracle Clusterware, and Oracle Restart)
p10404530_112030_platform_3of7.zip
1 配置yum源
vim /etc/yum.repos.d/rhel-debuginfo.repo
ORADB1:
[Server]
name=Server
baseurl=file:///mnt/Server
enabled=1
gpgcheck=0
ORADB2:
[Server]
name=Server
baseurl=ftp://oradb1/pub/Server
enabled=1
gpgcheck=0
2 同时检查以下包是否被安装
rpm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n" \
binutils \
compat-libstdc++-33 \
elfutils-libelf \
elfutils-libelf-devel \
gcc \
gcc-c++ \
glibc \
glibc-common \
glibc-devel \
glibc-headers \
ksh \
libaio \
libaio-devel \
libgcc \
libstdc++ \
libstdc++-devel \
make \
sysstat \
unixODBC \
unixODBC-devel
通过检查发现我的系统一下4个包没有安装:
package libaio-devel is not installed
package sysstat is not installed
package unixODBC is not installed
package unixODBC-devel is not installed
package sysstat is not installed
--挂载CD镜像到mnt目录下:
[root@localhost tmp]# mount /dev/cdrom /mnt/
mount: block device /dev/cdrom is write-protected, mounting read-only
--yum 安装这几个包
[root@localhost tmp]# yum install libaio-devel package libaio-devel unixODBC unixODBC-devel sysstat –y
--yum 安装第二个节点的时候可以重新挂载
[root@localhost tmp]# mount /dev/cdrom /var/ftp/pub/
mount: block device /dev/cdrom is write-protected, mounting read-only
3.关掉大部分不用服务(可能因人因环境而异).
chkconfig bluetooth --level 2345 off
chkconfig ip6tables --level 2345 off
chkconfig portmap --level 2345 off
chkconfig sendmail --level 2345 off
chkconfig vsftpd --level 2345 off
chkconfig iptables off
chkconfig ntpd off
4 在每一个节点上配置/etc/hosts文件,文件内容如下
# Public Network ? (eth0)
10.0.18.12 oradb1.bdstar.com oradb1
10.0.18.13 oradb2.bdstar.com oradb2
# Public Virtual IP (VIP) addresses ? (eth0:1)
10.0.18.120 oradb1-vip.bdstar.com oradb1-vip
10.0.18.130 oradb2-vip.bdstar.com oradb2-vip
# Private Interconnect ? (eth1)
10.10.10.120 oradb1-priv.bdstar.com oradb1-priv
10.10.10.130 oradb2-priv.bdstar.com oradb2-priv
#Compute node Client Access SCAN Inte易做图ce details
10.0.18.36 oradb-scan.bdstar.com oradb-scan
5 修改主机名
[root@localhost ~]# vim /etc/sysconfig/network
Oradb1上添加如下:
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=oradb1.bdstar.com
Oradb2上添加如下:
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=oradb1.bdstar.com
6 配置集群时间同步服务 — (CTSS)
--不采用系统上的NTP服务,利用oracle集群的CTSS服务
[root@racnode1 ~]# /sbin/service ntpd stop
[root@racnode1 ~]# chkconfig ntpd off
[root@racnode1 ~]# mv /etc/ntp.conf /etc/ntp.conf.original
还要删除以下文件:
[root@racnode1 ~]# rm /var/run/ntpd.pid
7 内核参数的配置
[root@rac1 ~]# cd /etc/
[root@rac1 etc]# 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
net.ipv4.ip_local_port_range = 9000 65500
fs.file-max = 6815744
fs.suid_dumpable = 1
fs.aio-max-nr = 1048576
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
8 DNS的配置
只在节点1做一个DNS服务端即可:
[root@localhost etc]# yum install bind bind-chroot caching-nameserver
# vim /var/named/chroot/etc/named.conf
options {
directory "/var/named";
};
zone "localdomain" in {
type master;
file "localdomain.zone";
};
zone "bdstar.com" IN {
type master;
file "bdstar.com.zone";
};
[root@oradb1 ~]# cd /var/named/chroot/var/named/
[root@oradb1 named]# vim bdstar.com.zone
$TTL 86400
@ IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
@ IN NS oradb1.bdstar.com.
oradb1 IN A 10.0.18.12
oradb2 IN A 10.0.18.13
oradb1-vip IN A 10.0.18.120
oradb2-vip IN A &nb