风影子
作者风影子·2011-12-06 00:26
数据库管理员·深圳

oracle 11g rac 第二个节点执行root.sh报错解决一例

字数 3892阅读 15452评论 3赞 1
      一直没安装过11G,这几天没事想玩玩11G,心想玩单机的太没意思,于是直接在虚拟机环境搭11G RAC环境,在网上下了点资料,看了些博客就开始做了,但在安装Oracle Grid Infrastructure时,第二个节点执行root.sh报错,这个问题困扰了我两天了
[root@racdb02 11.2.0]# /app/product/grid/oraInventory/orainstRoot.sh
Changing permissions of /app/product/grid/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /app/product/grid/oraInventory to oinstall.
The execution of the script is complete.
[root@racdb02 11.2.0]# /app/product/grid/11.2.0/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /app/product/grid/11.2.0
Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

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 root.sh script.
Now product-specific root actions will be performed.
2011-12-04 04:07:16: Parsing the host name
2011-12-04 04:07:16: Checking for super user privileges
2011-12-04 04:07:16: User has super user privileges
Using configuration parameter file: /app/product/grid/11.2.0/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services 已启动。
ohasd is starting
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node racdb01, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: Attempting to start 'ora.mdnsd' on 'racdb02'
CRS-2676: Start of 'ora.mdnsd' on 'racdb02' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'racdb02'
CRS-2676: Start of 'ora.gipcd' on 'racdb02' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'racdb02'
CRS-2676: Start of 'ora.gpnpd' on 'racdb02' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'racdb02'
CRS-2676: Start of 'ora.cssdmonitor' on 'racdb02' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'racdb02'
CRS-2672: Attempting to start 'ora.diskmon' on 'racdb02'
CRS-2676: Start of 'ora.diskmon' on 'racdb02' succeeded
CRS-2676: Start of 'ora.cssd' on 'racdb02' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'racdb02'
Start action for octssd aborted
CRS-2676: Start of 'ora.ctssd' on 'racdb02' succeeded
CRS-2672: Attempting to start 'ora.drivers.acfs' on 'racdb02'
CRS-2672: Attempting to start 'ora.asm' on 'racdb02'
CRS-2676: Start of 'ora.drivers.acfs' on 'racdb02' succeeded
CRS-2676: Start of 'ora.asm' on 'racdb02' succeeded
CRS-2664: Resource 'ora.ctssd' is already running on 'racdb02'
CRS-4000: 命令 Start 失败, 或已完成但出现错误。
Command return code of 1 (256) from command: /app/product/grid/11.2.0/bin/crsctl start resource ora.asm -init
Start of resource "ora.asm -init" failed
Failed to start ASM
Failed to start Oracle Clusterware stack

[root@racdb02 11.2.0]#
 
在百度里找半天都没找到什么有用的东西,后来在google 上找到答案了
原来是自己犯了点小错误,以后大家遇到这个问题也可以做个参考,检查一下/etc/hosts的配置
因为我是先做好一台虚拟机,然后直接拷过去用的,结果/etc/hosts中127.0.0.1这一行忘记改了,还是对应的第一台主机的主机名,如127.0.0.1                   racdb01 localhost.localdomain localhost
将它改成127.0.0.1               racdb02 localhost.localdomain localhost
就可以了,真是发狂,拷到另一台主机后需要改的配置很多,那么多都没改错,居然在这犯这种低级错误。改过之后再
/app/product/grid/11.2.0/crs/install/roothas.pl -delete -force -verbose
/app/product/grid/11.2.0/root.sh
一切OK了

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

1

添加新评论3 条评论

lanweichanglanweichang软件架构设计师ttram
2016-08-02 18:08
haha
marionmarion其它中国建设银行中山路支行
2011-12-06 08:56
这是新手最容易犯的错误。
dreamerdreamer系统工程师中电启明星信息技术有限公司
2011-12-06 08:51
细节决定成败
Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广