Oracle RAC 安装 运行 root.sh时报Failed to upgrade Oracle Cluster Registry configuratio

By | 04月21日
Advertisement

CentOS 5.4 x86 Linux安装oracle rac 10.2.0.1的过程中,运行root.sh的时候报如下错误:

[email protected][/oracle/crs/10.1/bin]> cd ..
[email protected][/oracle/crs/10.1]> ./root.sh
WARNING: directory '/oracle/crs' is not owned by root
WARNING: directory '/oracle' 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
Failed to upgrade Oracle Cluster Registry configuration

metalink上查询到doc id为 466673.1,按如下方法解决

检查clsfmt命令运行状况

[email protected][/oracle/crs/10.1/bin]> ./clsfmt ocr /dev/raw/raw1
clsfmt: Received unexpected error 4 from skgfifi
skgfifi: Additional information: -2
Additional information: 104857600

下载补丁284719,并用补丁中的clsfmt.bin替换$CRS_HOME/bin/clsfmt.bin文件

[email protected][/tmp]> unzip *zip
Archive: p4679769_10201_LINUX.zip
creating: 4679769/
inflating: 4679769/clsfmt.bin
inflating: 4679769/README.txt
[email protected][/tmp]> cd 4679769/
[email protected][/tmp/4679769]> cp clsfmt.bin /oracle/crs/10.1/bin/

再次运行root.sh脚本

[email protected][/oracle/crs/10.1]> ./root.sh
WARNING: directory '/oracle/crs' is not owned by root
WARNING: directory '/oracle' 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
Failed to upgrade Oracle Cluster Registry configuration

发现还是出错。

检查$CRS_HOME/log/rac1/client/下的日子文件,发现如下信息,显示ocr格式错误:

[email protected][/oracle/crs/10.1/log/rac1/client]> vi *6140.log

Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
2010-04-24 21:32:12.928: [ OCRCONF][1668768]ocrconfig starts...
2010-04-24 21:32:12.930: [ OCRCONF][1668768]Upgrading OCR data
2010-04-24 21:32:13.142: [ OCRRAW][1668768]propriogid:1: INVALID FORMAT
2010-04-24 21:32:13.160: [ OCRRAW][1668768]ibctx:1:ERROR: INVALID FORMAT
2010-04-24 21:32:13.161: [ OCRRAW][1668768]proprinit:problem reading the bootblock or superbloc 22

2010-04-24 21:32:13.161: [ default][1668768]a_init:7!: Backend init unsuccessful : [22]
2010-04-24 21:32:13.161: [ OCRCONF][1668768]Exporting OCR data to [OCRUPGRADEFILE]
2010-04-24 21:32:13.162: [ OCRAPI][1668768]a_init:7!: Backend init unsuccessful : [33]
2010-04-24 21:32:13.162: [ OCRCONF][1668768]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
2010-04-24 21:32:13.329: [ OCRRAW][1668768]propriogid:1: INVALID FORMAT
2010-04-24 21:32:13.330: [ OCRRAW][1668768]ibctx:1:ERROR: INVALID FORMAT
2010-04-24 21:32:13.330: [ OCRRAW][1668768]proprinit:problem reading the bootblock or superbloc 22

2010-04-24 21:32:13.331: [ default][1668768]a_init:7!: Backend init unsuccessful : [22]
2010-04-24 21:32:13.495: [ OCRRAW][1668768]propriogid:1: INVALID FORMAT
2010-04-24 21:32:13.496: [ OCRRAW][1668768]ibctx:1:ERROR: INVALID FORMAT
2010-04-24 21:32:13.496: [ OCRRAW][1668768]proprinit:problem reading the bootblock or superbloc 22

2010-04-24 21:32:13.729: [ OCRRAW][1668768]propriogid:1: INVALID FORMAT
2010-04-24 21:32:13.788: [ OCRRAW][1668768]propriowv: Vote information on disk 0 [/dev/raw/raw1] is adjusted from [0/0] to [2/2]
2010-04-24 21:32:13.822: [ OCRRAW][1668768]propriniconfig:No 92 configuration
2010-04-24 21:32:13.822: [ OCRAPI][1668768]a_init:6a: Backend init successful
2010-04-24 21:32:13.992: [ OCRCONF][1668768]Initialized DATABASE keys in OCR
2010-04-24 21:32:14.104: [ OCRCONF][1668768]csetskgfrblock0: clsfmt returned with error [4].
2010-04-24 21:32:14.105: [ OCRCONF][1668768]Failure in setting block0 [-1]
2010-04-24 21:32:14.105: [ OCRCONF][1668768]OCR block 0 is not set !
2010-04-24 21:32:14.133: [ OCRCONF][1668768]Exiting [status=failed]...

使用dd命令将ocr信息删除

