DB:12.1.0.2.0 RAC

OS:AIX 7.1

【To patch only the GI home】 
su - root 
export UNZIPPED_PATCH_LOCATION=/oracle/data_dump/12c/27726478 
export GI_HOME=/oracle/app/12.1.0/grid 
export PATH=$PATH:$GI_HOME/OPatch 
opatchauto apply $UNZIPPED_PATCH_LOCATION/27468957 -oh $GI_HOME -analyze 
opatchauto apply $UNZIPPED_PATCH_LOCATION/27468957 -oh $GI_HOME

---操作日志如下

root@DB01:/>opatchauto apply $UNZIPPED_PATCH_LOCATION/27468957 -oh $GI_HOME -analyze
which: 0652-141 There is no sudo in /bin /usr/bin /usr/local/bin /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin /oracle/app/12.1.0/grid/OPatch /oracle/app/12.1.0/grid/OPatch /oracle/app/12.1.0/grid/OPatch.

OPatchauto session is initiated at Tue Jul 17 10:55:05 2018
OPATCHAUTO-72083: Performing bootstrap operations failed.
OPATCHAUTO-72083: The bootstrap execution failed because OPATCHAUTO-72049: Script execution failed.
OPATCHAUTO-72049: Script execution failed due to {0}.
OPATCHAUTO-72049: Please correct the environment and rerun opatchauto..
OPATCHAUTO-72083: Fix the reported problem and re-run opatchauto.

OPatchauto session completed at Tue Jul 17 10:55:13 2018
Time taken to complete the session 0 minute, 9 seconds

opatchauto bootstrapping failed with error code 255.

root@DB01:/>opatchauto apply $UNZIPPED_PATCH_LOCATION/27468957 -oh $GI_HOME
which: 0652-141 There is no sudo in /bin /usr/bin /usr/local/bin /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin /oracle/app/12.1.0/OPatch /oracle/app/12.1.0/grid/OPatch /oracle/app/12.1.0/grid/OPatch.

OPatchauto session is initiated at Mon Jul 16 17:16:41 2018
OPATCHAUTO-72083: Performing bootstrap operations failed.
OPATCHAUTO-72083: The bootstrap execution failed because OPATCHAUTO-72049: Script execution failed.
OPATCHAUTO-72049: Script execution failed due to {0}.
OPATCHAUTO-72049: Please correct the environment and rerun opatchauto..
OPATCHAUTO-72083: Fix the reported problem and re-run opatchauto.

OPatchauto session completed at Mon Jul 16 17:16:49 2018
Time taken to complete the session 0 minute, 9 seconds

opatchauto bootstrapping failed with error code 255.

MOS上有一篇文档:【MOS】Opatchauto failed with : OPATCHAUTO-72049: Script execution failed due to Patch version not found (文档 ID 2197084.1)


APPLIES TO:

Oracle Database - Enterprise Edition - Version 12.1.0.2 to 12.1.0.2 [Release 12.1]
Information in this document applies to any platform.

SYMPTOMS

Attempting to install the latest GI PSU on Oracle Database and receive the following message:

# $ORACLE_HOME/OPatch/opatchauto apply <UNZIP_Location>/24412235/ -analyze

OPatchauto session is initiated at Fri Oct 21 08:58:56 2016
OPATCHAUTO-72049: Script execution failed.
OPATCHAUTO-72049: Script execution failed due to
Patch version not found
.
OPATCHAUTO-72049: Please correct the environment and rerun opatchauto.

OPatchauto session completed at Fri Oct 21 08:58:58 2016
Time taken to complete the session 0 minute, 2 seconds

opatchauto bootstrapping failed with error code 1.

or

OPATCHAUTO-72049: Script execution failed due to Cannot run program "/bin/bash": error=13, Permission denied.

CAUSE

Case 1:

In Central Inventory current clusterware home flag is marked for both 11g and 12c homes.

<HOME NAME="OraGI12Home" LOC="/u01/app/oracle/grid/12.1.0" TYPE="O" IDX="73" CRS="true"/>

