zoukankan      html  css  js  c++  java
  • oracle 单机ASM 安装GRID 报错


    ---第一次执行/u01/11.2.0/grid/root.sh 脚本
    [root@test ~]# /u01/app/oraInventory/orainstRoot.sh
    Changing permissions of /u01/app/oraInventory.
    Adding read,write permissions for group.
    Removing read,write,execute permissions for world.

    Changing groupname of /u01/app/oraInventory to oinstall.
    The execution of the script is complete.
    [root@test ~]#
    [root@test ~]#
    [root@test ~]# /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]:
    Copying dbhome to /usr/local/bin ...
    Copying oraenv to /usr/local/bin ...
    Copying coraenv to /usr/local/bin ...


    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
    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 test successfully pinned.
    Adding Clusterware entries to inittab
    ohasd failed to start
    Failed to start the Clusterware. Last 20 lines of the alert log follow:
    2019-09-12 10:06:30.499:
    [client(43175)]CRS-2101:The OLR was formatted using version 3.
    2019-09-12 10:06:30.743:
    [client(43281)]CRS-1001:The OCR was formatted using version 3.
    2019-09-12 10:08:35.643:
    [ohasd(43452)]CRS-2112:The OLR service started on node test.
    2019-09-12 10:08:35.646:
    [ohasd(43452)]CRS-1301:Oracle High Availability Service started on node test.

    ohasd failed to start at /u01/11.2.0/grid/crs/install/roothas.pl line 377, <ALERTLOG> line 8.
    /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/roothas.pl execution failed
    [root@test ~]#

    ---报错ohasd failed to start at /u01/11.2.0/grid/crs/install/roothas.pl line 377, <ALERTLOG> line 8.

    系统环境:Linux Server release 7.3

    数据库环境:11.2.0.4.0


    解决方案:
    第一步,回退root.sh脚本操作

    /u01/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force

    [root@test ~]# /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
    Usage: srvctl <command> <object> [<options>]
    commands: enable|disable|start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config|upgrade
    objects: database|service|asm|diskgroup|listener|home|ons
    For detailed help on each command and object and its options use:
    srvctl <command> -h or
    srvctl <command> <object> -h
    PRKO-2012 : nodeapps object is not supported in Oracle Restart
    CRS-4013: This command is not supported in a single-node 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 #
    ################################################################
    Successfully deconfigured Oracle clusterware stack on this node

    第二步:
    在执行root.sh脚本时出现Adding daemon to inittab的时候,在另一个窗口使用root立即执行以下命令:
    dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1(等待root.sh成功执行完毕后可以ctrl+c取消这里的命令)

    OK,此时Grid 安装通过。


    ---第二次执行成功
    [root@test ~]# /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.

    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
    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 test successfully pinned.
    Adding Clusterware entries to inittab

    test 2019/09/12 10:12:46 /u01/11.2.0/grid/cdata/test/backup_20190912_101246.olr
    Successfully configured Oracle Grid Infrastructure for a Standalone Server


    --取消另一个窗口

    [root@test ~]# /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
    ^C0+0 records in
    0+0 records out
    0 bytes (0 B) copied, 398.8 s, 0.0 kB/s

    [root@test ~]#

    [grid@test ~]$ crs_stat -t
    Name Type Target State Host
    ------------------------------------------------------------
    ora.DATA.dg ora....up.type ONLINE ONLINE test
    ora....ER.lsnr ora....er.type ONLINE ONLINE test
    ora.asm ora.asm.type ONLINE ONLINE test
    ora.cssd ora.cssd.type ONLINE ONLINE test
    ora.diskmon ora....on.type OFFLINE OFFLINE
    ora.evmd ora.evm.type ONLINE ONLINE test
    ora.ons ora.ons.type OFFLINE OFFLINE
    [grid@test ~]$

  • 相关阅读:
    forms组件、cookie与session
    choices参数、MTV与MVC模型、Ajax、序列化组件、sweetalert搭建页面、自定义分页器
    Django 常用字段,数据库查询优化 only与defer
    django配置代码
    django 模板层、模型层
    Django 请求生命周期、路由层
    centos6.8安装httpd后无法访问
    初次认识dedecms和帝国cms内容管理系统
    遇到一个json解码失败的问题
    关于apache配置映射端口
  • 原文地址:https://www.cnblogs.com/ss-33/p/11510506.html
Copyright © 2011-2022 走看看