Can’t call method “uid” on an undefined value at …DBUtilServices.pm line 28.
August 19, 2019 Leave a comment
Problem:
opatchauto on GI fails with the following error:
# /u01/app/18.0.0/grid/OPatch/opatchauto apply /0/grid/29301682 -oh /u01/app/18.0.0/grid 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.
Reason:
- GI is not setup yet. You may have unzipped GI installation file, but have not run gridSetup.sh
-
$GI_HOME/oraInst.loc
is missing.
Solution:
- Setup GI by running
gridSetup.sh
- Copy the
oraInst.loc
from the other node, if you don’t have another node then please see the file content bellow:
# cat /u01/app/18.0.0/grid/oraInst.loc inst_group=oinstall inventory_loc=/u01/app/oraInventory