Skip to Content

How to set the LD_LIBRARY_PATH variable for a new path.

Hello All,

I have a a requirement to install the hdbclient in our newly migrated Solution Manager System. I have managed to install the hdbclient by referring one document.

However I am not able to execute the below instructions properly. Hence need some guidance on this.

==================================================================
Adjust the OS environment for the <sid>adm user by adding the following into the PATH and LIBPATH / LD_LIBRARY_PATH variables for the <sid>adm user:

/usr/sap/<SID>/hdbclient
==================================================================

So what I understand I have to add this path against the environment variable
LD_LIBRARY_PATH

But my question is what approach should I take ?
How I make this values permanent ?

Currently the environment variable looks like below.

LD_LIBRARY_PATH=/usr/sap/SID/SYS/exe/run:/usr/sap/SID/SYS/exe/uc/linuxx86_64:/oracle/client/12x/instantclient

Any help would be appreciated. I need to complete this by EOD around 4 PM UK Time

========================
Thanks and Regards
Anurag
========================

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 26 at 09:39 AM

    For those reading this question after 4 pm, January 24

    When installing SAP HANA components on the SAP HANA server, always use the SAP HANA database lifecycle management tool (hdblcm). This tool will automatically install the client "inside" the server environment (that is, /hana/shared/<HANA-SID/hdbclient).

    When installing the SAP HANA client on any other system, you can install it where you want using the HANA stand-alone installation tool hdbinst (command-line) or hdbsetup (graphical): e.g.: /opt/hanaclient, /usr/sap/hana, etc. - check with your UNIX/Linux administrator about any company guidelines, this typically differs per distribution and organization.

    The environment variables for the OS user that will be accessing the client (LIBPATH on AIX, LD_LIBRARY_PATH on Linux and other UNIX flavors) are typically defined in the login shell of that usr ~/.bashrc or system-wide in /etc/profile, /etc/bash.bashrc, or /etc/environment. Again, depends and typically differs per distribution and organization.

    For more information about installing the SAP HANA client, see

    Regards,

    Denys / SAP HANA Academy

    Subscribe to our YouTube Channel
    Join us on LinkedIn
    Follow us on Twitter
    Github code samples

    Facebook

    Add comment
    10|10000 characters needed characters exceeded

    • Dear Denys,

      I have added the required values inside .login file inside /support/home/sid path.
      After a restart, the path is now reflecting.

      Many thanks for your valuable inputs here

      Thanks and Regards
      Anurag Das

  • Jan 24 at 08:44 AM

    There is a SAP Note that describe required steps:

    1827566 - How to set environment variables for SAP system?

    Add comment
    10|10000 characters needed characters exceeded