Thursday, 24 July 2014

Patch error with genclntsh: Failed to link libclntsh.so.11.1

++ Error:

Verifying the update...
Make failed to invoke "/usr/bin/make -f ins_net_client.mk client_sharedlib ORACLE_HOME=/u01/app/11.2.0"....'/u01/app/11.2.0/bin/genclntsh: line 305: /opt/oracle/cell11.2.3.2.1_LINUX.X64_130109/rdbms/lib/clntsh.map: No such file or directory
genclntsh: Failed to link libclntsh.so.11.1
make: *** [client_sharedlib] Error 1
'
Make failed to invoke "/usr/bin/make -f ins_rdbms.mk client_sharedlib ORACLE_HOME=/u01/app/11.2.0"....'/u01/app/11.2.0/bin/genclntsh: line 305: /opt/oracle/cell11.2.3.2.1_LINUX.X64_130109/rdbms/lib/clntsh.map: No such file or directory
genclntsh: Failed to link libclntsh.so.11.1
make: *** [client_sharedlib] Error 1

++ Solution:
Properlly check the env variable.

In my case i see
/opt/oracle/cell11.2.3.2.1_LINUX.X64_130109/rdbms/lib/clntsh.map: No such file or directory
but i am applying patch on GRID home so i unset other cell related env variables.

Example:
unset CDPATH SRCHOME OSSCONF OSS_HOME LOG_HOME J2EE_HOME OSS_BIN T_WORK OSS_SCRIPTS_HOME CELLTRACE

then set proper path
export PATH=/u01/app/11.2.0/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/opt/MegaRAID/MegaCli/:/home/grid/bin:/u01/app/11.2.0/bin:/u01/app/11.2.0/OPatch
Now you restart the patch

No comments: