12c RAC安装过程
注: 以下配置,没有特殊说明,均在双节点执行
1、网络配置以rac01为例,两node都要配置
eth0和eth1 做bond0
eth2和eth3 做bond1
Mac地址记录如下:
eth0 : 00:0C:29:12:28:2C
eth1 : 00:0c:29:12:28:36
eth2 : 00:0c:29:12:28:40
eth3 : 00:0c:29:12:28:4a
[root@test-rac01 network-scripts]# cat ifcfg-bond0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=bond0
BOOTPROTO=none
BROADCAST=10.109.67.255
IPADDR=10.109.67.52
NETMASK=255.255.255.0
NETWORK=10.109.67.0
USERCTL=no
ONBOOT=yes
GATEWAY=10.109.67.1
TYPE=BOND
[root@test-rac01 network-scripts]# cat ifcfg-bond1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=bond1
BOOTPROTO=none
BROADCAST=193.168.1.255
IPADDR=193.168.1.102
NETMASK=255.255.255.0
NETWORK=193.168.1.0
USERCTL=no
ONBOOT=yes
TYPE=BOND
BONDING_OPTS="mode=1 miimon=50"
[root@test-rac01 network-scripts]# cat ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:0C:29:12:28:2C
MASTER=bond0
ONBOOT=yes
SLAVE=yes
USERCTL=no
TYPE=Ethernet
PEERDNS=yes
IPV6INIT=no
[root@test-rac01 network-scripts]# cat ifcfg-eth1
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:12:28:36
MASTER=bond0
SLAVE=yes
USERCTL=no
TYPE=Ethernet
PEERDNS=yes
IPV6INIT=no
[root@test-rac01 network-scripts]# cat ifcfg-eth2
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth2
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:12:28:40
MASTER=bond1
SLAVE=yes
USERCTL=no
TYPE=Ethernet
PEERDNS=yes
IPV6INIT=no
[root@test-rac01 network-scripts]# cat ifcfg-eth3
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth3
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:12:28:4a
MASTER=bond1
SLAVE=yes
USERCTL=no
TYPE=Ethernet
PEERDNS=yes
IPV6INIT=no
2、内核模块加载[root@rac01 ~]# vi /etc/modprobe.d/dist.conf
添加内容
alias bond0 bonding
alias bond1 bonding
alias scsi_hostadapter2 lpfc
[root@rac01 ~]# vi /etc/modprobe.d/openfwwf.conf
添加内容
options lpfc lpfc_nodev_tmo=30 lpfc_lun_queue_depth=16 lpfc_discovery_threads=32
options hangcheck-timer hangcheck_tick=1 hangcheck_margin=10 hangcheck_reboot=1
options e1000 FlowControl=1
3、关闭sendmail服务[root@test-rac01 ~]# chkconfig sendmail off
[root@test-rac01 ~]# chkconfig --list | grep sendmail
sendmail 0:off 1:off 2:off 3:off 4:off 5:off 6:off
4、配置hosts文件和DNS[root@test-rac01 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 test-rac01 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# Public IP for Oracle 11g RAC
10.109.67.52 rac01.localdomain rac01
10.109.67.53 rac02.localdomain rac02
# Private IP for Oracle 11g RAC
193.168.1.102 rac01pri.localdomain rac01pri
193.168.1.103 rac02pri.localdomain rac02pri
# Virtual IP for Oracle 11g RAC
10.109.67.46 rac01vip.localdomain rac01vip
10.109.67.47 rac02vip.localdomain rac02vip
保证两节点均可以利用host相互通信
配置DNS
[root@rac01 ~]# yum install bind*
Running Transaction
Installing : 32:bind-9.8.2-0.17.rc1.el6_4.6.x86_64 1/3
Installing : 32:bind-chroot-9.8.2-0.17.rc1.el6_4.6.x86_64 2/3
Installing : bind-dyndb-ldap-2.3-5.el6.x86_64 3/3
Verifying : 32:bind-9.8.2-0.17.rc1.el6_4.6.x86_64 1/3
Verifying : 32:bind-chroot-9.8.2-0.17.rc1.el6_4.6.x86_64 2/3
Verifying : bind-dyndb-ldap-2.3-5.el6.x86_64 3/3
Installed:
bind.x86_64 32:9.8.2-0.17.rc1.el6_4.6
bind-chroot.x86_64 32:9.8.2-0.17.rc1.el6_4.6
bind-dyndb-ldap.x86_64 0:2.3-5.el6
Complete!
[root@rac01 u01]# cat /etc/named.rfc1912.zones
zone "localdomain.com" IN {
type master;
file "named.localdomain.com";
allow-update { none; };
};
zone "1.168.193.in-addr.arpa" IN {
type master;
file "named.193.168.1.db";
allow-update { none; };
};
zone "67.109.10.in-addr.arpa" IN {
type master;
file "named.10.109.67.db";
allow-update { none; };
};
[root@rac01 u01]# cat /var/named/chroot/var/named/named.localdomain.com
$TTL 1D
@ IN SOA localdomain.com. root.localdomain.com. (
0 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
rac01vip IN A 10.109.67.46
rac02vip IN A 10.109.67.47
rac01 IN A 10.109.67.52
rac02 IN A 10.109.67.53
rac01pri IN A 193.168.1.102
rac02pri IN A 193.168.1.103
scan-oracle IN A 10.109.67.48
注:此处的scanIP与vip类似,为虚拟IP,无需真实网卡
[root@rac01 u01]# cat /var/named/chroot/var/named/named.10.109.67.db
$TTL 1D
@ IN SOA localdomain.com. root.localdomain.com. (
0 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
52 IN PTR rac01.localdomain.com.
53 IN PTR rac02.localdomain.com.
46 IN PTR rac01vip.localdomain.com.
47 IN PTR rac02vip.localdomain.com.
48 IN PTR scan-oracle.localdomain.com.
[root@rac01 u01]# cat /var/named/chroot/var/named/named.193.168.1.db
$TTL 1D
@ IN SOA localdomain.com. root.localdomain.com. (
0 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ) ; minimum
NS @
A 127.0.0.1
AAAA ::1
102 IN PTR rac01pri.localdomain.com.
103 IN PTR rac02pri.localdomain.com.
更多详情见请继续阅读下一页的精彩内容:
Oracle 单实例 从32位 迁移到 64位 方法
在CentOS 6.4下安装Oracle 11gR2(x64)
Oracle 11gR2 在VMWare虚拟机中安装步骤
Debian 下 安装 Oracle 11g XE R2