cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the LD_LIBRARY_PATH variable for a new path.

former_member185327
Active Participant
0 Kudos

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
========================

chittibabu9
Discoverer
0 Kudos

Hi Anurag,

I'm too facing the same issue. I have set the LD_LIBRARY_PATH in .dbenv.csh . Where and how to set PATH values. Due to this issue, unable to setup the DBconnection test fails from Solution manager (Sybase) to Managed system (HANA). Please provide your inputs.

Regards,

Satish

Accepted Solutions (1)

Accepted Solutions (1)

dvankempen
Product and Topic Expert
Product and Topic Expert

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

former_member185327
Active Participant

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

Answers (1)

Answers (1)

BJarkowski
Active Contributor

There is a SAP Note that describe required steps:

1827566 - How to set environment variables for SAP system?