Problem Summary:
We were in the middle of July release PSU patches using opatchauto in our EBS oracle home(our grid and DB are both on 19.10 RU), when It failed with multiple errors in the opatch log.
Errors:
2021-08-21 15:04:59,783 INFO [1] oracle.glcm.opatch.common.impl.SingletonPatch – /stage/PATCHES/PSUJUL2021/32900083/32895426/32904851/etc/config/checksum.xml does not exist
2021-08-21 15:04:59,783 INFO [1] oracle.glcm.opatch.common.impl.SingletonPatch – /stage/PATCHES/PSUJUL2021/32900083/32895426/32904851/etc/config/automation.xml does not exist
2021-08-21 15:04:59,783 INFO [1] oracle.glcm.opatch.common.impl.SingletonPatch – Patch Deploy artifact does not exist
2021-08-21 15:04:59,783 INFO [1] oracle.glcm.opatch.common.impl.SingletonPatch – /stage/PATCHES/PSUJUL2021/32900083/32895426/32904851/etc/config/maintenance_alias.xml does not exist
2021-08-21 15:05:27,167 INFO [1] oracle.opatchauto.core.binary.OACLogger –
Applying /stage/PATCHES/PSUJUL2021/32900083/32895426/32904851 …
2021-08-21 15:05:32,121 FINE [1] oracle.opatch.util.perfmonitor.MethodTrackerObj – Error while ending the tracker. Message – null
==Following patches FAILED in apply:
Patch: /stage/PATCHES/PSUJUL2021/32900083/32895426/32904851
Log: /u01/app/oracle/PROD/db/tech_st/19c/cfgtoollogs/opatchauto/core/opatch/opatch2021-08-21_15-04-22PM_1.log
Reason: Failed during Patching: oracle.opatch.opatchsdk.OPatchException: Re-link fails on target “client_sharedlib”.
Re-link fails on target “client_sharedlib”.
Re-link fails on target “ldapsearch”.
Issue & resoluton:
After digging through the log (/u01/app/oracle/PROD/db/tech_st/19c/cfgtoollogs/opatchauto/core/opatch/opatch2021-08-21_15-04-22PM_1.log), we found that re-linking was failing with below message –
Failed during Patching: oracle.opatch.opatchsdk.OPatchException: Re-link fails on target “client_sharedlib”.
Re-link fails on target “client_sharedlib”.
Re-link fails on target “ldapsearch”.
On digging further, we found out that the file $ORACLE_HOME/network/admin/shrept.lst was missing on both EBS RAC nodes causing the relinking to fail and subsequently the entire opatchauto failed.
Subsequently, we followed below steps to resolve the issue:
Step 1. Recreated the file $ORACLE_HOME/network/admin/shrept.lst manually on both DB nodes
Step 2. Copy the folder $ORACLE_HOME/jdk from lower env to PROD(as patch session was removing the files from $ORACLE_HOME/jdk/bin everytime patch failed)
Step 3. Manually ran ‘relink all’ command.
Step 4. As root, run – opatchauto resume