~]$ /u01/app/11.2.0/grid/OPatch/opatch lsinventory -detail -oh /u01/app/11.2.0/grid/ Oracle Interim Patch Installer version 11.2.0.3.6 Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/11.2.0/grid Central Inventory : /u01/app/oraInventory from : /u01/app/11.2.0/grid//oraInst.loc OPatch version : 11.2.0.3.6 OUI version : 11.2.0.4.0 Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2024-02-07_15-49-02PM_1.log
~]$ /u01/app/oracle/product/11.2.0/db_1/OPatch/opatch lsinventory -detail -oh /u01/app/oracle/product/11.2.0/db_1/ Oracle Interim Patch Installer version 11.2.0.3.6 Copyright (c) 2013, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0/db_1 Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/product/11.2.0/db_1//oraInst.loc OPatch version : 11.2.0.3.6 OUI version : 11.2.0.4.0 Log file location : /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2024-02-07_15-50-33PM_1.log
This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2024-02-07_17-13-14.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2024-02-07_17-13-14.report.log
patch /soft/19955028/19769489 apply successful for home /u01/app/oracle/product/11.2.0/db_1 patch /soft/19955028/19769476/custom/server/19769476 apply successful for home /u01/app/oracle/product/11.2.0/db_1
Stopping CRS... Stopped CRS successfully
patch /soft/19955028/19769489 apply successful for home /u01/app/11.2.0/grid patch /soft/19955028/19769476 apply successful for home /u01/app/11.2.0/grid patch /soft/19955028/19769469 apply successful for home /u01/app/11.2.0/grid
Starting CRS... Installing Trace File Analyzer CRS-4123: Oracle High Availability Services has been started.
Starting RAC /u01/app/oracle/product/11.2.0/db_1 ... Started RAC /u01/app/oracle/product/11.2.0/db_1 successfully
opatch auto succeeded.
Loading Modified SQL Files into the Database.
The following steps load modified SQL files into the database. For an Oracle RAC environment, perform these steps on only one node
~]$ cd$ORACLE_HOME/rdbms/admin admin]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Wed Feb 7 18:13:52 2024
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options
~]# /u01/app/11.2.0/grid/OPatch/opatch auto /soft/19955028 -ocmrf /soft/ocm.rsp Can't locate Switch.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /u01/app/11.2.0/grid/OPatch/crs/auto_patch.pl line 2730. BEGIN failed--compilation aborted at /u01/app/11.2.0/grid/OPatch/crs/auto_patch.pl line 2730.
The perl version greater than 5.10 have not Swith.pm file.
~]# cp -a /u01/app/11.2.0/grid/perl/lib/5.10.0/Switch.pm /usr/lib64/perl5/
OUI-67073 UtilSession failed
patch /soft/19955028/19769489 apply failed for home /u01/app/oracle/product/11.2.0/db_1 patch /soft/19955028/19769489 apply failed for home /u01/app/11.2.0/grid
This system is not registered with an entitlement server. You can use subscription-manager to register.
============================================================================================================ Matched: fuser ============================================================================================================ psmisc.x86_64 : Utilities for managing processes on your system
~]# yum -y install psmisc ~]# which fuser /usr/sbin/fuser
Then retry apply.
OUI-67124 Copy failed
The ohasd.bin copy failed.
Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'... Please verify all applications associated with the Oracle Home '/u01/app/11.2.0/grid' are shut down. If this is AIX, please perform solution documented in Note 739963.1 on https://myoraclesupport.oracle.com.
Do you want to retry copying the file? [y|n] N (auto-answered by -silent) User Responded with: N
The following actions have failed: Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'...
Do you want to proceed? [y|n] N (auto-answered by -silent) User Responded with: N ApplySession failed in system modification phase... 'ApplySession::apply failed: Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'... '
Restoring "/u01/app/11.2.0/grid" to the state prior to running NApply... OPatch failed to restore the files from backup area. Not running "make".
NApply was not able to restore the home. Please invoke the following scripts: - restore.[sh,bat] - make.txt (Unix only) to restore the ORACLE_HOME. They are located under "/u01/app/11.2.0/grid/.patch_storage/NApply/2024-02-07_16-53-47PM"
UtilSession failed: ApplySession failed in system modification phase... 'ApplySession::apply failed: Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'... ' Log file location: /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2024-02-07_16-53-47PM_1.log
OPatch failed with error code 73
2024-02-07 16:55:00: patch /soft/19955028/19769476 apply failed for home /u01/app/11.2.0/grid
The following actions have failed: [Feb 7, 2024 4:54:49 PM] OUI-67124:Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'... [Feb 7, 2024 4:54:49 PM] Do you want to proceed? [y|n] [Feb 7, 2024 4:54:52 PM] N (auto-answered by -silent) [Feb 7, 2024 4:54:52 PM] User Responded with: N [Feb 7, 2024 4:54:52 PM] OUI-67124:ApplySession failed in system modification phase... 'ApplySession::apply failed: Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'... ' [Feb 7, 2024 4:54:52 PM] Restoring "/u01/app/11.2.0/grid" to the state prior to running NApply... [Feb 7, 2024 4:54:59 PM] OPatch failed to restore the files from backup area. Not running "make". [Feb 7, 2024 4:54:59 PM] OUI-67124: NApply was not able to restore the home. Please invoke the following scripts: - restore.[sh,bat] - make.txt (Unix only) to restore the ORACLE_HOME. They are located under "/u01/app/11.2.0/grid/.patch_storage/NApply/2024-02-07_16-53-47PM" [Feb 7, 2024 4:55:00 PM] OUI-67073:UtilSession failed: ApplySession failed in system modification phase... 'ApplySession::apply failed: Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'... ' [Feb 7, 2024 4:55:00 PM] -------------------------------------------------------------------------------- [Feb 7, 2024 4:55:00 PM] The following warnings have occurred during OPatch execution: [Feb 7, 2024 4:55:00 PM] 1) OUI-67124:Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'... [Feb 7, 2024 4:55:00 PM] 2) OUI-67124:ApplySession failed in system modification phase... 'ApplySession::apply failed: Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'... ' [Feb 7, 2024 4:55:00 PM] 3) OUI-67124: NApply was not able to restore the home. Please invoke the following scripts: - restore.[sh,bat] - make.txt (Unix only) to restore the ORACLE_HOME. They are located under "/u01/app/11.2.0/grid/.patch_storage/NApply/2024-02-07_16-53-47PM" [Feb 7, 2024 4:55:00 PM] -------------------------------------------------------------------------------- [Feb 7, 2024 4:55:00 PM] Finishing UtilSession at Wed Feb 07 16:55:00 CST 2024 [Feb 7, 2024 4:55:00 PM] Log file location: /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2024-02-07_16-53-47PM_1.log [Feb 7, 2024 4:55:00 PM] Stack Description: java.lang.RuntimeException: ApplySession failed in system modification phase... 'ApplySession::apply failed: Copy failed from '/soft/19955028/19769476/files/bin/ohasd.bin' to '/u01/app/11.2.0/grid/bin/ohasd.bin'...
The cause of the error is unknown, move the /u01/app/11.2.0/grid/bin/ohasd.bin file to /tmp before apply.