oracle 10g rac安装报错汇总

时间:2022-08-22 03:57:23

删除crs

1.      停止资源:关闭crs资源:crsctl stop resources

          关闭crs:       crsctl stop crs

2.      使用脚本:两个节点root.delete.sh, rootdeinstall.sh

3.      删除启动项:

rm/etc/oracle/*

rm -f/etc/init.d/init.cssd

rm -f /etc/init.d/init.crs

rm -f/etc/init.d/init.crsd

rm -f/etc/init.d/init.evmd

rm -f/etc/rc2.d/K96init.crs

rm -f/etc/rc2.d/S96init.crs

rm -f/etc/rc3.d/K96init.crs

rm -f/etc/rc3.d/S96init.crs

rm -f/etc/rc5.d/K96init.crs

rm -f/etc/rc5.d/S96init.crs

rm -rf/etc/oracle/scls_scr

rm -f/etc/inittab.crs

cp /etc/inittab.orig /etc/inittab

4.      查看进程: crs evm css

a)        ps -ef | grep -v grep | grep"init.evmd run"

5.      删除三个文件:/tmp/.oracle//var/tmp/.oracle//usr/tmp/.oracle/

6.      删除orc.loc  rm –rf /etc/oracle/orc.loc

7.      Universal Installer删除 crs产品。

8.      删除/orac le/下面的所有文件。

9.      清理磁盘

Dd if=/dev/zero of=/dev/raw/raw1 bs=1M count=1024

Dd if=/dev/zero of=/dev/raw/raw2 bs=1M count=1024

Dd if=/dev/zero of=/dev/raw/raw3 bs=1M count=1024

Dd if=/dev/zero of=/dev/raw/raw4 bs=1M count=1024

Dd if=/dev/zero of=/dev/raw/raw5 bs=1M count=1024

 

10.   清楚路径/tmp/CVU_10.2.0.1.0.1_oinstall

11. 重启

 

报错汇总

Ø  运行root.sh

Checking to see if Oracle CRS stack is alreadyconfigured

Oracle CRS stack is already configured and will berunning under init(1M)

1.      原因:

更换的存储设备和上次安装的设备文件名不一致。

2.      解决方法:

删除每台机器上的/etc/oracle/scls_scr/rac1/oracle/cssfatal文件即可.

 

Ø  Runningvipca(silent) for configuring nodeapps

Error 0(Native: listNetInterfaces:[3])

[Error 0(Native: listNetInterfaces:[3])]

1. 解决方法:

a)        root@o10n2 bin]# ./oifcfg setif-global eth0/192.168.150.0:public

[root@o10n2 bin]# ./oifcfg setif -globaleth1/172.168.146.0:cluster_interconnect

b)        运行rootdelete.sh后再运行root.sh

 

Ø  Expectingthe CRS daemons to be up within 600 seconds.

Failure at final check of Oracle CRS stack.

 10

1.      原因:

run "init q" and expect those 3 CRS relateddaemon processes to start. With init system problem, none of these daemonprocesses spawned, this caused CRS process startup failure as they rely on initdaemon process to start first.

2.  解决方法:

a)手动格式/dev/raw/raw4

dd if=/dev/zero of=/dev/raw/raw4 bs=1m

然后rm -fr /etc/oracle on all node

然后在每个节点$CRS_HOME/root.sh

After that daemon process in /etc/inittabstarted, CRS installation completed.

Ø  crsctlcheck crs Failure 1 contacting CSS daemon Cannot communicate with CRS Cannotcommunicate with EVM

1.      解决方法:重新安装crs

a)        两个节点清楚votting盘和ocr

b)        每个节点运行 rootdelete.sh

c)        任一节点运行 rootdeinstall.sh

d)        两个节点重新运行root.sh

e)        执行vipca配置vip, nodeapps注册ocr

f)         重新配监听,reconfig,回到注册到crs

g)        Oracle用户手动注册asm

                        i.             Srvctladd asm –n host1 –I  +ASM1 –o/oracle/product/crs

h)        启动asm

i)          ocr添加db

                        i.             Srvctladd database –d dbsid –o

j)          添加实例只ocrs

                        i.             Srvctladd instance –d  dbsid –I dbsid1

k)        修改实例和asm的关系

                        i.             Srvctlmodify instance –d dbsid –I dbsid1 –s +ASM1

l)          启动数据库

Ø  在启动时ASMORA-27550错误。

1. 原因

是因为RAC无法确定使用哪个网卡作为Private Interconnect

2.  解决方法:

在两个ASMpfile文件里添加如下参数: +ASM1.cluster_interconnects='10.10.17.221'+ASM2.cluster_interconnects='10.10.17.222'

所有实例启动成功。如果启动过程中也和起订ASM一样报错:若也出现ORA-27550错误。也是因为RAC无法确定使用哪个网卡作为Private Interconnect,修改pfile参数在重启动即可解决。 SQL>alter system setcluster_interconnects='10.10.17.221' scope=spfile sid='RACDB1';       SQL>alter system setcluster_interconnects='10.10.17.222' scope=spfile sid='RACDB2'

Ø  Settingthe permissions on OCR backup directory

Setting up NS directories

PROT-1: Failed to initialize ocrconfig

Failed to upgrade Oracle Cluster Registry configuration

1 原因:

(1)裸设备不可读写。权限不够。

chown root.oinstall/dev/raw/raw[1-2]

chownoracle.oinstall /dev/raw/raw[3-5]

2bug

         #Copy the clsfmt.bin binary to the $ORACLE_HOME/bin directory where

# % cp $ORACLE_HOME/bin/clsfmt.bin$ORACLE_HOME/bin/clsfmt.bin.bak

# % cp clsfmt.bin $ORACLE_HOME/bin/clsfmt.bin

# Ensure permissions on the clsfmt.bin binaryare correct:

# % chmod 755 $ORACLE_HOME/bin/clsfmt.bin

 Runthe root.sh script and proceed with the installation

(3)没有清空raw

Ø 节点2运行root.sh不能检测到节点的css状态

可能是设备的读写突然出了问题,第二个节点看到的OCR磁盘与你第一个节点的OCR磁盘并不是同样的两个磁盘设备!