最多的就是在第二个节点上面执行root.sh时候会出错,我基本上把网上常见的错误都遇到过了,因此在这里整理一下:java
1.安装rac的节点时间必须同步不然会出现node
2.共享存储问题,我遇到的这个问题基本上是vmware中共享存储设置问题,在创建共享磁盘时候选择当即分配全部磁盘空间以后就再也没有出现过oracle
- PROT-1: Failed to initialize ocrconfig
- Failed to upgrade Oracle Cluster Registry configuration
3.遭遇到oracle bug 4679769,下载补丁p4679769_10201_LINUX.zipide
- Setting the permissions on OCR backup directory
- Setting up NS directories
- Failed to upgrade Oracle Cluster Registry configuration
下载补丁以后按照补丁文件中的说明操做便可spa
- cp $ORACLE_HOME/bin/clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin.bak
- cp clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin
- chmod 755 $ORACLE_HOME/bin/clsfmt.bin
而后从新运行root.sh脚本3d
4.blog
- /home/oracle/oracrs/product/10.2.0/crs/jdk//jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
这里又是一个bug,手动修改两个文件,在文件中添加以下设置ip
/home/oracle/oracrs/product/10.2.0/crs/bin/srvctlget
/home/oracle/oracrs/product/10.2.0/crs/bin/vipca同步
而后保存退出从新运行root.sh脚本
5.The given interface(s), "eth0" is not public. Public interfaces should be used to configure virtual IPs.
手动运行vipca配置node1和node2的虚IP便可
6.
- Error 0(Native: listNetInterfaces:[3])
- [Error 0(Native: listNetInterfaces:[3])]
若是遇到了这个错误:
- [root@node2 bin]# ./oifcfg iflist
- eth1 172.16.1.0
- eth0 192.168.183.0
- [root@node2 bin]# ./oifcfg setif -global eth0/192.168.183.0:public
- [root@node2 bin]# ./oifcfg setif -global eth1/172.16.1.0:cluster_interconnect
- [root@node2 bin]# ./oifcfg getif
- eth0 192.168.183.0 global public
- eth1 172.16.1.0 global cluster_interconnect
而后从新手动运行vipca便可