Can't call method "uid" on an undefined value at $GI_HOME/OPatch/auto/database/bin/module/DBUtilServices.pm line 28


1. 错误信息

# ./OPatch/opatchauto apply ./37957391/
Can't call method "uid" on an undefined value at /u01/app/18.0.0/grid/OPatch/auto/database/bin/module/DBUtilServices.pm line 28.

2. 原因

  1. 没有安装GI。
  2. $GI_HOME/oraInst.loc 文件丢失。

3. 解决方案

  1. 针对第一种情况: 执行gridSetup.sh 安装grid instructure.
  2. 针对第二种情况: 创建 $GI_HOME/oraInst.loc 并补充内容:

    cat > oraInst.loc <<EOF
    inventory_loc=/g01/app/oraInventory
    inst_group=oinstall
    EOF
    
posted @ 2025-09-24 00:32  halberd.lee  阅读(31)  评论(0)    收藏  举报