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

标题: Oracle 11g /u01/app/grid/product/11.2.0/grid/crs/install/roothas.pl line 296. [打印本页]

作者: 寡人将臣    时间: 2018-2-12 11:20
标题: Oracle 11g /u01/app/grid/product/11.2.0/grid/crs/install/roothas.pl line 296.
现场环境: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.
总结:至于你非要问我为什么这么操作,对不起,俺也不知道,要问就问老司机把!




作者: 郑全    时间: 2018-2-12 23:20
如果是这个问题,那么应该就是你中招了,遇到11.2.0.1的安装bug,使用11.2.0.4安装吧 .

作者: 寡人将臣    时间: 2018-2-13 16:48
这个解决方案可以完全解决该问题。哈哈!




欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2