重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4232|回复: 1
打印 上一主题 下一主题

[安装] 安装grid中执行Root.sh错误,ORA-29780

[复制链接]
跳转到指定楼层
楼主
发表于 2016-7-11 10:50:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在安装gird的过程中,执行Root.sh脚本的时候,出现下面的错误rac01:~ # /u01/app/grid/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/grid/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /u01/app/grid/oraInventory to oinstall.
The execution of the script is complete.


rac01:~ # /u01/app/grid/product/11.2.0/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/grid


Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.


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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac01'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac01'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac01'
CRS-2676: Start of 'ora.diskmon' on 'rac01' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac01' succeeded


Creation of ASM spfile in disk group failed. Following error occured: ORA-29780: unable to connect to GPnP daemon [CLSGPNP_ERR]




Configuration of ASM ... failed
see asmca logs at /u01/app/grid/base/cfgtoollogs/asmca for details
Did not succssfully configure and start ASM at /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_lib.pm line 6912.
/u01/app/grid/product/11.2.0/grid/perl/bin/perl -I/u01/app/grid/product/11.2.0/grid/perl/lib -I/u01/app/grid/product/11.2.0/grid/crs/install /u01/app/grid/product/11.2.0/grid/crs/install/rootcrs.pl execution failed


这是因为$ORA_CRS_HOME变量必须和$ORACLE_HOME 保持一致,否则在使用asmca配置磁盘的时候 会认不到asm磁盘!

官方提示的信息是
ORA_CRS_HOME environment variable is set
It's highly recommended to unset ORA_CRS_HOME completely from user profile(root user, grid user and RAC database user) and shell environment, otherwise various errors will be encountered including the error above.
A wrongly set ORA_CRS_HOME to none active GI home will have worse impact.




解决办法有:
1.查看/etc/profile.d/ 下面是否有oracle.*的文件,有的话就全部删除。
2.或者root用户下查看一下 $ORACLE_HOME 和 $ORA_CRS_HOME  两个变量,有值的话unset一下$ORACLE_HOME 和 $ORA_CRS_HOME,然后重新执行这个脚本。


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
发表于 2016-7-16 10:32:11 | 只看该作者
支持原创.不错的总结.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-12-1 13:18 , Processed in 0.120851 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表