,

Considerations on OJVM Release Update (RU)

When Application requires or uses the OJVM component of the database, it becomes necessary to keep updating your OJVM along with GI and DB RU patching. Along with Mike Dietrich’s article “Do you need to apply OJVM patches to Grid Infrastructure?” (Do you need to apply OJVM patches to Grid Infrastructure?) which explains clearly on the applicability of OJVM RU on Grid Infrastructure, the article KB139124:  Oracle Recommended Patches — “Oracle JavaVM Component Database PSU and Update” (OJVM PSU and OJVM Update) Patches, does not indicate any necessity of such JVM patches applicable on GI  post 12.2.0.1.

Latest RUs’ and MRP’s can be downloaded from article

Primary Note for Database Quarterly Release Updates KB106822

Error during OJVM RU apply

Below was one of the most recent incidents that occurred during OJVM apply on the Database home (19c)

Make failed to invoke “/usr/bin/make -f ins_rdbms.mk javavm_refresh ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome1 OPATCH_SESSION=apply”….’Can’t locate File/Copy.pm in @INC (you may need to install the File::Copy module) (@INC contains: /usr/local/lib64/perl5/5.32 /usr/local/share/perl5/5.32 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /u01/app/oracle/product/19.0.0/dbhome1/javavm/install/update_javavm_binaries.pl line 64.

BEGIN failed–compilation aborted at /u01/app/oracle/product/19.0.0/dbhome1/javavm/install/update_javavm_binaries.pl line 64.

make: *** [ins_rdbms.mk:573: javavm_refresh] Error 2

The following make actions have failed :

Re-link fails on target “javavm_refresh”.

Cause

Cause of the problem found to be the missing of PERL5LIB  (As explained in OPatch apply for OJVM RU fails with “make: perl: Command not found make: *** [ins_rdbms.mk:573: javavm_refresh] Error 127” KB130123)

Solution

Rollback and re-apply

Since I hadn’t had my variables set properly, I had to rollback the failed RU and re-apply, as it had the inventory updated in the partially failed installation.

Summary

Before applying OJVM in your DB home (or before invoking a RU Bundle that has OJVM), set the PERLSLIB as described above in the SOLUTION section, to avoid possible javavm_refresh exceptions


Discover more from Oracle with Loku

Subscribe to get the latest posts sent to your email.

Leave a comment