重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3934|回复: 2
打印 上一主题 下一主题

Oracle 11g /u01/app/grid/product/11.2.0/grid/crs/install/roothas.pl line 296.

[复制链接]
跳转到指定楼层
楼主
发表于 2018-2-12 11:20:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现场环境:centos6.5
故障还原:在centos6.5 上安装11.2.0.1 的。在安装grid时执行root.sh 脚本,报错,如下
[root@oracle app]# /u01/app/grid/product/11.2.0/grid/root.sh
Running Oracle 11g root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/grid/product/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.sh script.
Now product-specific root actions will be performed.
2018-02-04 12:00:21: Checking for super user privileges
2018-02-04 12:00:21: User has super user privileges
2018-02-04 12:00:21: Parsing the host name
Using configuration parameter file: /u01/app/grid/product/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
CRS-4664: Node oracle successfully pinned.
Adding daemon to inittab


CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
ohasd failed to start: Inappropriate ioctl for device
ohasd failed to start: Inappropriate ioctl for device at /u01/app/grid/product/11.2.0/grid/crs/install/roothas.pl line 296.

据说这个错误只有在centos 6.5以上版本且oracle版本11.2.0.1的时候出现。
解决步骤:
1、删除所有grid文件。
2、因为是虚拟机所以我之前有快照,就回滚回去了。
3、通过各种bing搜索,以及群里咨询遇到过的老师。得到下面的解决方案。
环境重现(不用看主机名):
Adding daemon to inittab


CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
ohasd failed to start: Inappropriate ioctl for device
ohasd failed to start: Inappropriate ioctl for device at /u01/app/grid/product/11.2.0/grid/crs/install/roothas.pl line 296.



记住当你在执行root.sh的时候克隆对话框执行以下命令。
[root@oracle-3 ~]#  /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1  (不用怕它说没有目录)
/bin/dd: opening `/var/tmp/.oracle/npohasd': No such file or directory
[root@oracle-3 ~]#  /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1






^C0+0 records in


当你看见以下这个对话的时候,你的任务就完成了。可以停止你的克隆对话。
CRS-4664: Node oracle-3 successfully pinned.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
ADVM/ACFS is not supported on centos-release-6-5.el6.centos.11.1.x86_64




oracle-3     2018/02/11 22:31:46     /u01/app/grid/product/11.2.0/grid/cdata/oracle-3/backup_20180211_223146.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
Updating inventory properties for clusterware
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 1995 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.
总结:至于你非要问我为什么这么操作,对不起,俺也不知道,要问就问老司机把!



分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

沙发
发表于 2018-2-12 23:20:01 | 只看该作者
如果是这个问题,那么应该就是你中招了,遇到11.2.0.1的安装bug,使用11.2.0.4安装吧 .
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2018-2-13 16:48:53 | 只看该作者
这个解决方案可以完全解决该问题。哈哈!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-20 08:04 , Processed in 0.081397 second(s), 19 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表