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

标题: 重新安装grid [打印本页]

作者: 王硕    时间: 2015-11-19 09:46
标题: 重新安装grid
本帖最后由 王硕 于 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
********************************方案二**********************************

作者: 王硕    时间: 2015-11-19 11:51
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
一般选择第二种办法哈 。




欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2