随着Linux 7 版本的普及,但Oracle数据库主流版本仍是11gR2,11.2.0.4 是生产安装首选。由于11.2.0.4对Linux 7 的支持不很完美,在Linux 7 上安装会遇到几处问题,以此记录下来。

  https://docs.oracle.com/cd/E11882_01/relnotes.112/e23558/toc.htm#CJAJEBGG

  1.安装GI执行root.sh脚本时,ohasd 进程无法正常启动

  ohasd failed to start

  Failed to start the Clusterware. Last 20 lines of the alert log follow:

  2018-04-19 09:54:30.897:

  [client(19244)]CRS-2101:The OLR was formatted using version 3.

  alert:

  Oracle High Availability Service has timed out waiting for init.ohasd to be started.

  因为Oracle Linux 7(和Redhat 7)使用systemd而不是initd来启动/重新启动进程,并将它们作为服务运行,所以当前的11.2.0.4和12.1.0.1的软件安装不会成功,因为ohasd进程没有正常启动。

  解决方法一:

  在root.sh执行之前先打上补丁:18370031。

  解决方法二:手动在systemd中添加ohasd服务

  (1).创建一个空服务文件:/usr/lib/systemd/system/ohasd.service

  touch /usr/lib/systemd/system/ohasd.service

  (2).编辑文件ohasd.service添加如下内容

  vi /usr/lib/systemd/system/ohasd.service

  [Unit]

  Description=Oracle High Availability Services

  After=syslog.target

  [Service]

  ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple

  Restart=always

  [Install]

  WantedBy=multi-user.target

  (3).添加和启动服务

  systemctl daemon-reload

  systemctl enable ohasd.service

  systemctl start ohasd.service

  查看运行状态:

  [root@rac1 system]# systemctl status ohasd.service

  ● ohasd.service - Oracle High Availability Services

  Loaded: loaded (/usr/lib/systemd/system/ohasd.service; enabled; vendor preset: disabled)

  Active: active (running) since Thu 2018-04-19 14:10:19 CST; 1h 16min ago

  Main PID: 1210 (init.ohasd)

  CGroup: /system.slice/ohasd.service

  └─1210 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple

  Apr 19 14:10:19 bms-75c8 systemd[1]: Started Oracle High Availability Services.

  Apr 19 14:10:19 bms-75c8 systemd[1]: Starting Oracle High Availability Services...

  (4).重新执行root.sh脚本

  注意: 为了避免其余节点遇到这种报错,可以在root.sh执行过程中,待/etc/init.d/目录下生成了init.ohasd 文件后执行systemctl start ohasd.service 启动ohasd服务即可。若没有/etc/init.d/init.ohasd文件 systemctl start ohasd.service 则会启动失败。

  2.安装database软件时候会报错:

  Error in invoking target 'agent nmhs' of makefile '/u01/app/oracle/product/11.2.0/db_1/sysman/lib/ins_emagent.mk'

  复制代码

  解决方法一:

选择 Continue 继续,然后打上补丁:19692824

解决方法二:

编辑文件 $ORACLE_HOME/sysman/lib/ins_emagent.mk

  复制代码

  vi /u01/app/oracle/product/11.2.0/db_1/sysman/lib/ins_emagent.mk

  复制代码

  
找到 $(MK_EMAGENT_NMECTL) 这一行,在后面添加 -lnnz11 如下:

  复制代码

  $(MK_EMAGENT_NMECTL) -lnnz11

然后点击retry 即可

  复制代码

  (编辑:雷林鹏 来源:网络)

最新文章

  1. 51Nod 1278 相离的圆
  2. Android基于mAppWidget实现手绘地图(三)--环境搭建
  3. VS 2013打开.edmx文件时报类型转换异常
  4. C#压缩图片1
  5. 四、oracle基本sql语句和函数详解
  6. java Spring 在WEB应用中的实例化
  7. 使用with语句来写一个稍微复杂sql语句,附加和子查询的性能对比
  8. 剑指offer 整数中1 出现的次数
  9. CountDownLatch类的使用
  10. Django date__range([start,end])其中不包括end时间
  11. C# 操作docx文档
  12. xampp访问phpmyadmin访问不了
  13. Flink Pre-defined Timestamp Extractors / Watermark Emitters(预定义的时间戳提取/水位线发射器)
  14. ASP.NET登录验证
  15. ocr智能图文识别 tess4j 图文,验证码识别
  16. mysql 8.0 ~ 索引优化
  17. PAT A1150 Travelling Salesman Problem (25 分)——图的遍历
  18. [CF241E]Flights
  19. 自动化CodeReview - ASP.NET Core依赖注入
  20. 利用js实现 禁用浏览器后退 浏览器返回

热门文章

  1. Redis快速起步及Redis常用命令大全
  2. Oracle之rman命令的使用全备输出信息的详解(51CTO风哥rman课程)
  3. HDU 5652 India and China Origins(并查集)
  4. ConcurrentHashMap实现解析
  5. Python开发【模块】:time、datatime
  6. django haystack
  7. java反射机制与动态代理
  8. innobackupex 还原和备份实例
  9. git-【三】理解工作区与暂存区的区别
  10. #C++初学记录(素数判断)