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

 

posted @   钱若梨花落  阅读(647)  评论(0编辑  收藏  举报
(评论功能已被禁用)
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示