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

advertisements

_____________________________________________________________________________________________________________________

The Eucharistic Miracles of the World
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.

_____________________________________________________________________________________________________________________

Website Stats

0 comments:

Post a Comment

Labels

Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2)
 

acehints.com Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer