博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
11G ASM 单实例安装报错
阅读量:5089 次
发布时间:2019-06-13

本文共 4674 字,大约阅读时间需要 15 分钟。

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

 

转载于:https://www.cnblogs.com/ss-33/p/10032642.html

你可能感兴趣的文章
VIM操作常用指令(转)
查看>>
在绘制的扇形里加载一张图片
查看>>
winform combobox绑定数据
查看>>
前端入门
查看>>
steps/train_lda_mllt.sh
查看>>
一些可以用到的网址
查看>>
BPM配置故事之案例7-公式计算
查看>>
003_1-当前系统语言的相关知识
查看>>
IL中间语言指令大全
查看>>
iOS面试题总结整理(附答案)
查看>>
COPY, RETAIN, ASSIGN , READONLY , READWRITE,STRONG,WEAK,NONATOMIC整理--转
查看>>
leetcode671- Second Minimum Node In a Binary Tree- easy
查看>>
LIS最长上升子序列O(nlogn)算法
查看>>
js九宫格算法
查看>>
web 常见攻击与防护
查看>>
Java MyBatis 插入数据库返回主键
查看>>
人类视觉系统
查看>>
jQuery攻略之表单验证
查看>>
mysql使用use db出现夯住问题
查看>>
zxing demo
查看>>