Oracle relink all command failed with ld: 0706-006 Cannot find or open library file: -l java

Error Description

Oracle binaries copied / cloned from different server with different ORACLE_HOME path. Then relink all command fails with following error.

ld: 0706-006 Cannot find or open library file: -l java
     ld:open(): A file or directory in the path name does not exist.
  ld: 0706-006 Cannot find or open library file: -l jvm
     ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 255.
  Stop.
advertisements
 
Solution Description 

a. Find out the file env_emagent.mk under $ORACLE_HOME/sysman/lib directory.

$cd $ORACLE_HOME/sysman/lib
[$]
$ls -tlr *mk
-rwxr-xr-x    1 oracle   dba            5388 May  2 2016  ins_emagent.mk
-rw-r--r--    1 oracle   dba          118424 Sep  5 08:17 env_emagent.mk

b. update the JRE_LIB_DIR path with proper ORACLE_HOME path in the target or cloned server.

JRE_LIB_DIR=/oracle/TH1/11204/jdk/jre/bin

c. Reinitiate the relink all command. now the relink will work proper.

No comments:

Post a Comment