重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 76|回复: 0
打印 上一主题 下一主题

[补丁] OPatch Failed With Error Code 73, libserver19.a is not a valid archive

[复制链接]
跳转到指定楼层
楼主
发表于 4 天前 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:
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

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2025-3-13 01:49 , Processed in 0.079647 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表