10G RAC 安装问题解决记录

来源:互联网 发布:编钟知乎 编辑:程序博客网 时间:2024/05/06 09:32

1、在enterprise linux4上安装oracle clusterware 10.2.0.1.0 时,要求在各节点上执行root.sh时报的错误:

 

转:http://lizhichun68.blog.163.com/blog/static/862384920108654834844/

 

[root@rac01 ~]# sh /oracle/product/crs/root.sh

WARNING: directory '/oracle/product' 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

[root@rac01 ~]# cd /oracle/product/crs/

admin  alertrac01.log  client  crsd  cssd  evmd  racg

[root@rac01 rac01]# cat alertrac01.log

2010-09-03 10:04:12.471

[client(7885)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /oracle/product/crs/log/rac01/client/ocrconfig_7885.log.

2010-09-03 10:04:12.535

[client(7885)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /oracle/product/crs/log/rac01/client/ocrconfig_7885.log.

2010-09-03 10:04:12.564

[client(7885)]CRS-1006:The OCR location /dev/raw/raw1 is inaccessible. Details in /oracle/product/crs/log/rac01/client/ocrconfig_7885.log.

2010-09-03 10:04:12.615

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

 

[root@rac01 rac01]# ls

admin  alertrac01.log  client  crsd  cssd  evmd  racg

[root@rac01 rac01]# cd client/

[root@rac01 client]# ls

ocrcheck_7961.log  ocrcheck_8200.log  ocrconfig_7885.log  ocrconfig_8197.log

[root@rac01 client]# vi ocrconfig_7885.log

 

Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle.  All rights reserved.

2010-09-03 10:04:12.242: [ OCRCONF][3086911168]ocrconfig starts...

2010-09-03 10:04:12.243: [ OCRCONF][3086911168]Upgrading OCR data

2010-09-03 10:04:12.469: [  OCRRAW][3086911168]propriogid:1: INVALID FORMAT

2010-09-03 10:04:12.471: [  OCRRAW][3086911168]ibctx:1:ERROR: INVALID FORMAT

2010-09-03 10:04:12.471: [  OCRRAW][3086911168]proprinit:problem reading the bootblock or superbloc 22

 

2010-09-03 10:04:12.471: [ default][3086911168]a_init:7!: Backend init unsuccessful : [22]

2010-09-03 10:04:12.472: [ OCRCONF][3086911168]Exporting OCR data to [OCRUPGRADEFILE]

2010-09-03 10:04:12.472: [  OCRAPI][3086911168]a_init:7!: Backend init unsuccessful : [33]

2010-09-03 10:04:12.472: [ OCRCONF][3086911168]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]

2010-09-03 10:04:12.534: [  OCRRAW][3086911168]propriogid:1: INVALID FORMAT

2010-09-03 10:04:12.535: [  OCRRAW][3086911168]ibctx:1:ERROR: INVALID FORMAT

2010-09-03 10:04:12.535: [  OCRRAW][3086911168]proprinit:problem reading the bootblock or superbloc 22

 

 

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

检查clsfmt命令运行状况:

[root@rac01 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文件

rac1@oracle[/tmp]> unzip *zip
Archive: p4679769_10201_LINUX.zip
creating: 4679769/
inflating: 4679769/clsfmt.bin
inflating: 4679769/README.txt
rac1@oracle[/tmp]> cd 4679769/
rac1@oracle[/tmp/4679769]> cp clsfmt.bin /oracle/product/crs/bin/

 

 

使用dd命令将ocr信息删除(如果补丁文件替换后,不dd清理ocr,执行root.sh报错还是一样,切记)

[root@rac01 bin]dd if=/dev/zero of=/dev/raw/raw1 bs=1024 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,问题解决


2、ASM:  rac2节点mount diskgroup报错

 

SQL> alter diskgroup DG1 mount;
alter diskgroup DG1 mount
*
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "DG1"


ERROR: no PST quorum in group 1: required 2, found 0
ERROR: diskgroup DG1 was not mounted

 

Metalink(309815.1): There are two issues with using multipath disks in ASM. ASM cannot handle seeing the same disk twice. If it does, it will cause an error.

vi /etc/sysconfig/oracleasm
ORACLEASM_SCANORDER=”oracleasm”
ORACLEASM_SCANEXCLUDE=”sdb sdc sdd sde sdf”

 

原创粉丝点击