zoukankan      html  css  js  c++  java
  • /u01/app/11.2.0.4/grid/perl/bin/perl -I/u01/app/11.2.0.4/grid/perl/lib -I/u01/app/11.2.0.4/grid/crs/install /u01/app/11.2.0.4/grid/crs/install/rootcrs.pl execution failed

    grid安装过程中可能会出现各种问题,这个问题怎么处理?已经友好提示了,就顺着再来一遍
    【问题现象】
    [root@rac01 ~]# /u01/app/11.2.0.4/grid/root.sh
    Performing root user operation for Oracle 11g
    The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME= /u01/app/11.2.0.4/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/app/11.2.0.4/grid/crs/install/crsconfig_params
    Creating trace directory
    User ignored Prerequisites during installation
    Installing Trace File Analyzer
    CRS-4046: Invalid Oracle Clusterware configuration.
    CRS-4000: Command Create failed, or completed with errors.
    Failure initializing entries in /etc/oracle/scls_scr/rac01
    /u01/app/11.2.0.4/grid/perl/bin/perl -I/u01/app/11.2.0.4/grid/perl/lib -I/u01/app/11.2.0.4/grid/crs/install /u01/app/11.2.0.4/grid/crs/install/rootcrs.pl execution failed

    【如何解决】
    #找到对应目录
    [root@rac01 ~]# cd /u01/app/11.2.0.4/grid/crs/install/
    [root@rac01 install]# ls -l rootcrs.pl
    -rwxr-xr-x 1 root oinstall 36870 Jul 14 2013 rootcrs.pl

    #这样执行一下就基本能搞定了
    [root@rac01 install]# ./rootcrs.pl -deconfig -force -verbose
    Using configuration parameter file: ./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 #
    ################################################################
    Removing Trace File Analyzer
    Failure in execution (rc=-1, 256, No such file or directory) for command /etc/init.d/ohasd deinstall
    error: package cvuqdisk is not installed 暂时先忽略
    Successfully deconfigured Oracle clusterware stack on this node

    #最后再重新再执行 root.sh, 一般都能解决
    [root@rac01 ~]# /u01/app/11.2.0.4/grid/root.sh
    Performing root user operation for Oracle 11g

    The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME= /u01/app/11.2.0.4/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/11.2.0.4/grid/crs/install/crsconfig_params
    User ignored Prerequisites during installation
    Installing Trace File Analyzer
    OLR initialization - successful
    root wallet
    root wallet cert
    root cert export
    peer wallet
    profile reader wallet
    pa wallet
    peer wallet keys
    pa wallet keys
    peer cert request
    pa cert request
    peer cert
    pa cert
    peer root cert TP
    profile reader root cert TP
    pa root cert TP
    peer pa cert TP
    pa peer cert TP
    profile reader pa cert TP
    profile reader peer cert TP
    peer user cert
    pa user cert
    Adding Clusterware entries to upstart
    CRS-2672: Attempting to start 'ora.mdnsd' on 'rac01'
    CRS-2676: Start of 'ora.mdnsd' on 'rac01' succeeded
    CRS-2672: Attempting to start 'ora.gpnpd' on 'rac01'
    CRS-2676: Start of 'ora.gpnpd' on 'rac01' succeeded
    CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac01'
    CRS-2672: Attempting to start 'ora.gipcd' on 'rac01'
    CRS-2676: Start of 'ora.cssdmonitor' on 'rac01' succeeded
    CRS-2676: Start of 'ora.gipcd' 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

    ASM created and started successfully.

    Disk Group OCR created successfully.

    clscfg: -install mode specified
    Successfully accumulated necessary OCR keys.
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    CRS-4256: Updating the profile
    Successful addition of voting disk a5c210ae13054f37bfb2739d812a5911.
    Successful addition of voting disk 0b6a3e8ce8414f97bfda58fc22636f0e.
    Successful addition of voting disk 4a8b709e45eb4fc7bffcdde71c701430.
    Successfully replaced voting disk group with +OCR.
    CRS-4256: Updating the profile
    CRS-4266: Voting file(s) successfully replaced
    ## STATE File Universal Id File Name Disk group
    -- ----- ----------------- --------- ---------
    1. ONLINE a5c210ae13054f37bfb2739d812a5911 (/dev/asm-diskb) [OCR]
    2. ONLINE 0b6a3e8ce8414f97bfda58fc22636f0e (/dev/asm-diskc) [OCR]
    3. ONLINE 4a8b709e45eb4fc7bffcdde71c701430 (/dev/asm-diskd) [OCR]
    Located 3 voting disk(s).
    CRS-2672: Attempting to start 'ora.asm' on 'rac01'
    CRS-2676: Start of 'ora.asm' on 'rac01' succeeded
    CRS-2672: Attempting to start 'ora.OCR.dg' on 'rac01'
    CRS-2676: Start of 'ora.OCR.dg' on 'rac01' succeeded
    Preparing packages for installation...
    cvuqdisk-1.0.9-1
    Configure Oracle Grid Infrastructure for a Cluster ... succeeded
    [root@rac01 ~]#

  • 相关阅读:
    【Django】Django 定时任务实现(django-crontab+command)
    【Django】Django web项目部署(Nginx+uwsgi)
    【python】pandas & matplotlib 数据处理 绘制曲面图
    Struts2的简单使用
    Servlet,jsp,JSP技术 ,JSP编程
    Servlet、JSP中页面跳转的方式
    html/京东项目/京东网页高仿/js/jq/css/java web/
    Java ResourceBundle类的使用
    sql语句executeQuery和executeUpdate之间的区别
    jdbc/DAO模式
  • 原文地址:https://www.cnblogs.com/ritchy/p/14012548.html
Copyright © 2011-2022 走看看