My Oracle Support Banner

opatch failed with different errors as fapolicy is enabled. (Doc ID 3035485.1)

Last updated on JULY 17, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 19.23.0.0.0 and later
Information in this document applies to any platform.

Symptoms

Applying patch with OPatch failed with below errors .

Symptom 1 :

opatch_<timestamp>.log

Running prereq checkConflictAgainstOHWithDetail
[Jun 20, 2023 1:26:01 PM] [INFO] CUP_LOG: Found pi CUP 35042068 is a superset of poh CUP: 32904851
[Jun 20, 2023 1:26:14 PM] [INFO] Following patches can be applied: 35042068
|
at oracle.opatch.OPatch.main(OPatch.java:930)
Caused by: java.lang.RuntimeException: ApplySession failed in system modification phase... '/usr/bin/ar: <ORACLE_HOME>/lib/libagent19.a: Operation not permitted
'... 20 more
Caused by: java.lang.Error: ApplySession failed in system modification phase... '/usr/bin/ar: <ORACLE_HOME>/lib/libagent19.a: Operation not permitted
'... 20 more
|
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 "$ORACLE_HOME/.patch_storage/NApply/2023-06-20_13-25-30PM"

Symptom 2 :

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Oracle Interim Patch Installer version 12.2.0.1.42
|
|
Invoking prereq "checkconflictagainstohwithdetail"

Prereq "checkConflictAgainstOHWithDetail" is not executed.

The details are:
Unable to create Patch Object.
Exception occured : java.lang.RuntimeException: /u01/oracle/backup/patches/36233263/etc/config/actions.xml with java.lang.RuntimeException: java.lang.RuntimeException: Unzip failed

OPatch failed with error code 2

Symptom 3:

opatch_<timestamp>.log

Following active files/executables/libs are used by ORACLE_HOME :<ORACLE_HOME>

<ORACLE_HOME>/bin/tnslsnr
<ORACLE_HOME>/lib/libclntsh.so.19.1
<ORACLE_HOME>/lib/libasmclntsh19.so
[Jul 15, 2024 7:56:59 AM] [INFO] Delete the stale entries from home
[Jul 15, 2024 7:56:59 AM] [INFO] OOP: temporary stage directory :<ORACLE_HOME>/.patch_storage
[Jul 15, 2024 7:56:59 AM] [INFO] OOP: temporary folder <ORACLE_HOME>/.patch_storage/oracle-home-1721044619322253 created successfully
[Jul 15, 2024 7:57:01 AM] [INFO] Failed to copy <ORACLE_HOME>/OPatch/jre/lib/amd64/libavplugin-ffmpeg-60.so to destination <ORACLE_HOME>/.patch_storage/oracle-home-1721044619322253/OPatch/jre/lib/amd64/libavplugin-ffmpeg-60.so
Reason=java.nio.file.FileSystemException: <ORACLE_HOME>/OPatch/jre/lib/amd64/libavplugin-ffmpeg-60.so: Operation not permitted
[Jul 15, 2024 7:57:04 AM] [INFO] Failed to copy <ORACLE_HOME>/OPatch/auto/private/jackson-core-2.16.1.jar to destination <ORACLE_HOME>/.patch_storage/oracle-home-1721044619322253/OPatch/auto/private/jackson-core-2.16.1.jar
Reason=java.nio.file.FileSystemException: <ORACLE_HOME>/OPatch/auto/private/jackson-core-2.16.1.jar: Operation not permitted
[Jul 15, 2024 7:57:04 AM] [INFO] Failed to copy <ORACLE_HOME>/OPatch/auto

 Symptom 4:

-bash: /u01/app/oracle/product/19.0.0/db_1/bin/dbhome: Operation not permitted

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
 Symptom 1 :
 Symptom 2 :
 Symptom 3:
  Symptom 4:
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.