ITPub博客

首页 > 数据库 > Oracle > '+CRS' in '/etc/oracle/ocr.loc' and '/dev/raw/raw1' does not match

'+CRS' in '/etc/oracle/ocr.loc' and '/dev/raw/raw1' does not match

Oracle 作者:urgel_babay 时间:2016-02-29 17:27:32 0 删除 编辑
2014.12.05
   
         今天在做10gR2 rac的时候遇见了下面这个问题:
[root@zhanglin2 oraInventory]# /u01/app/oracle/product/10.2.0/crs_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
Current Oracle Cluster Registry location '+CRS' in '/etc/oracle/ocr.loc' and '/dev/raw/raw1' does not match
Update either '/etc/oracle/ocr.loc' to use '/dev/raw/raw1' or variable CRS_OCR_LOCATIONS in rootconfig.sh with '+CRS' then rerun rootconfig.sh
[root@zhanglin2 oraInventory]# 

我是使用裸设备来存放ocr和votingdisk。这个问题是因为oracle找不到存放OCR的位置。

解决方法:
[root@rac1 ~]# cat /etc/oracle/ocr.loc
ocrconfig_loc=+OCR 
local_only=FALSE

[root@rac1 oracle]# cat ocr.loc
ocrconfig_loc=/dev/raw/raw1  ---- 修改为裸设备的位置
local_only=FALSE

然后再次运行第二个脚本:
[root@zhanglin2 oracle]# /u01/app/oracle/product/10.2.0/crs_1/root.sh
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/u01/app/oracle/product' is not owned by root
WARNING: directory '/u01/app/oracle' is not owned by root
WARNING: directory '/u01/app' is not owned by root
WARNING: directory '/u01' is not owned by root
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac2 rac2-priv rac2
node 2: rac1 rac1-priv rac1
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30936525/viewspace-2016681/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2016-02-29

  • 博文量
    203
  • 访问量
    339143