【问题标题】:Oracle AIX: opatchauto wasn't able to run the command "" because 'bash' command could not be found on the current platformOracle AIX:opatchauto 无法运行命令“”,因为在当前平台上找不到“bash”命令
【发布时间】:2015-11-03 16:23:32
【问题描述】:

我正在尝试在运行 AIX 的系统上安装 Oracle 12c 补丁。二进制文件和数据库都已安装并正在运行,但我现在遇到了问题,似乎找不到修复程序。

我正在将opatchauto 的位置导出到 PATH 变量,然后运行:

opatchauto 应用(opatchauto 在 $PATH 中的位置)-分析

opatchauto 正常启动,但随后失败并显示以下消息:

opatchauto wasn't able to run the command "ORACLE_HOME=/db/opt00/oracle/product/12.1.0 /db/opt00/oracle/product/12.1.0/bin/srvctl stop home -o /db/opt00/oracle/product/12.1.0 -f -s /db/opt00/oracle/product/12.1.0/OracleHome-1c2d7f9a-7e5d-49b8-bea4-08b559868cc1.stat" because 'bash' command could not be found on the current platform.
For more details, please refer to the log file "/asm/opt00/oracle/product/12.1.0/cfgtoollogs/opatchauto/20834538/opatch_gi_2015-08-10_08-13-44_analyze.debug.log".

bash (sh) 在 /bin/$PATH 中,所以我想知道是否有其他人有解决此问题的经验和/或有关如何解决它的想法。

谢谢!

【问题讨论】:

  • bashsh 不同,所以如果你有sh 而不是bash,那可能是问题
  • 啊,我明白了。有人告诉我这没关系,但 bash 不存在,所以这看起来可能是罪魁祸首.....

标签: oracle bash aix oracle12c


【解决方案1】:

正如 Eric 指出的那样,这是真的。 事实上,在大多数情况下,您会发现 AIX 的默认 shell 是 ksh。因此,请确保在启动时使用正确的外壳。 如果脚本是这样调用的,也可以将#!/bin/sh 添加到脚本的开头,因为这将确保在正确的 shell 中启动,而不管您自己的环境变量如何。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-10-09
    • 2018-01-08
    • 2022-11-29
    • 1970-01-01
    • 2023-03-21
    • 2012-01-24
    • 1970-01-01
    相关资源
    最近更新 更多