centos7怎么安装grid并启用oracle restart

28次阅读
没有评论

共计 2004 个字符,预计需要花费 6 分钟才能阅读完成。

本篇内容主要讲解“centos7 怎么安装 grid 并启用 oracle restart”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让丸趣 TV 小编来带大家学习“centos7 怎么安装 grid 并启用 oracle restart”吧!

[root@yue ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core) 

图形界面安装,对话框显示不完全的问题

默认我们安装的时候都是: ./runInstaller  也就是直接运行安装文件,但是这种默认安装的方式就会出现上述错误,为了避免上述情况出现可以通过指定参数安装:

./runInstaller -jreLoc /usr/lib/jvm/jre-1.8.0

安装到 86% 时报错

解决方法:

在 makefile 中添加链接 libnnz11 库的参数

修改 /app/data/oracle/product/11g/sysman/lib/ins_emagent.mk 文件

将:$(MK_EMAGENT_NMECTL)修改为:$(MK_EMAGENT_NMECTL) -lnnz11

然后点击 Retry 继续安装,就可以安装成功了

centos7  pmap 要加上 -p   参数才能看到完整路径
安装 root.sh 脚本时,报错,
ohasd failed to start
Failed to start the Clusterware. Last 20 lines of the alert log follow:
2016-01-01 02:14:46.806:
[client(11401)]CRS-2101:The OLR was formatted using version 3.
2016-01-01 02:14:49.572:
[client(11424)]CRS-1001:The OCR was formatted using version 3.
查相关资料需安装补丁包 18370031,参考下面链接:
https://fatdba.com/2016/01/06/oracle-gi-11-2-installation-on-rhel-7-error-ohasd-failed-to-start-failed-to-start-the-clusterware-last-20-lines-of-the-alert-log-follow-ohasd-failed-to-start-at-u01app11-2-0gridcrsinstallr/
安装补丁后,执行 ROOT.SH
[oracle@localhost bin]$ ./crs_stat -t
Name Type Target State Host
————————————————————
ora.cssd ora.cssd.type OFFLINE OFFLINE
ora.diskmon ora….on.type OFFLINE OFFLINE
ora.evmd ora.evm.type ONLINE ONLINE localhost
ora.ons ora.ons.type OFFLINE OFFLINE

linux7 下,root.sh 脚本没有正确安装,可能是 BUG 造成 OHASD 服务没有开机启动,6 之前是在 /etc/inittab 添加启动目录,7 改变了,需在下面目录创建软连接,设置开机启动
[root@yue multi-user.target.wants]# ln -s /etc/systemd/system/oracle-ohasd.service /usr/lib/systemd/system/multi-user.target.wants/oracle-ohasd.service

http://www.lunar2013.com/2016/01/linux7%EF%BC%88centosrheloel%EF%BC%89%E5%92%8Coracle-rac%E7%8E%AF%E5%A2%83%E7%B3%BB%E5%88%97-7-%E7%BD%91%E7%BB%9C%E7%AE%A1%E7%90%86%E4%B9%8B%E6%B7%BB%E5%8A%A0%E7%BD%91%E5%8D%A1.html

srvctl start database -d devdb  报 ORA-01031: insufficient privileges 

将 GRID 添加到 DBA 组即可

usermod -a -G dba grid
http://blog.itpub.net/23135684/viewspace-689072

到此,相信大家对“centos7 怎么安装 grid 并启用 oracle restart”有了更深的了解,不妨来实际操作一番吧!这里是丸趣 TV 网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-08-01发表,共计2004字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)