Applying OJVM July 2021 patch(32876380) on GI HOME fails with “ArchiveAction: Destination File “$GI_HOME/lib/lib*****.a” does not exists or is not writeable” & “ApplySession::apply failed: mv: 0653-401 Cannot rename $GI_HOME/lib/lib*****.so”

Dear Readers,

In this post, I am going to write about the issue I faced while patching GI HOME with July 2021 OJVM patch(32876380) post applying July 2021 GI RU patch(32904851).

I had a requirement to apply patch 32900083 (GI RU & OJVM Combo July 2021) on GI HOME, which includes following 2 patches:

  • 32904851 ==> Database Release Update :
  • 32876380 ==> OJVM RELEASE UPDATE:

Application of patch 32904851 was done using opatchauto utility & completed successfully without any issues. Post this when I tried applying patch 32876380 on same GI HOME received below error:

Error was as given below:

ArchiveAction: Destination File “/u01/app/” does not exists or is not writeable
‘oracle.rdbms,’: Cannot update file ‘/u01/app/’ with ‘/joxwtp.o’

So from error it looks like Oracle user lacks write permission on given library file, which is causing issue.

So first solution I had in my mind to change permissions on given library file, but thought of checking supporting MOS notes for the confirmation.

opatch apply fails with Copy Action: Destination File “$ORACLE_HOME/..” does not exists or is not writeable. (Doc ID 1498065.1)

Above note had similar action plan, so I went ahead with changing permissions on specific library file.

host1:/u01/patch/32900083/32876380 $ ls -lrt /u01/app/
-rw-r–r– 1 root oinstall 457374018 20 Aug 15:54 /u01/app/

host1:/u01/patch/32900083/32876380 $ chown oracle:oinstall /u01/app/

host1:/u01/patch/32900083/32876380 $ ls -lrt /u01/app/
-rw-r–r– 1 oracle oinstall 457374018 20 Aug 15:54 /u01/app/

After this I attempted re-application of patch. This time it went a steps ahead than prior attempt, now it failed with different error:

UtilSession failed: ApplySession failed in system modification phase… ‘ApplySession::apply failed: mv: 0653-401 Cannot rename /u01/app/ to /u01/app/
The file access permissions do not allow the specified action.
make: 1254-004 The error code from the last command is 1.

This confirms, the issue is not with specific library but multiple ones. Mostly using root ownership for running opatchauto caused this. We need to fix all permissions on GI_HOME binaries.

To fix permissions on GI_HOME binaries, its always recommended to use

I followed below action plan for the same:

$GI_HOME/crs/install/ -prepatch
$GI_HOME/crs/install// -init
$GI_HOME/crs/install/ -postpatch

After following this action plan, I was able to apply the patch successfully.

Hope u will find this post very useful.



3 replies

  1. I抦 impressed, I need to say. Actually not often do I encounter a weblog that抯 both educative and entertaining, and let me inform you, you could have hit the nail on the head. Your thought is excellent; the issue is something that not enough persons are talking intelligently about. I am very glad that I stumbled across this in my search for something regarding this.

    • Hello Dipti,

      Yes its not necessary as there are no java components being used inside GI home, but applying OJVM patch does update some jdk files /class files inside GI HOME… I feel there must be a reason Oracle releasing combo patches for GI … From 21c ORACLE is incorporating OJVM component inside DBRU.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s