Führen Sie dann die Oracle 11gR2 RAC-Bereitstellung 2 aus
Die Softwareumgebung wird unten erklärt,Beginnen Sie mit der Bereitstellung。
Die virtuelle Umgebung ist:VMware Workstation 10
Plattform für virtuelle Maschinen: OEL linux 5.5 x64
依赖包:
libaio-devel-0.3.106 (i386)
libaio-devel-0.3.106 (x86_64)
sysstat-7.0.2
unixODBC-2.2.11 (i386)
unixODBC-2.2.11 (x86_64)
unixODBC-devel-2.2.11 (i386)
unixODBC-devel-2.2.11 (x86_64)
Datenbanksoftware und Clustersoftware:
Orakel: linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip
Grid: linux.x64_11gR2_grid.zip
asm包:
oracleasm-support-2.1.3-1.el5.x86_64.rpm
oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm
oracleasmlib-2.0.4-1.el5.x86_64.rpm
这次先配node1和node2的主机名,IP Adresse,最后再部署DNS服务。
主机与ip地址规划如下:
配置完成如下所示:
修改node1和node2主机名
vi /etc/hosts 编辑hosts,填写如下内容。
node1 如下:
[root@node1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 node1.localdomain node1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# Knoten1
192.168.137.151 node1.localdomain node1
192.168.137.153 node1-vip.localdomain node1-vip
192.168.119.151 node1-priv.localdomain node1-priv
# Knoten2
192.168.137.152 node2.localdomain node2
192.168.137.154 node2-vip.localdomain node2-vip
192.168.119.152 node2-priv.localdomain node2-priv
# scan-ip
192.168.137.158 scan-cluster.localdomain scan-cluster
node2如下:
[root@node2 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 node2.localdomain node2 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
# Knoten1
192.168.137.151 node1.localdomain node1
192.168.137.153 node1-vip.localdomain node1-vip
192.168.119.151 node1-priv.localdomain node1-priv
# Knoten2
192.168.137.152 node2.localdomain node2
192.168.137.154 node2-vip.localdomain node2-vip
192.168.119.152 node2-priv.localdomain node2-priv
# scan-ip
192.168.137.158 scan-cluster.localdomain scan-cluster
配置DNS服务器
目的是保证scan-ip可以被解析,可以选择在node1或node2上配置,也可以单独配置,这里我单独配置。
DNS服务服务器ip地址192.168.137.61
详细过程如下:
yum install named -y 安装DNS服务
编辑各个配置文件:
以下是主配置文件named.conf
[root @ AMH ~]# vim /var/named/chroot/etc/named.conf
以下是辅助区域配置文件
[root @ AMH ~]# vim /etc/named.rfc1912.zones
zone “localhost.localdomain” IN {
type master;
Datei “named.localhost”;
allow-update { none; };
};
zone “localdomains” IN {
type master;
Datei “localdomain.zone”;
allow-update { none; };
};
zone “localhost” IN {
type master;
Datei “named.localhost”;
allow-update { none; };
};
zone “0.in-addr.arpa” IN {
type master;
Datei “named.empty”;
allow-update { none; };
};
zone “138.168.192.in-addr.arpa” IN {
type master;
Datei “138.168.192.in-addr.arpa”;
allow-update { none; };
};
以下是反向作用域文件
以下是正向解析域文件
配置完成后,执行/etc/init.d/named start 启动DNS服务
node1和node2在 /etc/resolv.conf中填写nameserver 192.168.137.61,保存退出.
测试DNS正反向解析
node1测试
node2测试
可见scan-ip被正常解析. 下一部分将配置RAC 集群软件 ,oracle的用户,Benutzergruppe,Umgebungsvariable,Ressourcenbeschränkungen usw.,然后创建共享磁盘。