随着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 即可

  复制代码

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

RHEL7.X 安装 11.2.0.4 RAC 问题的更多相关文章

  1. RHEL7或CentOS7安装11.2.0.4 RAC碰到的问题

    RHEL7或CentOS7安装11.2.0.4 RAC碰到的问题 随着Linux 版本的普及,但Oracle数据库主流版本仍是11gR2, 的支持不很完美,在Linux 上安装会遇到几处问题,以此记录 ...

  2. RHEL6.5安装11.2.0.3 RAC并打补丁

    [TOC] 一,主机配置 1.修改hosts文件(两节点) #127.0.0.1 localhost localhost.localdomain localhost4 localhost4.local ...

  3. Oracle 11.2.0.4 RAC安装最新PSU补丁

    环境:两节点RAC(RHEL 6.4 + GI 11.2.0.4 + Oracle 11.2.0.4) 需求:安装最新PSU补丁11.2.0.4.7 1.下载补丁和最新OPatch 2.检查数据库当前 ...

  4. ORACLE LINUX 6.3 + ORACLE 11.2.0.3 RAC + VBOX安装文档

    ORACLE LINUX 6.3 + ORACLE 11.2.0.3 RAC + VBOX安装文档 2015-10-21 12:51 525人阅读 评论(0) 收藏 举报  分类: Oracle RA ...

  5. HPDL380G8平台11.2.0.3 RAC实施手册

    HPDL380G8平台11.2.0.3 RAC实施手册   1 前言 此文档详细描述了Oracle 11gR2 数据库在HPDL380G上的安装RAC的检查及安装步骤.文档中#表示root用户执行,$ ...

  6. oracle 11.2.0.4 rac 打补丁

    本次安装pus环境是11.2.0.4 rac,打的patch为11.2.0.4.180717 (Includes Database PSU),gi补丁和数据库补丁一起打 安装最新opatch版本 un ...

  7. opatch auto 安装11.2.0.4.20190115 PSU遇到 OUI-67133: Execution of PRE script failed,with returen value 1 报错

    AIX 7.2 下Oracle 11.2.0.4  RAC数据库root用户在使用 /u01/app/11.2.0/grid/OPatch/opatch auto /soft/28813878 -oc ...

  8. CentOS 7.1静默安装11.2.0.3 64位单机数据库软件

    第1章 CentOS 7.1静默安装11.2.0.3 64位单机数据库软件 1.1  安装前的准备工作 1.1.1      软件准备 1.1.2      检查硬件 注意这里的内存应该满足要求,不然 ...

  9. Oracle安装11.2.0.4.180116补丁及如何检查数据库安装补丁

    最近做了一个安装11.2.0.4.180116补丁的实验,突然想起之前和同事讨论的一个问题:如何检查数据库安装补丁的版本,之前搜到的是去查dba_registry_history,有的说在操作系统中执 ...

随机推荐

  1. java8新增的日期时间包

    Clock clock=Clock.systemUTC(); System.out.println("当前时刻为:"+clock.instant()); System.out.pr ...

  2. Maven搭建Nexus私有仓库

    下载压缩包nexus-2.13.0-01-bundle.tar.gz 解压后有两个目录 进入程序目录启动 ./nexus start 启动告警(确认用root启动把以下加入到环境变量) export ...

  3. 更快写入的落脚点不是线程数而是mysql连接数 对数据库 批处理 批写入

    批提交mysql 单线程的批提交 nohup  python fromRedisoToMysqlSingleThreadOneConnBatchInsert.py 100 10.24.192.192 ...

  4. AJAX.basic

    之前在项目中使用ajax都是通过jQuery的Ajax API来进行的,今天试了一下通过基本的JavaScript来进行ajax请求,将代码记录下来: jsp 页面 <%@ page pageE ...

  5. SpringCloud 进阶之Zuul(路由网关)

    1. Zuul(路由网关) Zuul 包含了对请求的路由和过滤两个最主要的功能; 路由功能:负责将外部请求转发到具体的微服务实例上,是实现外部访问统一入口的基础; 过滤功能:负责对请求的处理过程进行干 ...

  6. 通过 微软 pai-fs 上传数据到HDFS (Microsoft OpenPAI)

    准备环境 (个人使用记录,方便下次使用查阅~~) 首先保证PAI是登陆状态: 进入GitHub项目所在地址: https://github.com/Microsoft/pai/ 然后切换分支到  具体 ...

  7. 7.如何将python脚本打包为exe形式

    先安装pyinstaller,pip install pyinstaller 然后 pyinstaller -F combine.py打包即可

  8. laravel常用的artisan命令

    转载来源链接: https://blog.csdn.net/jiandanokok/article/details/72897682 全局篇 查看artisan命令 php artisan php a ...

  9. Yarn框架和工作流程研究

    一.概述     将公司集群升级到Yarn已经有一段时间,自己也对Yarn也研究了一段时间,现在开始记录一下自己在研究Yarn过程中的一些笔记.这篇blog主要主要从大体上说说Yarn的基本架构以及其 ...

  10. samba文件共享服务配置一(共2节)

    一.samba服务简介 Samba是在Linux和UNIX系统上实现SMB协议的一个免费软件,由服务器及客户端程序构成.SMB(Server Messages Block,信息服务块)是一种在局域网上 ...