Friday, October 18, 2024

Patching fails during relink , with error code 102 :: Fatal error: Command failed for target `javavm_refresh'

Patching fails during relink , with error code 102 :: Fatal error: Command failed for target `javavm_refresh' 


REFER DOC ID (Doc ID 2002334.1) for the details


ERRORS like

Caused by: java.lang.Error: Re-link fails on target "javavm_refresh".

Patching fails during relink , with error code 102 :: Fatal error: Command failed for target `javavm_refresh' 

Stack Description: java.lang.RuntimeException: Re-link fails on target "javavm_refresh".







Symptoms
Patch Apply fails with below error:

Symptom 1:

Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk javavm_refresh ioracle ORACLE_HOME=/u01/app/oracle/product/db/12.1.0.2"....'Can't locate File/Copy.pm in @INC (@INC contains: ../lib/site_perl/5.14.1/sun4-solaris-thread-multi-64 ../lib/site_perl/5.14.1 ../lib/5.14.1/sun4-solaris-thread-multi-64 ../lib/5.14.1 .) at /u01/app/oracle/product/db/12.1.0.2/javavm/install/update_javavm_binaries.pl line 62.
BEGIN failed--compilation aborted at /u01/app/oracle/product/db/12.1.0.2/javavm/install/update_javavm_binaries.pl line 62.
make: Fatal error: Command failed for target `javavm_refresh'

The following make actions have failed :

Re-link fails on target "javavm_refresh ioracle".



Symptom 2:

 Make failed to invoke "/usr/bin/make -f ins_rdbms.mk javavm_refresh patchset_opt_all ioracle
ORACLE_HOME=/u01/app/oracle/pro
duct/12.1.0/db_1"....'make: perl: Command not found
make: *** [javavm_refresh] Error 127
 

Cause
PERL5LIB environment variable is not set
 

Solution
Oracle provided Perl needs to be referenced at the beginning of the PATH and PERL5LIB for Patch apply or rollback.

Set PATH and PERL5LIB environment variable and apply patch again.

export PATH=$ORACLE_HOME/perl/bin:$PATH
export PERL5LIB=$ORACLE_HOME/perl/lib






No comments:

Post a Comment