问题现象:在使用Opatch打补丁时,报下面的错误:
# /u01/app/11.2.0/grid/OPatch/opatch auto /psu/20996923/ -ocmrf /psu/ocm.rsp
...
patch /psu/20996923/20760982 apply failed for home /u01/app/oracle/product/11.2.0/dbhome_1
分析:
看日志:
2017-07-22 23:57:09: Executing command /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch napply /psu/20996923/20760982 -local -silent -ocmrf /psu/ocm.rsp -oh /u01/app/oracle/product/11.2.0/dbhome_1 -invPtrLoc /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc as oracle
2017-07-22 23:57:09: Running as user oracle: /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch napply /psu/20996923/20760982 -local -silent -ocmrf /psu/ocm.rsp -oh /u01/app/oracle/product/11.2.0/dbhome_1 -invPtrLoc /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
2017-07-22 23:57:09: s_run_as_user2: Running /bin/su oracle -c ' /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch napply /psu/20996923/20760982 -local -silent -ocmrf /psu/ocm.rsp -oh /u01/app/oracle/product/11.2.0/dbhome_1 -invPtrLoc /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc '
2017-07-22 23:57:14: Removing file /tmp/filebnWGJZ
2017-07-22 23:57:14: Successfully removed file: /tmp/filebnWGJZ
2017-07-22 23:57:14: /bin/su exited with rc=73
2017-07-22 23:57:14: status of apply patch is 18688
2017-07-22 23:57:14: The apply patch output is Oracle Interim Patch Installer version 11.2.0.3.16
Copyright (c) 2017, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0/dbhome_1/oraInst.loc
OPatch version : 11.2.0.3.16
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2017-07-22_23-57-10PM_1.log
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Following executables are active :
/u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2017-07-22_23-57-10PM_1.log
OPatch failed with error code 73
2017-07-22 23:57:14: patch /psu/20996923/20760982 apply failed for home /u01/app/oracle/product/11.2.0/dbhome_1