加入收藏 | 设为首页 | 会员中心 | 我要投稿 晋中站长网 (https://www.0354zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长百科 > 正文

Oracle 11gR2 RAC搭建(虚拟机搭建)

发布时间:2021-03-18 08:34:01 所属栏目:站长百科 来源:网络整理
导读:安装环境说明与虚拟机规化: 安装环境 主机操作系统:windows 10 虚拟机VMware15:两台CentOS-7.6 Oracle Database software: Oracle11gR2 (11.2.0.1.0) Cluster software: Oracle grid infrastructure 11gR2(11.2.0.1.0) 共享存储:ASM oracle传送门 ht

安装完,在每个节点用root用户执行脚本

Oracle 11gR2 RAC搭建(虚拟机搭建)


#/u01/app/oracle/product/11.2.0/db_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_1
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.
Finished product-specific root actions.
执行过程出错:
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 at /u01/app/11.2.0/grid/crs/install/rootcrs.pl line 443.
这是11.0.2.1的经典问题,一个bug,解决办法也很简单,开2个窗口一个跑root.sh在执行root.sh命令出现Adding daemon to inittab的时候在另外一个窗口反复执行/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.sh之前别忘了删除配置:/u01/app/11.2.0/grid/crs/install/roothas.pl -deconfig -force-verbose
参考:
http://www.voidcn.com/article/p-hegzylwu-bmn.html

到此完成数据库软件安装

(编辑:晋中站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读