CRS-4544: Unable to connect to OHAS has启动失败
环境:rhel7.5 onenode 11.2.0.3
问题:has启动失败或者执行root.sh时失败,报错如下
has启动失败
[root@xxx crs]# /oracle/app/11.2.0/grid/bin/crsctl stop has -f
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
在执行root.sh时失败
[root@xxx ~]# /oracle/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= /oracle/app/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: /oracle/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 credadg01 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-03-12 14:33:15.293
[client(56861)]CRS-2101:The OLR was formatted using version 3.
2019-03-12 14:33:15.617
[client(56959)]CRS-1001:The OCR was formatted using version 3.
ohasd failed to start at /oracle/app/11.2.0/grid/crs/install/roothas.pl line 358, <ALERTLOG> line 4.
/oracle/app/11.2.0/grid/perl/bin/perl -I/oracle/app/11.2.0/grid/perl/lib -I/oracle/app/11.2.0/grid/crs/install /oracle/app/11.2.0/grid/crs/install/roothas.pl execution failed
解决办法1:临时解决办法,dd
1.1 如果是has启动失败,需要杀掉gi的所有进程,然后dd npohasd,启动has
在另一个窗口执行
[root@xxx ~]# dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
然后重新启动has
[root@xxx crs]# /oracle/app/11.2.0/grid/bin/crsctl start has
CRS-4123: Oracle High Availability Services has been started.
1.2 如果是root.sh执行失败,需要deconfig,然后dd npohasd,重跑root.sh
step1. deconfig
[root@xxx ~]/oracle/app/11.2.0/grid/crs/install/roothas.pl -deconfig -verbose -force
如果deconfig有报错,可能需要执行下面的命令(注意路径更改)
[root@xxx ~] cp -p /oracle/app/11.2.0/grid/perl/lib/5.10.0/Env.pm /usr/lib64/perl5/vendor_perl/
(12.2: cp -p /oracle/app/12.2.0/grid/perl/lib/5.10.0/Env.pm /usr/lib64/perl5/vendor_perl/)
step2 在另一个窗口执行dd
[root@xxx ~]# dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1
step 3 root.sh
/oracle/app/11.2.0/grid/root.sh
(总之,在启动has时,dd)
解决办法2:一劳永逸
添加服务
step1.
vi /etc/systemd/system/ohasd.service
[Unit]
Description=OracleHigh Availability Services
After=syslog.target
[Service]
ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple
Restart=always
[Install]
WantedBy=multi-user.target
step2.
systemctl daemon-reload
systemctl enable ohasd.service
systemctl start ohasd.service
CRS-4544: Unable to connect to OHAS has启动失败相关推荐
- Unable to connect to the Redgate Client Service
今天在使用ssms17同步数据库时,打开后就显示 Unable to connect to the Redgate Client Service 错误,然后看着提示信息就是license过期了,其实已 ...
- 解决安装svn后出现Unable to connect to a repository at URL以及认证失败
首先在ubuntu下安装了svn :(ubuntu安装在虚拟机中) sudo apt-get install subversion 然后创建了一个库: mkdir /home/lyh/svn cd / ...
- eclipse安装SVN插件报错Unable to connect
[help]-> install new sofeware- -> install窗口的work with填写:http://subclipse.tigris.org/update_1.1 ...
- Unable to Connect: sPort: 0 C# ServiceStack.Redis 访问 redis
需求: 对数据库中的不断抓取的文章进行缓存,因此需要定时访问数据,写入缓存中 在捕获到的异常日志发现错误:Unable to Connect: sPort: 0 使用的访问方式是线程池的方式:Poo ...
- TortoiseSVN Unable to connect to a repository at URL XXX
在Checkout资源库时,出现如下错误: Unable toconnectto a repositoryat URL XXX Error Unable to connect to a reposit ...
- 问题解决:错误:unable to connect to node rabbit@localhost: nodedown
OpenStack错误:Error: unable to connect to node rabbit@localhost: nodedown 问题来源:rabbitmq添加用户失败 思考原因 1.翻 ...
- WARN RestSubmissionClient: Unable to connect to server spark://master:
完整报错如下: $ spark-submit --class WordCountLocal --deploy-mode cluster --driver-memory 1g --executor-m ...
- kubectl get node运行时出现:Unable to connect to the server: x509: certificate signed by unknown authority
kubectl get nodes运行时出现:Unable to connect to the server: x509: certificate signed by unknown authorit ...
- (转)svn检出的时候报 Unable to connect to a repository at URL错误
背景: 1. SVN服务器:VisualSVN-Server-2.5.5: 2. SVN客户端:TortoiseSVN-1.7.6.22632-x64-svn-1.7.4.msi: ...
最新文章
- 有什么类方法或是函数可以查看某个项目的Laravel版本的?
- 在线报名竞赛网站java源码_我用Java写出了一个QQ!可在线聊天(附源码)~
- android-学习1 配置环境
- python进行两个大数相加
- jquery 过滤 first last eq filter not
- Dxg——C# 开发笔记整理分类合集【所有的相关记录,都整理在此】
- python编写代码自动运行程序_利用Python编写自动打开指定软件的程序
- 计算机快捷键任务管理器,任务管理器经常要打开任务管理器快捷键是哪个
- Python数据爬虫学习笔记(11)爬取千图网图片数据
- width mismatch when connecting input pin '/processing system 7_0/irq_f2p'(2) to net 'xlconcat_0_dout
- 创建最大堆、最小堆、图解堆排序
- 一元二次方程ax2+bx+c=0的解
- Realsense D435i +Opencv 获取彩色、深度、IMU数据并对齐
- 来,看一个真实的用户分析案例!
- 小白看了这个也能将自己的网站优化到百度排名第一
- 爬虫----js逆向某宝h5的sign参数
- Scard API 智能卡操作
- R语言怎么写积分_会员积分规则怎么写?
- 欧几里得算法、扩展欧几里得算法(特解、应用、通解)
- 在Project软件的甘特图中添加横线和竖线