[email protected][/oracle/crs/10.1/log/rac1/client]> dd if=/dev/zero of=/dev/raw/raw1 bs=1M count=256
dd: writing `/dev/raw/raw1': No space left on device
101+0 records in
100+0 records out
104857600 bytes (105 MB) copied, 1.98218 seconds, 52.9 MB/s

再次运行root.sh脚本

[email protected][/oracle/crs/10.1/log/rac1/client]> /oracle/crs/10.1/root.sh
WARNING: directory '/oracle/crs' is not owned by root
WARNING: directory '/oracle' 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 '/oracle/crs' is not owned by root
WARNING: directory '/oracle' is not owned by root
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
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: rac1 rac1-priv rac1
node 2: rac2 rac2-priv rac2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw2
format of 1 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.

至此,问题解决

--end--

Similar Posts:

  • oracle install 11gR2 RAC 运行root.sh时出现missing CAP_NUMA_ATTACH 问题

    今天一个同事在项目中实施oracle 11gR2 rac for aix 的安装时,安装到需要在节点上运行root.sh 时出现以下问题: Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of

  • Executing root.sh errors with &quot;Failed To Upgrade Oracle Cluster Registry Configuration&quot; [ID 466673.1]

    Executing root.sh errors with "Failed To Upgrade Oracle Cluster Registry Configuration" [ID 466673.1] Modified 07-JUN-2010 Type PROBLEM Status PUBLISHED In this Document Symptoms Changes Cause Solution References Applies to: Oracle Server - Ente

  • oracle rac安装过程中常见问题

    最多的就是在第二个节点上面执行root.sh时候会出错,我基本上把网上常见的错误都遇到过了,所以在这里整理一下: 1.安装rac的节点时间必须同步否则会出现 2.共享存储问题,我遇到的这个问题基本上是vmware中共享存储设置问题,在建立共享磁盘时候选择立即分配所有磁盘空间之后就再也没有出现过 PROT-1: Failed to initialize ocrconfig Failed to upgrade Oracle Cluster Registry configuration 3.遭遇到or

  • Oracle RAC安装前的磁盘分区及裸设备配置

    在Oracle RAC安装中,前期配置是安装是否成功的关键.看过了不少文档,但是几乎都忽略了前期分区和裸设备的配置过程,因此简单的做了总结性记录. 安装环境为Oracle 10g for Linux x86 对独立存储(即,磁盘阵列),当存储工程师创建完raid group ,并在此group上分几个Lun,最终通过多路径封包后,轮到DBA上场动手了.Lun实际上从Linux OS的fdisk -l命令查看时,相当于一个磁盘. 1.对磁盘做分区 在这里使用fdisk命令,但是在对磁盘进行分区的时

  • linux平台11gR2 grid安装到执行root.sh时报错

    vi /etc/selinux/config SELINUX=disabled 重新执行root.sh [[email protected] oracle]# /oradata/app/11.2.0/grid/root.sh Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /oradata/app/11.2.0/grid

  • Redhat 6.3 安装11.2.0.2 grid 运行root.sh报找不到libcap.so.1

    [[email protected] u01]# /u01/app/grid/product/11.2.0.4/grid/root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/app/grid/product/11.2.0.4/grid Enter the full pathnam

  • ORACLE RAC安装问题解决记录(2)- ORA-01031,ORA-01005

    系统环境 主机:Window2003R2 SP2 VMWare3.1 GSX Server装了两台Redhat Linux AS3 U4 每台机器512M内存 其上装了Oracle9.2.0.4 for linux 32 问题现象: 两台机器gsd服务都正常启动了 但用srvctl 启动数据库时出错 [[email protected] bin]# srvctl start database -d rac PRKP-1007 : Failed to start all the listeners a

  • 11G RAC安装运行ASMCA遇到的小问题:ASMCA detected pre 11gR2 ASM, but it does not have a loca

    问题描述: 11G RAC安装时,GI已经安装完成,各服务状态正常,运行ASMCA时出错(ASM实例状态都是正常的). 提示是:ASMCA detected pre 11gR2 ASM, but it does not have a local instance configure on this node;具体信息看下图. 解决办法是:重新注册资源,,我是重启了OS,或者也可能重启CRS了,重启后查看各服务状态正常,重新运行ASMCA时正常,问题解决

  • oracle rac 安装错误整理。

    今天是2014.05.26,离别N久的博客今天继续使用.最近一直忙着离职.入职另外加上家的网一直没有交费,弄的自己开始不那么安稳.学习就是需要一种心情平静.内心稳妥的去进行. 因换笔记本,特需要重新搭建Rac环境,这几篇日志整理一下,我在安装过程中遇到的错误,可能以前我整理过其他的问题,而这是我本次遇到的. 实验环境: virtual box+ Oracle 11.2.0.4 + ASM (Openfiler)+ oracle linux 6.4 问题一:在virtual box克隆系统的时候提

  • aix oracle rac 安装

    http://blogold.chinaunix.net/u/4031/article.php?frmid=39541 RAC 10gr1 安装准备 Install Oracle10g RAC (10.2) release on AIX 5L (一) Install Oracle10g RAC (10.2) release on AIX 5L (二) Install Oracle10g RAC (10.2) release on AIX 5L (三) 学习 学习!

Tags: