打补丁报错如下:
[root@hisdg01 grid]# /oracle/app/11.2.0/grid/OPatch/opatch auto /oracle/soft/28813878 -ocmrf /oracle/soft/ocm.rsp -oh /oracle/app/11.2.0/grid
Executing /oracle/app/11.2.0/grid/perl/bin/perl /oracle/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir /oracle/soft -patchn 28813878 -ocmrf /oracle/soft/ocm.rsp -oh /oracle/app/11.2.0/grid -paramfile /oracle/app/11.2.0/grid/crs/install/crsconfig_params
This is the main log file: /oracle/app/11.2.0/grid/cfgtoollogs/opatchauto2020-06-23_15-56-46.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system:
/oracle/app/11.2.0/grid/cfgtoollogs/opatchauto2020-06-23_15-56-46.report.log
2020-06-23 15:56:46: Starting Clusterware Patch Setup
Using configuration parameter file: /oracle/app/11.2.0/grid/crs/install/crsconfig_params
Stopping CRS...
Stopped CRS successfully
patch /oracle/soft/28813878/28729234 apply failed for home /oracle/app/11.2.0/grid
Starting CRS...
Installing Trace File Analyzer
CRS-4123: Oracle High Availability Services has been started.
opatch auto succeeded.
/oracle/app/11.2.0/grid/cfgtoollogs/opatchauto2020-06-23_15-56-46.log:
2020-06-23 16:00:10: s_run_as_user2: Running /bin/su grid -c ' /oracle/app/11.2.0/grid/OPatch/opatch napply /oracle/soft/28813878/28729234 -local -silent -ocmrf /oracle/soft/ocm.rsp -oh /oracle/app/11.2.0/grid -invPtrLoc /oracle/app/11.2.0/grid/oraInst.loc '
2020-06-23 16:00:14: Removing file /tmp/fileflMha2
2020-06-23 16:00:14: Successfully removed file: /tmp/fileflMha2
2020-06-23 16:00:14: /bin/su exited with rc=73
2020-06-23 16:00:14: status of apply patch is 18688
2020-06-23 16:00:14: The apply patch output is Oracle Interim Patch Installer version 11.2.0.3.21
Copyright (c) 2020, Oracle Corporation. All rights reserved.
Oracle Home : /oracle/app/11.2.0/grid
Central Inventory : /oracle/app/oraInventory
from : /oracle/app/11.2.0/grid/oraInst.loc
OPatch version : 11.2.0.3.21
OUI version : 11.2.0.4.0
Log file location : /oracle/app/11.2.0/grid/cfgtoollogs/opatch/opatch2020-06-23_16-00-10PM_1.log
Verifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Exception occured : fuser could not be located:
UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /oracle/app/11.2.0/grid/cfgtoollogs/opatch/opatch2020-06-23_16-00-10PM_1.log
OPatch failed with error code 73
2020-06-23 16:00:14: patch /oracle/soft/28813878/28729234 apply failed for home /oracle/app/11.2.0/grid
2020-06-23 16:00:14: Performing Post patch actions
2020-06-23 16:00:14: norestart flag is set to
2020-06-23 16:00:14: Opening file /etc/oracle/ocr.loc
2020-06-23 16:00:14: Value (FALSE) is set for key=local_only
2020-06-23 16:00:14: Oracle user for /oracle/app/11.2.0/grid is grid
mainlog日志如下:
/oracle/app/11.2.0/grid/cfgtoollogs/opatch/opatch2020-06-23_16-00-10PM_1.log
[Jun 23, 2020 4:00:14 PM] [INFO] Following patches are not required:
[Jun 23, 2020 4:00:14 PM] [INFO] Following patches are auto rollbackable:
[Jun 23, 2020 4:00:14 PM] [INFO] Finished checking prereq checkConflictAmongPatchesWithDetail
[Jun 23, 2020 4:00:14 PM] [INFO] Conflict checking amongst patches PASSED
[Jun 23, 2020 4:00:14 PM] [INFO] Checking conflicts against Oracle Home...
[Jun 23, 2020 4:00:14 PM] [INFO] Running prereq checkConflictAgainstOHWithDetail
[Jun 23, 2020 4:00:14 PM] [INFO] Following patches can be applied: 28729234
[Jun 23, 2020 4:00:14 PM] [INFO] Following patches are not required:
[Jun 23, 2020 4:00:14 PM] [INFO] Following patches are auto rollbackable:
[Jun 23, 2020 4:00:14 PM] [INFO] Finished checking prereq checkConflictAgainstOHWithDetail
[Jun 23, 2020 4:00:14 PM] [INFO] Running prerequisite checks...
[Jun 23, 2020 4:00:14 PM] [INFO] Space Needed : 961.749MB
[Jun 23, 2020 4:00:14 PM] [INFO] Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 28729234
[Jun 23, 2020 4:00:14 PM] [INFO] Exception occured: fuser could not be located:
[Jun 23, 2020 4:00:14 PM] [INFO] Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:
Exception occured : fuser could not be located:
[Jun 23, 2020 4:00:14 PM] [SEVERE] OUI-67073:UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
补丁应用失败的原因为系统没有fuser命令,而oracle补丁需要调用fuser命令,所以导致补丁应用失败
安装fuser命令即可:
yum install -y psmisc
再次应用补丁成功
/oracle/app/11.2.0/grid/OPatch/opatch auto /oracle/soft/28813878 -ocmrf /oracle/soft/ocm.rsp -oh /oracle/app/11.2.0/grid
[root@hisdg01 grid]# su - grid
Last login: Tue Jun 23 16:14:22 CST 2020
[grid@hisdg01 ~]$ opatch lspatches
28729245;ACFS Patch Set Update : 11.2.0.4.190115 (28729245)
28729262;Database Patch Set Update : 11.2.0.4.190115 (28729262)
28729234;OCW Patch Set Update : 11.2.0.4.190115 (28729234)
OPatch succeeded.