zoukankan      html  css  js  c++  java
  • 11G ASM 单实例安装报错

    CRS-4664: Node acdg successfully pinned.
    Adding Clusterware entries to inittab
    ohasd failed to start
    Failed to start the Clusterware. Last 20 lines of the alert log follow:
    2018-11-27 16:09:42.172:
    [client(187625)]CRS-2101:The OLR was formatted using version 3.
    2018-11-27 16:09:42.475:
    [client(187731)]CRS-1001:The OCR was formatted using version 3.

    ohasd failed to start at /u01/11.2.0/grid/crs/install/roothas.pl line 377, <ALERTLOG> line 4.
    /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 soft]# touch /usr/lib/systemd/system/ohas.service
    [root@test soft]# chmod 777 /usr/lib/systemd/system/ohas.service
    [root@test soft]#
    [root@test soft]# vi /usr/lib/systemd/system/ohas.service
    [root@test soft]# systemctl daemon-reload
    [root@test soft]# systemctl enable ohas.service
    Created symlink from /etc/systemd/system/multi-user.target.wants/ohas.service to /usr/lib/systemd/system/ohas.service.
    [root@test soft]#
    [root@test soft]# systemctl start ohas.service
    [root@test soft]# systemctl status ohas.service
    ● ohas.service - Oracle High Availability Services
    Loaded: loaded (/usr/lib/systemd/system/ohas.service; enabled; vendor preset: disabled)
    Active: active (running) since Tue 2018-11-27 16:14:12 CST; 3s ago
    Main PID: 188380 (init.ohasd)
    CGroup: /system.slice/ohas.service
    └─188380 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple

    Nov 27 16:14:12 test systemd[1]: Started Oracle High Availability Services.
    Nov 27 16:14:12 test systemd[1]: Starting Oracle High Availability Services...
    Nov 27 16:14:12 test su[188403]: (to grid) root on none

    ---二次执行还是报错
    Using configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_params
    CRS is already configured on this node for crshome=/u01/11.2.0/grid
    Cannot configure two CRS instances on the same cluster.
    Please deconfigure before proceeding with the configuration of new home.
    /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

    --解决办法---
    ---卸载

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


    [root@test soft]# /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 #
    ################################################################
    error: package cvuqdisk is not installed
    Successfully deconfigured Oracle clusterware stack on this node

    ---重新执行 脚本1 和脚本2 

    二、出现。。。。
    CRS-4664: Node acdg successfully pinned.
    Adding Clusterware entries to inittab
    --另一个窗口执行
    /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1

    ---成功
    [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 2018/11/27 16:31:58 /u01/11.2.0/grid/cdata/test/backup_20181127_163158.olr
    Successfully configured Oracle Grid Infrastructure for a Standalone Server

  • 相关阅读:
    [HDU1561]The more, The Better
    [洛谷P1352][codevs1380]没有上司的舞会
    【51Nod1773】A国的贸易 解题报告
    快速沃尔什变换
    【SDOI2015】序列统计 解题报告
    【CF438E】小朋友和二叉树 解题报告
    多项式Ⅰ
    洛谷 P5105 不强制在线的动态快速排序
    【BZOJ4916】神犇和蒟蒻 解题报告
    【BZOJ3309】DZY Loves Math 解题报告
  • 原文地址:https://www.cnblogs.com/ss-33/p/10032642.html
Copyright © 2011-2022 走看看