• asmca无法创建ASM磁盘


    现象

    grid用户使用asmca无法创建asm磁盘,如下图

    clipboard

    分析

    如图所示,报错说是 Grid Infrastructure 出了问题。那么 Grid Infrastructure 是什么 ?

    在安装 Grid 时,会执行一个脚本 /u01/app/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/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/app/11.2.0/grid/crs/install/crsconfig_params
    Creating trace directory
    LOCAL ADD MODE 
    Creating OCR keys for user 'grid', privgrp 'oinstall'..
    Operation successful.
    LOCAL ONLY MODE 
    Successfully accumulated necessary OCR keys.
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    CRS-4664: Node data successfully pinned.
    Adding Clusterware entries to upstart
    
    data     2015/09/10 16:06:10     /u01/app/11.2.0/grid/cdata/data/backup_20150910_160610.olr
    Successfully configured Oracle Grid Infrastructure for a Standalone Server

    注意最后一句,Grid Infrastructure 配置成功。该脚本所配置的内容就是 Grid Infrastructure 。该部分出问题时,该脚本都会给出提示,比如,

    如果“Adding Clusterware entries to upstart”没有启动成功,那么脚本就会给出以下提示

    To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:
    
    /u01/app/11.2.0/grid/perl/bin/perl -I/u01/app/11.2.0/grid/perl/lib -I/u01/app/11.2.0/grid/crs/install /u01/app/11.2.0/grid/crs/install/roothas.pl
    
    To configure Grid Infrastructure for a Cluster execute the following command:
    
    /u01/app/11.2.0/grid/crs/config/config.sh
    
    This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.
    
     

    意思是如果安装步骤没有问题,只是启动由于某种原因没有成功时,

    单机可以执行 /u01/app/11.2.0/grid/crs/install/roothas.pl

    集群可以执行 /u01/app/11.2.0/grid/crs/config/config.sh

    以启动服务

    解决方法

    1. 检查确认安装过程是否正确

    2. 检查集群服务是否正常启动,如果没有

        单机执行 /u01/app/11.2.0/grid/crs/install/roothas.pl

        集群执行 /u01/app/11.2.0/grid/crs/config/config.sh

        以启动服务

  • 相关阅读:
    人工智能
    华盛顿邮报启用核查事实机器人,新闻行业路指何方
    被算法控制的网络
    新型机器人闯入职场:到底是工作缔造者还是工作终结者?华盛顿邮报
    有情感会说话,虚拟人脸Zoe诞生
    IBM Watson将最终适应智能机,可以进行疾病诊断
    我们用大数据创造没人能理解的人工智能
    在DNA中存储数据成为现实
    matlab 工具箱
    背后的原因——是时候让计算机理解我们的意图、而非表面意思
  • 原文地址:https://www.cnblogs.com/perfei/p/4798286.html
Copyright © 2020-2023  润新知