Re: Oracle 19c patching issue. Anyone else?

From: Mladen Gogala <gogala.mladen_at_gmail.com>
Date: Fri, 30 Jul 2021 14:35:16 -0400
Message-ID: <906f1461-9645-4695-7eb1-bcf65043834b_at_gmail.com>


Hi Chris!

The utility is trying to update JDK in your $GRID_HOME directory. Unfortunately, it's owned by root and not by the user "grind" (my personal equivalent for "grid"). The solution is to change mode of the $GRID_HOME to 775. That will make it writable to the grid owner and you will be able to patch it.

Regards

On 7/30/21 11:30 AM, cgrabowy_at_gmail.com wrote:
> Howdy.
>
> I am attempting to apply the July patchset to Oracle and it is failing with an interesting error. Just curious if anyone else has encountered this?
>
> ---------------------------------------------------------------------------------------------------------------------------------
> Start applying binary patch on home /u01/app/19.3.0/grid
> Failed while applying binary patches on home /u01/app/19.3.0/grid
>
> Execution of [OPatchAutoBinaryAction] patch action failed, check log for more details. Failures:
> Patch Target : xxxd1ldbaor001->/u01/app/19.3.0/grid Type[siha]
> Details: [
> ---------------------------Patching Failed---------------------------------
> Command execution failed during patching in home: /u01/app/19.3.0/grid, host: xxxd1ldbaor001.
> Command failed: /u01/app/19.3.0/grid/OPatch/opatchauto apply /u01/patches/32895426 -oh /u01/app/19.3.0/grid -target_type has -binary -invPtrLoc /u01/app/19.3.0/grid/oraInstpersistresult /u01/app/19.3.0/grid/opatchautocfg/db/sessioninfo/sessionresult_xxxd1ldbaor001_siha_4.ser -analyzedresult /u01/app/19.3.0/grid/opatchautocfg/db/sessioninfo/sess
> Command failure output:
> ==Following patches FAILED in apply:
>
> Patch: /u01/patches/32895426/32904851
> Log: /u01/app/19.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2021-07-30_10-36-04AM_1.log
> Reason: Failed during Patching: oracle.opatch.opatchsdk.OPatchException: ApplySession failed in system modification phase... 'ApplySession::apply failed: /u01/app/19.3.0/gridid/jdk/bin/java: Permission denied
> '
>
> After fixing the cause of failure Run opatchauto resume
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Checking the java binary it lacks execute permissions in the database and grid homes and the file has a new timestamp so the error message make sense.
>
> Has anyone else applied the July 19c patch set to a single instance server, Oracle Database and Oracle Restart, using the opatchauto command?
>
> TIA
>
> Chris
>
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Jul 30 2021 - 20:35:16 CEST

Original text of this message