开始安装过程一切正常,在安装CRS即将结束时需要root在两个节点上执行两个脚本,node2在执行最后一个脚本时报错,是public地址的问题,和老师PPT上描述的一样,手动执行vipca配置也一切正常,正常退出vipca后就在继续完成CRS安装的最后步骤时CRS助手报错了,“Oracle Cluster verification Utility”这项失败;

检查configToolAllCommands如下:

rac1-> cat configToolAllCommands

# Copyright (c) 1999, 2005, Oracle. All rights reserved.

/u01/app/oracle/product/10.2.0/crs_1/bin/racgons add_config rac1.oracle.com:6200  rac2.oracle.com:6200

/u01/app/oracle/product/10.2.0/crs_1/bin/oifcfg setif -global  eth0/192.168.10.0:public eth1/10.0.0.0:cluster_interconnect

/u01/app/oracle/product/10.2.0/crs_1/bin/cluvfy stage -post crsinst -n rac1,rac2

手动进行verification信息如下:

rac1-> /u01/app/oracle/product/10.2.0/crs_1/bin/cluvfy stage -post crsinst -n rac1,rac2

Performing post-checks for cluster services setup

Checking node reachability...

Node reachability check passed from node "rac1".

Checking user equivalence...

User equivalence check passed for user "oracle".

Checking Cluster manager integrity...

Checking CSS daemon...

Daemon status check passed for "CSS daemon".

Cluster manager integrity check passed.

Checking cluster integrity...

Cluster integrity check passed

Checking OCR integrity...

Checking the absence of a non-clustered configuration...

All nodes free of non-clustered, local-only configurations.

Uniqueness check for OCR device passed.

Checking the version of OCR...

OCR of correct Version "2" exists.

Checking data integrity of OCR...

ERROR:

OCR integrity results are inconsistent amongst the nodes.

OCR integrity found invalid for nodes: rac2        /*问题出在这了*/

OCR integrity found valid for nodes: rac1

OCR integrity check failed.

Checking CRS integrity...

Checking daemon liveness...

Liveness check passed for "CRS daemon".

Checking daemon liveness...

Liveness check passed for "CSS daemon".

Checking daemon liveness...

Liveness check passed for "EVM daemon".

Checking CRS health...

CRS health check passed.

CRS integrity check passed.

Checking node application existence...

Checking existence of VIP node application (required)

Check passed.

Checking existence of ONS node application (optional)

Check passed.

Checking existence of GSD node application (optional)

Check passed.

Post-check for cluster services setup was unsuccessful on all the nodes.

接着查看CRS日志:

[root@rac2 rac2]# cat alertrac2.log

2010-11-23 01:50:03.156

