[Oct 25, 2018 10:25:34 AM] [INFO] [OPSR-TIME] Finished modifying the system for patch 19509982
[Oct 25, 2018 10:25:34 AM] [INFO] ApplySession adding interim patch '19509982' to inventory
[Oct 25, 2018 10:25:34 AM] [INFO] [OPSR-TIME] Saving patch 19509982 to inventory
[Oct 25, 2018 10:25:34 AM] [WARNING]OUI-67124:ApplySession failed in system modification phase... 'ApplySession::apply failed (no detail available).'
[Oct 25, 2018 10:25:34 AM] [INFO] Restoring "/u01/app/oracle/product/12.1.0/db_1" to the state prior to running NApply...
The 'ApplySession::apply failed' message is normally followed by an error message that explains the failure. In this case however, it is followed by 'no detail available' so further troubleshooting is necessary. To troubleshoot, enable OPatch debug and apply the patch again:
Run the following commands as the oracle user.
Navigate to /home/oracle/CPU/19509982:
Stop the RSA Identity Governance & Lifecycle server:
Stop the Oracle Listener service:
Export the OPATCH_DEBUG value:
Apply the patch:
In this case, the problem was due to incorrect file permissions. The debug output showed that as part of the patch process, the file /home/oracle/CPU/19509982/etc/config/inventory.xml was copied to /u01/app/oracle/product/12.1.0/db_1/inventory/oneoffs/19509982/etc/config/inventory.xml and it was failing because the subdirectory /u01/app/oracle/product/12.1.0/db_1/inventory/oneoffs/19509982/etc/config was owned by root instead of by the oracle user.
In this case, the solution is to modify the ownership of /u01/app/oracle/product/12.1.0/db_1/inventory/oneoffs/19509982/etc/config from root to oracle. Follow one of the options below:
1. Change owner and group of one directory
As root, change ownership as follows:
# cd /u01/app/oracle/product/12.1.0/db_1/inventory/oneoffs/19509982/etc
# chown oracle:oinstall config
2. Change owner and group recursively
Since all the subdirectories should be owned by the oracle user, you could change the ownership recursively from the top down to ensure the ownership is correct for all subdirectories: