在Solaris中安装Veritas DBAC for Oracle RAC


一、 安装Solaris 9 8/03版本,由于该版本是Solaris操作系统的最新版,所以无需在安装补丁程式。
二、 使用Sun公司发布的补丁盘,安装SUNWsan软件包和补丁包
三、 为要安装Oracle RAC的Sun V880配置好网络
主机A:
机器名:rac1
网卡 eri0:192.0.0.101/255.255.255.0 用于做心跳网卡2
网卡 ge0:192.0.1.101/255.255.255.0 用于做心跳网卡1
网卡 ce0:172.39.199.101/255.255.255.0 用于做对外服务网卡

主机A具体配置文档如下:
l /etc/hosts文档的内容:
#
# Internet host table
#
127.0.0.1 localhost
192.168.0.101 rac1 loghost a.b
192.168.0.102 rac2
192.168.1.101 rac1-ge0
172.39.199.101 rac1-ce0

l /etc/netmasks文档的内容
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center. Currently this number is restricted to being a class
# A, B, or C network number. In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
192.168.0.0 255.255.255.0
172.39.199.0 255.255.255.0

l /etc/hostname.eri0文档的内容:
rac1

l /etc/hostname.ge0文档的内容:
rac1-ge0

l /etc/hostname.ce0文档的内容:
rac1-ce0

l /etc/hosts.equiv文档的内容:


l /etc/notrouter文档是个空文档

l /etc/defaultrouter文档的内容
172.16.199。254

l /.rhosts文档的内容
rac1
rac2


主机B:
机器名:rac2
网卡 eri0:192.0.0.102/255.255.255.0 用于做心跳网卡2
网卡 ge0:192.0.1.102/255.255.255.0 用于做心跳网卡1
网卡 ce0:172.39.199.102/255.255.255.0 用于做对外服务网卡

具体配置文档如下:
l /etc/hosts文档的内容:
#
# Internet host table
#
127.0.0.1 localhost
192.168.0.102 rac2 loghost a.b
192.168.0.101 rac1
192.168.1.102 rac2-ge0
172.39.199.102 rac2-ce0

l /etc/netmasks文档的内容
#
# The netmasks file associates Internet Protocol (IP) address
# masks with IP network numbers.
#
# network-number netmask
#
# The term network-number refers to a number obtained from the Internet Network
# Information Center. Currently this number is restricted to being a class
# A, B, or C network number. In the future we should be able to support
# arbitrary network numbers per the Classless Internet Domain Routing
# guidelines.
#
# Both the network-number and the netmasks are specified in
# "decimal dot" notation, e.g:
#
# 128.32.0.0 255.255.255.0
#
192.168.0.0 255.255.255.0
172.39.199.0 255.255.255.0

l /etc/hostname.eri0文档的内容:
rac2

l /etc/hostname.ge0文档的内容:
rac2-ge0

l /etc/hostname.ce0文档的内容:
rac2-ce0

l /etc/hosts.equiv文档的内容:


l /etc/notrouter文档是个空文档

l /etc/defaultrouter文档的内容
172.16.199.254

l /.rhosts文档的内容
rac1
rac2


四、 为两台主机的终极用户加上如下环境变量

l 在文档/。Profile中加上以下内容
PATH=/sbin:/usr/sbin:/usr/bin:/usr/lib/vxvm/bin:/usr/lib/fs/vxfs:/opt/VRTSvxfs/sbin:\
/opt/VRTSvcs/bin:/opt/VRTSvcs/rac/bin:/opt/VRTSob/bin:$PATH
export PATH

MANPATH=/usr/share/man:/opt/VRTS/man
export MANPATH


五、 使用终极用户的身份登录到系统RAC1上,将VERITAS DBE/AC for Oracle9i RAC software介质放入RAC1的CDROM中,等待一会后,运行Veritas安装脚本。

以下黑体字部分是安装时需要输入的信息,采用C语言的注释方法进行中文说明。

# cd /cdrom/database_ac_for_oracle9i
# ./installDBAC
/* 运行DBAC的安装脚本 */

Enter the names of the systems on which VCS is to be installed
separated by spaces (example: system1 system2): rac1 rac2
/* 以上是输入集群的任何主机名,主机名之间用空格分开 */

Analyzing . . .
/*系统开始检查和分析:1、是否有足够的磁盘空间来安装软件包2、SUNWsan软件包和其补丁是否已安装3、用户是否具备终极用户的权限4、系统是否已安装了VRTSvlic软件包,假如没有的话,就将该软件包安装在系统上*/

You do not have a Database Edition for Advanced Cluster license installed on rac1.
Do you want to add a license key for this product on rac1 ?[Y/N](Y) y
Enter your license key : XXXX-XXXX-XXXX-XXXX-XXXX-XXX
Registering license for rac1.
You do not have a Database Edition for Advanced Cluster license installed on rac2.
Do you want to add a license key for this product on rac2 ?[Y/N](Y) y
Enter your license key : XXXX-XXXX-XXXX-XXXX-XXXX-XXX
Registering license for rac2.

文章整理:西部数码--专业提供域名注册虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!