<HOME NAME="OraGI11home" LOC="/u01/app/oracle/grid/11.2.0" TYPE="O" IDX="1" CRS="true"/>

Case 2:

Wrong platform opatch.

(Ex: Downloaded p6880880_121010_LINUX.zip file for Linuxx86-64 OS)

Case 3:

Due to old opatch version.

SOLUTION

Case 1:

Unset "CRS=true" Flag for Oracle 11g Clusterware Home with below command & re-run the opatchauto command.

# <GRID_HOME>/oui/bin/runInstaller -updateNodeList -silent CRS=false ORACLE_HOME="/u01/app/oracle/grid/11.2.0"

Case 2:

Download the right platform opatch zip file from below link and re-try opatchauto.

Download link: https://updates.oracle.com/download/6880880.html

Case 3:

Download the latest opatch version file from below location and re-try opatchauto.

Download link for latest opatch version: https://updates.oracle.com/download/6880880.html


检查和尝试了MOS上的方法,都不可行。

Oracle表示:you need to request OS team to install the bash package and then trying to validate the bash is installed for both the root and grid installation owner.

检查节点1和节点2的bash


root@DB01:/>which bash 
which: 0652-141 There is no bash in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin. 
root@DB01:/>echo $SHELL 
/usr/bin/ksh 
root@DB01:/>echo $BASH_VERSION

root@DB01:/>

root@DB02:/>which bash 
which: 0652-141 There is no bash in /usr/bin /etc /usr/sbin /usr/ucb /usr/bin/X11 /sbin /usr/java5/jre/bin /usr/java5/bin. 
root@DB02:/> 
 root@DB02:/>echo $SHELL 
/usr/bin/ksh 
root@DB02:/>echo $BASH_VERSION

root@DB02:/>


这里放一下IBM安装Oracle 12.1的连接和附件文档(显示需要单独安装bash)

Oracle Database 12c Release 1 Enterprise Edition and Oracle Real Application Clusters on IBM Power Systems with AIX 7.1
http://www-01.ibm.com/support/docview.wss?uid=tss1wp102448   链接:https://pan.baidu.com/s/1oaQ7GVwUWGxjXQw0zEDVkw 密码:rvou

bash-4.2-1 (This can be downloaded from http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/date.html)

