现象:
OPatch failed with error code 73
现象a:
Trying to patch ORACLE_HOME with January 2024 CPU, and it failed with the following errors:
File not backed up from kfkcaps.o to <ORACLE_HOME>/.patch_storage/35643107_Oct_3_2023_13_34_29/files/lib/libserver19.a/kfkcaps.o... '/usr/bin/ar: <ORACLE_HOME>/lib/libserver19.a is not a valid archive
[Feb 7, 2024 7:24:07 PM] [INFO] --------------------------------------------------------------------------------
[Feb 7, 2024 7:24:07 PM] [INFO] The following warnings have occurred during OPatch execution:
[Feb 7, 2024 7:24:07 PM] [INFO] 1) OUI-67124:ApplySession failed in system modification phase... '/usr/bin/ar: <ORACLE_HOME>/lib/libserver19.a is not a valid archive
'
[Feb 7, 2024 7:24:07 PM] [INFO] 2) OUI-67124:
NApply restored the home. Please check your ORACLE_HOME to make sure:
- files are restored properly.
- binaries are re-linked correctly.
(use restore.[sh,bat] and make.txt (Unix only) as a reference. They are located under
"<ORACLE_HOME>/.patch_storage/NApply/2024-02-07_19-21-07PM"
[Feb 7, 2024 7:24:07 PM] [INFO] --------------------------------------------------------------------------------
[Feb 7, 2024 7:24:07 PM] [INFO] Finishing UtilSession at Wed Feb 07 19:24:07 EST 2024
[Feb 7, 2024 7:24:07 PM] [INFO] Log file location: <ORACLE_HOME>/cfgtoollogs/opatch/opatch2024-02-07_19-21-07PM_1.log
[Feb 7, 2024 7:24:07 PM] [INFO] Stack Description: java.lang.RuntimeException: ApplySession failed in system modification phase... '/usr/bin/ar: <ORACLE_HOME>/lib/libserver19.a is not a valid archive
'
at oracle.opatch.ArchiveAction.runOneCommand(ArchiveAction.java:645)
|
|
Caused by: java.lang.RuntimeException: ApplySession failed in system modification phase... '/usr/bin/ar: <ORACLE_HOME>/lib/libserver19.a is not a valid archive
'
... 20 more
Caused by: java.lang.Error: ApplySession failed in system modification phase... '/usr/bin/ar: <ORACLE_HOME>/lib/libserver19.a is not a valid archive
'
... 20 more
Caused by: oracle.opatch.BackupFailureException: /usr/bin/ar: <ORACLE_HOME>/lib/libserver19.a is not a valid archive
... 20 more
现象b:
Patching component oracle.precomp.common, 19.0.0.0.0...
Patching component oracle.jdk, 1.8.0.201.0...
Make failed to invoke "/usr/bin/make -f ins_rdbms.mk client_sharedlib
ORACLE_HOME=/opt/oracle/product/19c/dbhome_1
OPATCH_SESSION=apply"....'/opt/oracle/product/19c/dbhome_1/lib/libipps.a: error adding symbols: Malformed archive
原因
现象a:
The issue is because of the missing files from .patch_storage.
The file <ORACLE_HOME>/lib/libserver19.a is corrupted.
The directory 35643107_Oct_3_2023_13_34_29 is possible missing. > File not backed up from kfkcaps.o to <ORACLE_HOME>/.patch_storage/35643107_Oct_3_2023_13_34_29
现象b:
Corrupted libipps.a file
处理方法
现象a:
1. Here the issue is because of the missing files from .patch_storage
File not backed up from kfkcaps.o to <ORACLE_HOME>/.patch_storage/35643107_Oct_3_2023_13_34_29
Check if the directory 35643107_Oct_3_2023_13_34_29 is missing for this case.
Check if like that there were some missing directories...copied all the missing directories from the test env/working node.
2. The file <ORACLE_HOME>/lib/libserver19.a is corrupted.
As a workaround you can attempt is to copy the "<ORACLE_HOME>/lib/libserver19.a " from the backup or a like system, then attempt to apply the patch again.
If that does not work, the solution is to restore the Oracle Home from the backup taken prior to patching, then attempt to apply the patch again.
$ cp <ORACLE_HOME>/lib/libserver19.a <ORACLE_HOME>/lib/libserver19.a_09022022
$ copy the file from the working node
3. Apply the patch.
现象b:
copy from any other similar environment
== OR ==
restore oracle home from valid backups
|