ITPub博客

首页 > 数据库 > Oracle > centos7 单机安装grid,启用oracle restart

centos7 单机安装grid,启用oracle restart

原创 Oracle 作者:yuefei200274 时间:2018-03-09 18:47:40 0 删除 编辑
[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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10815375/viewspace-2151684/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-01-27

  • 博文量
    9
  • 访问量
    43611