AIX7.1环境打补丁缺少bash OPATCHAUTO-72049的更多相关文章

  1. PHP环境搭建时缺少php7apache2_4.dll怎么办

    PHP环境搭建时缺少php7apache2_4.dll怎么办 下载的文件有问题! 1.在PHP官网点击Download下载时不管选择哪个版本的都有两个类型  如果需要 php7apache2_4.dl ...

  2. 解决 U2000 R017 安装报错: 检查SQL server数据库环境变量信息 ( 异常 ) [ 详细信息 ] PATH环境变量中缺少数据库路径的信息

    U2000 R017 安装报错: 检查SQL server数据库环境变量信息 ( 异常 ) [ 详细信息 ] PATH环境变量中缺少数据库路径的信息 管理员模式打开注册表位置: HKEY_LOCAL_ ...

  3. 19c新环境安装补丁(三)_推荐

    本次安装Oracle RAC 19.3 版本 Linux red-hat 7.8  DB安装补丁  RUR 20200717. 本次安装Oracle补丁的方法类似于11G RAC打补丁的方法.  [可 ...

  4. Windows 环境下配置 git bash 的 HOME 默认路径

    0.引 在 windows 下安装 git 之后, git 默认的HOME和~路径一般都是C:\Users\用户名,每次得用命令切换到常用的Repository下,此操作重复而没有意义.为了修改默认路 ...

  5. Linux编程环境介绍(2) -- shell(Bash) 介绍

    1. 在计算机科学中,Shell俗称壳(用来区别于核),是指“提供使用者使用界面”的软件(命令解析器).它类似于DOS下的command和后来的cmd.exe. 2. bash (Bourne Aga ...

  6. 【Oracle】11G 11.2.0.4 RAC环境打补丁

    一.准备工作 1,数据库环境 操作系统版本  : RedHat 7.2 x64   数据库版本    : Oracle 11.2.0.4 x64 RAC    Grid          : 11.2 ...

  7. python打造漏洞补丁缺少检测

    前言: 当我们进行后渗透的时候,进行提权的时候 要识别被未打补丁的漏洞.来进行提权,从而 拿到管理员权限. 思路: 1.让使用者在cmd中打systeminfo命令.将补丁号 放入一个txt. 2.与 ...

  8. suse linux 操作系统下打BASH补丁

    1.检查当前版本信息: bash -version echo $BASH_VERSION   2.打4.3版本的补丁 在tmp目录下(保险起见,空间至少要100M以上)新建一个bash_upgrade ...

  9. Bash 中的环境变量

    在 Bash 里,可以通过 export 命令查看当前 Shell 进程的环境变量,这些环境变量一些是 Bash 自己创建的,还有一些是 Bash 从父进程继承来的,然而需要注意的是,父进程传给 Ba ...

随机推荐

  1. vuejs使用jsx语法

    想要vuejs项目支持jsx语法,需要一些插件 babel-plugin-transform-vue-jsx Babel plugin for Vue 2.0 JSX 使用方法: 安装 npm ins ...

  2. lintcode 447 Search in a Big Sorted Array(倍增+二分)

    题意:给一个按照升序排序的正整数数组.这个数组很大以至于只能通过固定的接口ArrayReader->get(k)来访问第k个数.并且也没有办法得知这个数组有多大.找到给出的整数target第一次 ...

  3. Failed global initialization:FileNotOpen: Failed to open "C:\MongoDB\data\log\mongo.log" 安装MongoDB时卡死

    在安装MongoDB的时候,下载了3.6版本,安装过程中发现到一半就卡死了,后面换了一个较低版本的才安装成功 这里是所有MongoDB版本的下载地址: https://www.mongodb.org/ ...

  4. 【AtCoder】【模型转化】【二分答案】Median Pyramid Hard(AGC006)

    题意: 给你一个排列,有2*n-1个元素,现在进行以下的操作: 每一次将a[i]替换成为a[i-1],a[i],a[i+1]三个数的中位数,并且所有的操作是同时进行的,也就是说这一次用于计算的a[], ...

  5. TCP/IP协议、HTTP协议、SOCKET通讯详解

    1.TCP连接TCP(Transmission Control Protocol) 传输控制协议.TCP是主机对主机层的传输控制协议,提供可靠的连接服务,采用三次握确认建立一个连接.位码即tcp标志位 ...

  6. django——模板层

    每一个Web框架都需要一种很便利的方法用于动态生成HTML页面. 最常见的做法是使用模板. 模板包含所需HTML页面的静态部分,以及一些特殊的模版语法,用于将动态内容插入静态部分. 说白了,模板层就是 ...

  7. 在页面上获取web项目信息

    获取协议名称:request.getScheme() 获取域名:request.getServerName() 获取项目名称:request.getContextPath() 使用EL表达式获取项目名 ...

  8. readonly与disabled的区别

    一. 范围不同 readonly 只对 <input> 和 <textarea> 标签有效 disabled 对所有表单元素都有效, 包括:<input>, < ...

  9. nginx r日志中午出现\xE5\x88\x98\xE4\xB8\x96\xE5\xA5\x87

    参考文档: https://www.cnblogs.com/hark0623/p/5715726.html https://www.cnblogs.com/fqfanqi/p/7900758.html ...

  10. ST表 || RMQ问题 || BZOJ 1699: [Usaco2007 Jan]Balanced Lineup排队 || Luogu P2880 [USACO07JAN]平衡的阵容Balanced Lineup

    题面:P2880 [USACO07JAN]平衡的阵容Balanced Lineup 题解: ST表板子 代码: #include<cstdio> #include<cstring&g ...