这两天做了个实验,在windows2003上安装Oracle 10.2.0.1 RAC,使用盘阵是用ISCSI模拟的。
配置过程大致如下:
1、配HOSTS文件
127.0.0.1 localhost
192.168.0.247 rac2
192.168.0.249 rac2-vip
10.10.10.247 rac2-priv
192.168.0.246 rac1
192.168.0.248 rac1-vip
10.10.10.246 rac1-priv[@more@]
2、设置公网IP、私网IP,重命名网卡;并调整网卡顺序,公网在前
3、修改注册表
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters
新建DWORD值-->DisableDHCPMediaSense=1
4、设置交换分区最大值为内存的2倍
5、添加ISCSI共享磁盘,创建OCR、VOTE、ASM三个裸盘
这步有个最关键的问题,安装之前需要执行下面的操作,否则在配置网络助手时会下面报错:
PROT-1: 无法初始化 ocrconfig
Step 1: checking status of CRS cluster
Step 2: creating directories (D:oracleproduct10.2.0crs)
Step 3: configuring OCR repository
ocr upgrade failed with (-1)
解决方法如下:
in windows is the Automount option is enabled?
Please use the diskpart utility to find the mount status
if not please enable the automount option andreboot the server
具体命令:
CMD-->DISKPART-->automount enable
6、设置本地磁盘共享
其实,在2003中默认的盘区都是共享的,我在这里又把oracle文件夹共享了。
在RAC1上:
C:Documents and SettingsAdministrator>net use
C:Documents and SettingsAdministrator>net use
7、安装clusterware
D:clusterwarecluvfy>D:clusterwarecluvfyruncluvfy.bat stage -pre crsinst -n rac1,rac2 -verbose
在执行配置助手时,在VIP项报错,这时执行VIPCA(在哪个节点运行都行),然后继续就行了,不用管错误。
8、安装software
9、NETCA
10、DBCA