[client(7343)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/oracle/product/10.2.0/crs_1/log/rac2/client/ocrconfig_7343.log.

2010-11-23 01:50:03.164

[client(7343)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/oracle/product/10.2.0/crs_1/log/rac2/client/ocrconfig_7343.log.

2010-11-23 01:50:03.168

[client(7343)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /u01/app/oracle/product/10.2.0/crs_1/log/rac2/client/ocrconfig_7343.log.

2010-11-23 01:50:03.226

[client(7343)]CRS-1001:The OCR was formatted using version 2.

2010-11-23 01:50:11.241

[client(7399)]CRS-1801:Cluster crs configured with nodes rac1 rac2 .

2010-11-23 01:52:27.597

[cssd(7851)]CRS-1605:CSSD voting file is online: /dev/raw/raw2. Details in /u01/app/oracle/product/10.2.0/crs_1/log/rac2/cssd/ocssd.log.

2010-11-23 01:52:31.776

[cssd(7851)]CRS-1601:CSSD Reconfiguration complete. Active nodes are rac1 rac2 .

2010-11-23 01:52:34.081

[crsd(7537)]CRS-1012:The OCR service started on node rac2.

2010-11-23 01:52:34.118

[evmd(7789)]CRS-1401:EVMD started on node rac2.

2010-11-23 01:52:36.817

[crsd(7537)]CRS-1201:CRSD started on node rac2.

原来是/dev/raw/raw1 is inaccessible!估计又是虚拟机的问题~~~

到此就基本定位了是OCR的问题了,并且是共享存储存在问题导致/dev/raw/raw1 is inaccessible

下面就是发挥想象力排错了,先把$ORA_CRS_HOME/bin 下所有关于ocr的命令出来研究一下....

发现有个检查ocr的命令ocrcheck,经检测,又一次验证了问题所在

[root@rac2 bin]# ./ocrcheck

Status of Oracle Cluster Registry is as follows :

Version                  :          2

Total space (kbytes)     :     200692

Used space (kbytes)      :       1980

Available space (kbytes) :     198712

ID                       : 1293702471

Device/File Name         : /dev/raw/raw1

Device/File integrity check failed

Device/File not configured

Cluster registry integrity check failed

[root@rac1 bin]# ./ocrcheck

Status of Oracle Cluster Registry is as follows :

Version                  :          2

Total space (kbytes)     :     200692

Used space (kbytes)      :       1980

Available space (kbytes) :     198712

ID                       : 1293702471

Device/File Name         : /dev/raw/raw1

Device/File integrity check succeeded

Device/File not configured

Cluster registry integrity check succeeded

后来又发现了ocrconfig,这个命令里有个-export,-import;目前node1是好的只是node2有问题,根据对RAC一知半解的概念分析OCR中的内容应该是同步的,估计在node1将OCR导出再导入到node2中应该没问题。但是从刚才的OCR检测信息看OCR还有个Version ,这么说貌似这个东西还在不停的变化中。

基于这两点考虑,决定在导入导出前将两个节点的CRS全关闭。

下面就是步骤了:

[root@rac1 bin]# ./crsctl stop crs

Stopping resources.

Successfully stopped CRS resources

Stopping CSSD.

Shutting down CSS daemon.

Shutdown request successfully issued.

[root@rac2 bin]# ./crsctl stop crs

Stopping resources.

Successfully stopped CRS resources

Stopping CSSD.

Shutting down CSS daemon.

Shutdown request successfully issued.

[root@rac1 bin]# ./ocrconfig -export /root/ocr.dmp

[root@rac2 bin]# ./ocrconfig -import /root/ocr.dmp

[root@rac1 bin]# ./crsctl start crs

Attempting to start CRS stack

The CRS stack will be started shortly

[root@rac2 bin]# ./crsctl start crs

Attempting to start CRS stack

The CRS stack will be started shortly

[root@rac2 bin]# ./crs_stat -t -v

Name           Type           R/RA   F/FT   Target    State     Host

----------------------------------------------------------------------

ora.rac1.gsd   application    0/5    0/0    ONLINE    ONLINE    rac1

ora.rac1.ons   application    0/3    0/0    ONLINE    ONLINE    rac1

ora.rac1.vip   application    0/0    0/0    ONLINE    ONLINE    rac1

ora.rac2.gsd   application    0/5    0/0    ONLINE    ONLINE    rac2

ora.rac2.ons   application    0/3    0/0    ONLINE    ONLINE    rac2

ora.rac2.vip   application    0/0    0/0    ONLINE    ONLINE    rac1

[root@rac2 bin]# ./ocrcheck

Status of Oracle Cluster Registry is as follows :

Version                  :          2

Total space (kbytes)     :     200692

Used space (kbytes)      :       1980

Available space (kbytes) :     198712

ID                       :  161137417

Device/File Name         : /dev/raw/raw1

Device/File integrity check succeeded

Device/File not configured

Cluster registry integrity check succeeded

居然搞定了~但是个人认为一半是瞎搞,请老师再深入剖析一下吧!

此为梦游作,逻辑混乱,错别字等,请海涵!

遇到oracle错误1012,跟着感觉走,解决安装RAC过程中OCR完整性错误,待深入剖析...相关推荐

  1. dos2unix 解决脚本执行过程中的莫名错误 “not found”

    脚本编码异常解决方案 : not found kill.sh: 原因: 由于编码异常,代码中有^M等看不见的字符,脚本解释器执行异常. 解决方案:用dos2unix把脚本转码,消除异常字符. apt ...

  2. 解决“安装VMM过程中无法注册SPN以及SCP”问题一例

    近日由于实验环境出现问题,故重新安装Virtual Machine Manager 2012 R2,安装最后出现以下问题. 并从问题描述中得知所造成的问题是"如果未注册 SPN 和 SCP, ...

  3. win10解决安装jdk过程中javac不是内部或外部命令办法

    最近重新装了一次JDK1.8,装好后发现在cmd中输入javac一直显示不是内部或外部命令,但输入java是没得问题的.总结了网上的办法,都尝试了一遍,最后总结了一下自己的方法: 1.第一步,此电脑- ...

  4. Linux那些事儿之我是U盘(49)跟着感觉走(一)

    接下来的时间里我们会接触两个变量,fake_sense和need_auto_sense,sense顾名思义,感觉.所以就让我们跟着感觉走.我们前面提到过,如果设备想发送比期望值更多的数据,那么我们前面 ...

  5. Linux那些事儿之我是U盘(50)跟着感觉走(二)

    回到usb_stor_invoke_transport()中来,540行,还是老套路,又问是不是命令被放弃了,放弃了当然下面的就别执行了.goto Handle_Abort去. 546行,如果有错误, ...

  6. oracle 10grac搭建,搭建ORACLE 10g RAC过程中出现 OUI-25031 的解决办法

    OS 版本是:Enterprise Linux Enterprise Linux Server release5.4 DB版本是:Oracle Database 10g Enterprise Edit ...

  7. hadoop过程中遇到的错误与解决方法

    hadoop过程中遇到的错误与解决方法 参考文章: (1)hadoop过程中遇到的错误与解决方法 (2)https://www.cnblogs.com/zhjh256/p/10669881.html ...

  8. 编译apache过程中出现如下错误及解决办法

    在编译apache的过程中出现如下错误: no SSL-C headers found configure: error: ...No recognized SSL/TLS toolkit detec ...

  9. 拯救者Y9000P 安装Ubuntu18.04 、Ros Melodic等相关配置过程中出现的错误及解决办法

    电脑配置:拯救者Y9000P 2022 i9 3060 目录 一.安装Ubuntu18.04 1.安装UltralSO时无法写入镜像文件,显示磁盘/映像空间太小 2.由于2022拯救者Y9000PBI ...

最新文章

  1. js 将二进制流html导出excel,js 实现纯前端将数据导出excel
  2. HDOJ 1253 HDU 1253 胜利大逃亡 ACM 1253 IN HDU
  3. Windows phone listbox动态添加列表项
  4. rxjs里的Observable对象subscribe方法的执行原理
  5. SQL终极优化(包括很多非索引方面的优化和原理)
  6. ios 应用商店_如何在预算范围内制作值得应用商店使用的iOS应用预览
  7. JDK动态代理的实现原理
  8. 必看!建立内部邮件服务器注意要点
  9. 2月7日 SVM线性回归逻辑回归
  10. 【学习笔记】cs231n-assignment1-two_layer_net
  11. WINRM实现端口复用后门
  12. 关于WIN10系统无法打开CHM文件
  13. 编译原理—实验二LL(1)语法分析(一)
  14. Java基础语法之数组练习——循环输出数列的值并求和
  15. 终于找到了T5L串口屏按键值不能上传的原因
  16. grep比对两个文件的差异
  17. python爬取bilibili数据_如何使用Python爬取bilibili视频(详细教程)
  18. Android大厂面试题系统分类从基础到困难(BATJ,蚂蚁金服,字节跳动,网易云,QQ音乐...)
  19. 问题 I: 水流问题
  20. 谷歌chrome浏览器ERR_SPDY_PROTOCOL_ERROR错误

热门文章

  1. 【Nginx那些事】nginx配置实例(一)反向代理
  2. mysql的sql执行过程和explain语句
  3. golang中的variable和data types
  4. php 三元预算? :_项目预算:一种反模式
  5. github ssh密钥_如何使用SSH密钥在一台机器上管理多个GitHub帐户
  6. react 代码编写原则_如何编写易读的React代码— 10种编码风格技巧
  7. 如何使用async / await和Firebase数据库编写漂亮的Node.js API
  8. logagent同步mysql_LogAgent的工作流程
  9. mysql8安装步骤及排坑
  10. Auto Encoder再学习