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

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4258|回复: 2
打印 上一主题 下一主题

[安装] 重新安装grid

[复制链接]
跳转到指定楼层
楼主
发表于 2015-11-19 09:46:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 王硕 于 2015-11-19 11:56 编辑

对于已经安装一半而没有成功的grid 软件处理:
*******************************方案一********************************

******两个节点运行:(root用户)
        cd /etc/oracle
        rm -fr *
        重新创建目录:
        mkdir -p /u01/app/grid
        mkdir -p /u01/app/11.2.0/grid
        chown -R grid.oinstall /u01
        mkdir -p /u01/app/oracle
        chown -R oracle.oinstall /u01/app/oracle
        chmod -R 775 /u01/
        将u01  改为
        mkdir -p /u02/app/grid
        mkdir -p /u02/app/11.2.0/grid
        chown -R grid.oinstall /u02
        mkdir -p /u02/app/oracle
        chown -R oracle.oinstall /u02/app/oracle
        chmod -R 775 /u02/

        更改grid  用户.bash_profile 文件

        scan可能会被占用,可修改scan名字

        
        rac-vip也可能会被占用,可选择更改地址,生产环境慎重考虑。
        DATA组可能会被占用,小编改为了DATA2


INS-40724 No locally defined network interface matches the SCAN address

修改/etc/hosts  scan
重新打开runInstall 安装

********************************方案一**********************************

********************************方案二**********************************
1、清空/u01/11.2.0/grid目录
  2、清空/u01/app/oracle目录
  3、清空/u01/app/grid目录
  4、删除/etc/ora开头的文件和目录
  5、进入/etc/init.d/,把ohasd文件删除(否则这个文件会在开机时启动cluster)。

重新配置asm disk
********************************方案二**********************************
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
 楼主| 发表于 2015-11-19 11:51:54 | 只看该作者
root脚本出错


[root@RAC1 app]# /u01/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/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.


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 script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Create failed, or completed with errors.
Failure initializing entries in /etc/oracle/scls_scr/rac1
/u01/11.2.0/grid/perl/bin/perl -I/u01/11.2.0/grid/perl/lib -I/u01/11.2.0/grid/crs/install /u01/11.2.0/grid/crs/install/rootcrs.pl execution failed


运行出错信息中rootcrs.pl这个脚本,只不过给它配上 -deconfig的参数,让它先把原先残余的东东清掉。
然后再重新执行root.sh就可以了。

[root@RAC1 log]# /u01/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force
Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
****Unable to retrieve Oracle Clusterware home.
Start Oracle Clusterware stack and try again.
CRS-4046: Invalid Oracle Clusterware configuration.
CRS-4000: Command Stop failed, or completed with errors.
################################################################
# You must kill processes or reboot the system to properly #
# cleanup the processes started by Oracle clusterware          #
################################################################
Failure in execution (rc=-1, 256, No such file or directory) for command /etc/init.d/ohasd deinstall
Successfully deconfigured Oracle clusterware stack on this node

成功执行,再执行root.sh,顺利通过!
回复 支持 反对

使用道具 举报

板凳
发表于 2015-11-19 17:29:08 | 只看该作者
一般选择第二种办法哈 。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-6 16:04 , Processed in 0.091388 second(s), 19 queries .

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

© 2001-2020

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