Friday, November 14, 2014

Relink failed with JRE error

10.2.0.x

  • Backup and change $ORACLE_HOME/sysman/lib/env_sysman.mk
% cp $ORACLE_HOME/sysman/lib/env_sysman.mk $ORACLE_HOME/sysman/lib/env_sysman.mk.save
% vi $ORACLE_HOME/sysman/lib/env_sysman.mk
Change: JRE_LIB_DIR=%JRE_HOME%/bin
To: JRE_LIB_DIR=$(ORACLE_HOME)/jdk/jre/bin
  • Rerun the command which failed.  As documented above, either of the following commands may fail due to this issue:
# relink all
# make -f ins_sysman.mk relink_sharedobj SHAREDOBJ=libnmemso LIBDIR=lib32

NOTE: This workaround can be implemented on any platform. The key is to change %JRE_HOME% to $(ORACLE_HOME) and leave the remaining portion of the record unchanged.

11.1.0.x and 11.2.0.x

  • Backup and change $ORACLE_HOME/sysman/lib/env_emagent.mk
% cp $ORACLE_HOME/sysman/lib/env_emagent.mk $ORACLE_HOME/sysman/lib/env_emagent.mk.save
% vi $ORACLE_HOME/sysman/lib/env_emagent.mk
Change: JRE_LIB_DIR=%JRE_HOME%/bin
To: JRE_LIB_DIR=$(ORACLE_HOME)/jdk/jre/bin
  • Rerun the command which failed.  As documented above, either of the following commands may fail due to this issue:
% relink make -f ins_emagent.mk relink_sharedobj SHAREDOBJ=libnmemso
or
% make -f ins_emagent.mk install
 (will relink all sysman targets)

NOTE: This issue has been observed while relinking the binaries in a cloned 11.2.0.1 home - see Note:1386496.1

No comments:

Post a Comment