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)

转载于:https://www.cnblogs.com/wwjd365/p/9376036.html

AIX7.1环境打补丁缺少bash OPATCHAUTO-72049相关推荐

  1. gta4 l3环境优化补丁_【安全刻不容缓】快给你们的爱7打打补丁吧 俄罗斯大佬的持续更新补丁包来了...

    微软win7补丁合集是来自战斗民族俄罗斯某大神的力作,该合集包的名字叫UpdatePack7R2,这是个win7更新补丁安装包.Win7累积更新离线安装包和win7补丁合集,它包括所有关键更新和安全更 ...

  2. Db2 purescale环境db2start因为缺少TSAMP license报错:SQL1677N

    环境:db2 10.5 purescale 问题描述: db2start报错SQL1677N db2inst1@node01:~/sqllib> db2start SQL1677N  DB2ST ...

  3. oracle 11G 11.2.0.4 RAC环境打补丁

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

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

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

  5. c++ vc6.0环境sp6补丁

    vc6..0总是卡住 vc sp6 中英文补丁下载地址英文版地址: http://download.microsoft.com/download/1/9/f/19fe4660-5792-4683-99 ...

  6. linux子系统 显卡,bash 漏洞?linux授权命令sudo?windows linux子系统?新手理解的bash环境变量解析漏洞...

    你是否正在寻找关于bash 漏洞的内容?让我把最简洁的东西奉献给你: 1 环境变量是什么 无论是Windows程序还是Linux程序,都支持环境变量,一般来讲环境变量作为赋值字符串的形式存放到进程内存 ...

  7. bash环境(变量与bash配置文件)

    一:名词理解 编译型:源程序(文本文件)  预处理  编译  汇编  链接 静态语言 解释型:源程序(文本文件)  解析器读取并执行 动态语言 编译器: 解释器: 解释: 词法分析 语法分析 语义分析 ...

  8. bash 的环境配置文件

    bash 的环境配置文件 你是否会觉得奇怪,怎么我们什么动作都没有进行,但是一进入 bash 就取得一堆有用的变量了? 这是因为系统有一些环境配置文件案的存在,让 bash 在启动时直接读取这些配置文 ...

  9. linux shell 获取环境变量,bash shell中的环境变量

    环境变量--bash shell使用环境变量来存储系统相关数据,并允许将数据存储在内存中. 环境变量分为:全局环境变量 本地环境变量 目录全局环境变量 本地环境变量 设置全局环境变量 删除环境变量 P ...

最新文章

  1. 委托、事件、事件访问器
  2. 【Applet编写应用小程序】Applet类APIの基本知识和第一个程序
  3. Cisco H3C 端口汇聚互联
  4. Android Studio上手,基于VideoView的本地文件及流媒体播放器
  5. 程序员面试拼多多,来看看这些面试题你掌握的有多少呢?
  6. Spring Boot知识清单
  7. mysql session 数_查询数据库当前连接数(session),进程数等操作
  8. 新媒体视频导演 - 美学基础 todo
  9. c语言 两条线段位置,C++/STL实现判断平面内两条线段的位置关系代码示例
  10. 编写程序,随机产生20个0到1之间的数,将这20个数写入文本文件中,要求每行5个数
  11. linux运行级别与服务
  12. 自动生成代码:TensorFlow官方工具TF-Coder已开源
  13. Security+ 学习笔记26 业务连续性
  14. 数据结构与算法之优先队列
  15. excel如何设置单元格的下拉选项框并着色
  16. SPSS学习笔记【一】-检验相关性
  17. 数字信号与模拟信号的转化
  18. ps如何切html用的图片,前端实战(一)-----用ps把PSD切成HTML能用的图片
  19. HTML和CSS基础
  20. 黑客攻击第一步你知道是啥吗?

热门文章

  1. Ubuntu 16.04安装MySQL(5.7.18)
  2. Windows Azure Cloud Service (41) 修改云服务IIS托管管道模式为4.0经典模式
  3. 求到所有房子距离和最小的新房子
  4. context:component-scan扫描使用上的容易忽略的use-default-filters
  5. Nginx使用教程(八):使用Nginx缓存之Memcached缓存
  6. Android Studio中Gradle使用详解
  7. 解决Error: Protected multilib versions:
  8. 随意取消和恢复一键备份功能
  9. mysql 回表 覆盖索引_mysql 14 覆盖索引+回表
  10. 3-16Pytorch与随机抽样