Oracle RAC 11g安装测试问题小结(还未测试成功)
国庆节前就开始着手进行Oracle RAC 11g的安装测试,先看了刘宪军著的《Oracle RAC 11g实战指南》,然后又在网上参考了别人的安装说明和安装视频。最后想在国庆节亲测一下,没想到还正应了书上的那句话:初次安装RAC,失败率是100%。试了三次。
参考文档:
[安装部署] 【视频教学】Maclean教你用Vbox在Linux 6.3上安装Oracle 11gR2 RAC
http://t.askmaclean.com/thread-2007-1-1.html
Oracle 11g RAC安装系列
http://www.oracleonlinux.cn/rac/
使用UDEV在Oracle Linux 6上安装Oracle 11g RAC(11.2.0.3) (一)
http://blog.csdn.net/staricqxyz/article/details/8447495
使用UDEV在Oracle Linux 6上安装Oracle 11g RAC(11.2.0.3) (二)
http://blog.csdn.net/staricqxyz/article/details/8447684
使用UDEV在Oracle Linux 6上安装Oracle 11g RAC(11.2.0.3) (三)
http://blog.csdn.net/staricqxyz/article/details/8447985
使用UDEV在Oracle Linux 6上安装Oracle 11g RAC(11.2.0.3) (四)
http://blog.csdn.net/staricqxyz/article/details/8448611
使用UDEV在Oracle Linux 6上安装Oracle 11g RAC(11.2.0.3) (五)
http://blog.csdn.net/staricqxyz/article/details/8449850
RAC Grid Infrastructure安装11.2.0.3.5 14727347 PSU GI-RDBMS补丁
http://blog.csdn.net/askmaclean/article/details/8703698
Vmware+Linux+Oracle 10G RAC全程详细图解
http://www.linuxidc.com/Linux/2011-02/31976p5.htm
VBOX+OEL5.7上安装ORACLE11G RAC详细过程
http://blog.csdn.net/haibusuanyun/article/details/11557661
lsof -i
http://blog.itpub.net/21162451/viewspace-721938
libcap.so.1:cannot open shared object file: No such file or directory
http://blog.itpub.net/21754115/viewspace-1118529/
Oracle 11gR2 RAC ohasd failed to start 解决方法
http://blog.csdn.net/meteorlet/article/details/8363745
Oracle ASM+11gR2安装
http://blog.itpub.net/26224914/viewspace-1290146/
Oracle 11g RAC ohasd failed to start at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443 解决方法
分类: Oracle Troubleshooting Oracle RAC
http://blog.csdn.net/tianlesoftware/article/details/7697366
RAC 卸载 说明
http://blog.csdn.net/tianlesoftware/article/details/5892225
在redhat 6.2上安装oracle 11.2--RAC时报ADVM/ACFS is not supported
http://blog.itpub.net/25133597/viewspace-1058569/
一步一步在Linux上安装Oracle 11gR2 RAC (8--完结)
http://www.oracleonlinux.cn/2012/06/step-by-step-install-11gr2-rac-on-linux-8/
1.第一次测试
测试系统是:CentOS 5.5_32bit
数据库软件:linux_11gR2_database_1of2.zip,linux_11gR2_database_2of2.zip,linux_11gR2_grid.zip
第一次安装时为了解决虚拟机的共享磁盘问题就花了好长时间。
最后终于到了安装Grid前的安装检查:
[grid@server1 grid]$ ./runcluvfy.sh stage -post hwos -n server1,server2 -verbose
检查后会有个fix脚本,按提示执行就可以了。
安装时出现出现问题;
经查:
Failed to create or upgrade OLR
http://blog.csdn.net/leshami/article/details/8294969
对于Oracle 11g RAC 的安装,与Oracle 10g(clusterware)类似,grid 安装完毕后需要执行orainstroot.sh和root.sh,如果是AMD芯片,Oracle说不认识。
——呵呵,到这里才说不认识AMD芯片。。。。
下载补丁:
[grid@server1 grid]$ cd /u01/app/11.2.0/grid/OPatch
[grid@server1 grid]$ ./opatch apply /mnt/hgfs/sharefiles/oracle11g/OPatch/8670579
找到补丁后 ,打完补丁再试,还是不行。遂决定重新来过。
#注意patch的时候check一下ORACLE_HOME环境变量以及perl -v 查看perl的版本,应当高于5.00503
#感觉Oracle 11g 32 bit版本问题挺多的。尽可能安装64bit测试。
还有一点说明,安装oracle database后也要patch 8670579,否则dbca报错。
2.第二次测试
测试系统:CentOS 6.5_64bit
数据库软件:oracle11g_64bit_11.2.0.1
在11.2GI的安装过程中,当拷贝到远程节点时OUI 挂起(65%处)
http://blog.csdn.net/msdnchina/article/details/43879097
症状:
11.2 GI的OUI安装在65%的时候挂起,此时正在拷贝文件到远程节点。
最后一步显示 拷贝GRID 软件目录到远程及诶单
去检查远程节点发现:没有软件被拷贝过来。
原因
这个问题是由于在两个节点之间有防火墙导致的
解决方案
关闭防火墙然后重试安装。
步骤如下:
1. 取消掉当前的安装
2. 同你的系统管理员和网络管理员一起工作,务必保证:在你的cluster中的所有节点上,没有任何的防火墙
3. 重新安装
所以记得在关闭防火墙之后,还要修改防火墙的配置文件:
关闭FIREWALL和Disable SElinux
vi /etc/selinux/config ==>SELINUX=disabled
因为防火墙的原因,节点2上的文件都没有拷贝全,节点一又碰到11.0.2.1的经典问题ohasd failed to start at/u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443.问题。
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
ohasd failed to start: Inappropriate ioctl for device
ohasd failed to start at /u01/app/grid/11.2.0/grid_1/crs/install/rootcrs.pl line 443.
同时CentOS缺少一些的包,这些包怎么也找不到。明明安装的是64bit的系统,非要i386的相关包。
libaio-0.3.105 (i386) failed
compat-libstdc++-33-3.2.3 (i386) failed
libaio-devel-0.3.105 (i386) failed
libgcc-3.4.6 (i386) failed
libstdc++-3.4.6 (i386) failed
unixODBC-2.2.11 (i386) failed
unixODBC-devel-2.2.11 (i386) failed
因为花费了太多时间,故放弃这一轮。
3.第三次测试
测试环境:OracleLinux-R6-U3-x86_64
数据库软件:oracle11g_64bit_11.2.0.3
使用oracle的linux就是方便,直接更新系统就把需要的包装好了。更新系统
yum -y install oracle-rdbms-server-11gR2-preinstall
在后面安装的前校验发现swap空间不足,需要至少4G才行。
参考文档:
解决交换分区swap不足的问题
http://www.wenkuxiazai.com/doc/c4aaa91afad6195f312ba666.html
最后Grid安装前的检验通过了:
[grid@server1 ~]$ cd /mnt/hgfs/sharefiles/oracle11g_64bit/11.2.0.3/grid
[grid@server1 grid]$ ./runcluvfy.sh stage -pre crsinst -n server1,server2 -fixup -verbose
Performing pre-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "server1"
Destination Node Reachable?
------------------------------------ ------------------------
server2 yes
server1 yes
Result: Node reachability check passed from node "server1"
Checking user equivalence...
Check: User equivalence for user "grid"
Node Name Status
------------------------------------ ------------------------
server2 passed
server1 passed
Result: User equivalence check passed for user "grid"
Checking node connectivity...
Checking hosts config file...
Node Name Status
------------------------------------ ------------------------
server2 passed
server1 passed
Verification of the hosts config file successful
Interface information for node "server2"
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
------ --------------- --------------- --------------- --------------- ----------------- ------
eth1 192.168.25.12 192.168.25.0 0.0.0.0 192.168.3.1 00:0C:29:E5:C0:4D 1500
eth0 192.168.3.183 192.168.3.0 0.0.0.0 192.168.3.1 00:0C:29:E5:C0:43 1500
Interface information for node "server1"
Name IP Address Subnet Gateway Def. Gateway HW Address MT