SAP Knowledge Base Article - Preview

3300905 - Find hard coded Library Path for executables

Symptom

ldd <full path to executable\executable> shows lib dependencies which was not defined in LD_LIBARAY_PATH. 

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Example: 

<sid>adm > ldd /oracle/<SID>/19/bin/sqlplus
        linux-vdso.so.1 (0x00007ffe3a5cf000)
        libsqlplus.so => /oracle/<SID>/19.0.0/lib/libsqlplus.so (0x00007f7b13a25000)
        libclntsh.so.19.1 => /oracle/<SID>/19.0.0/lib/libclntsh.so.19.1 (0x00007f7b0fc28000)
        libclntshcore.so.19.1 => /oracle/<SID>/19.0.0/lib/libclntshcore.so.19.1 (0x00007f7b0f888000)
        libnnz19.so => /oracle/<SID>/19.0.0/lib/libnnz19.so (0x00007f7b0f140000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f7b0ef3c000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f7b0ec04000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7b0e9e5000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f7b0e7cc000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f7b0e5c4000)
        libaio.so.1 => /lib64/libaio.so.1 (0x00007f7b0e3c2000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f7b0e1ab000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f7b0ddf0000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7b13d11000)

<sid>adm >env|grep LD

LD_LIBRARY_PATH=/usr/sap/<SID>/SYS/exe/run:/usr/sap/<SID>/SYS/exe/uc/linuxx86_64:/oracle/client/19/instantclient


Read more...

Environment

  • Application executables on Linux system

Product

SAP ERP all versions ; SAP NetWeaver all versions ; SAP S/4HANA all versions

Keywords

sqlplus, ldd, objdump, libsqlplus.so: open failed: No such file or directory , KBA , BC-OP-LNX , Linux , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.