您的位置:首页 > 博客中心 > 数据库 >

RedHat EL5 安装Oracle 10g RAC之--CRS 安装

时间:2022-03-10 17:06

      then

           LD_ASSUME_KERNEL=2.4.19

           export LD_ASSUME_KERNEL

      fi

unset LD_ASSUME_KERNEL (添加此行信息)

      #End workaround


[root@node2 bin]# vi srvctl

LD_ASSUME_KERNEL=2.4.19

export LD_ASSUME_KERNEL

unset LD_ASSUME_KERNEL(添加此行信息)


在node 2重新执行root.sh:

注意:root.sh只能执行一次,如果再次执行,需执行rootdelete.sh

[root@node2 bin]# /u01/crs_1/root.sh

WARNING: directory ‘/u01‘ is not owned by root

Checking to see if Oracle CRS stack is already configured

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

[root@node2 bin]# cd ../install

[root@node2 install]# ls

cluster.ini         install.incl   rootaddnode.sbs    rootdelete.sh  templocal

cmdllroot.sh        make.log       rootconfig         rootinstall

envVars.properties  paramfile.crs  rootdeinstall.sh   rootlocaladd

install.excl        preupdate.sh   rootdeletenode.sh  rootupgrade

[root@node2 install]# ./rootdelete.sh

CRS-0210: Could not find resource ‘ora.node2.LISTENER_NODE2.lsnr‘.

CRS-0210: Could not find resource ‘ora.node2.ons‘.

CRS-0210: Could not find resource ‘ora.node2.vip‘.

CRS-0210: Could not find resource ‘ora.node2.gsd‘.

Shutting down Oracle Cluster Ready Services (CRS):

Stopping resources.

Successfully stopped CRS resources

Stopping CSSD.

Shutting down CSS daemon.

Shutdown request successfully issued.

Shutdown has begun. The daemons should exit soon.

Checking to see if Oracle CRS stack is down...

Oracle CRS stack is not running.

Oracle CRS stack is down now.

Removing script for Oracle Cluster Ready services

Updating ocr file for downgrade

Cleaning up SCR settings in ‘/etc/oracle/scls_scr‘

[root@node2 install]#

node 2 再次出错:

[root@node2 install]# /u01/crs_1/root.sh

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‘ is not owned by root

clscfg: EXISTING configuration version 3 detected.

clscfg: version 3 is 10G Release 2.

assigning default hostname node1 for node 1.

assigning default hostname node2 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: node1 node1-priv node1

node 2: node2 node2-priv node2

clscfg: Arguments check out successfully.

NO KEYS WERE WRITTEN. Supply -force parameter to override.

-force is destructive and will destroy any previous cluster

configuration.

Oracle Cluster Registry for cluster has already been initialized

Startup will be queued to init within 90 seconds.

Adding daemons to inittab

Expecting the CRS daemons to be up within 600 seconds.

CSS is active on these nodes.

       node1

       node2

CSS is active on all nodes.

Waiting for the Oracle CRSD and EVMD to start

Oracle CRS stack installed and running under init(1M)

Running vipca(silent) for configuring nodeapps

Error 0(Native: listNetInterfaces:[3])

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

解决方法:(配置网络)

[root@node2 bin]# ./oifcfg iflist

eth0  192.168.8.0

eth1  10.10.10.0

[root@node2 bin]# ./oifcfg getif

[root@node2 bin]# ./oifcfg setif -global eth0/192.168.8.0:public

[root@node2 bin]# ./oifcfg setif -global eth1/10.10.10.0:cluster_interconnect

[root@node2 bin]# ./oifcfg getif

eth0  192.168.8.0  global  public

eth1  10.10.10.0  global  cluster_interconnect

并在node2上执行VIPCA:

以root身份执行vipca(在/u01/crs_1/bin)

配置信息应和/etc/hosts文件一致

开始配置

vipca配置成功后,crs服务正常工作

安装完成!


验证CRS:

[root@node2 bin]# crs_stat -t

Name           Type           Target    State     Host        

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

ora.node1.gsd  application    ONLINE    ONLINE    node1      

ora.node1.ons  application    ONLINE    ONLINE    node1      

ora.node1.vip  application    ONLINE    ONLINE    node1      

ora.node2.gsd  application    ONLINE    ONLINE    node2      

ora.node2.ons  application    ONLINE    ONLINE    node2      

ora.node2.vip  application    ONLINE    ONLINE    node2      

[root@node1 ~]# crs_stat -t

Name           Type           Target    State     Host        

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

ora.node1.gsd  application    ONLINE    ONLINE    node1      

ora.node1.ons  application    ONLINE    ONLINE    node1      

ora.node1.vip  application    ONLINE    ONLINE    node1      

ora.node2.gsd  application    ONLINE    ONLINE    node2      

ora.node2.ons  application    ONLINE    ONLINE    node2      

ora.node2.vip  application    ONLINE    ONLINE    node2      


附:错误案例

如果在运行root.sh时出现以下错误:

在出现错误的节点上运行(root)vipca 解决!


@至此CRS安装成功!



本文出自 “” 博客,请务必保留此出处

RedHat EL5 安装Oracle 10g RAC之--CRS 安装,布布扣,bubuko.com

热门排行

今日推荐

热门手游