hdbsql
on my MacOS. I used hdbsql
on Linux and on Windows in the past, but -- for whatever reason -- never on Mac./Applications/sap/hdbclient/
.$PATH
environment variable. Ok, the installation comes with the helpful, yet little known, bash script called hdbclienv.sh
. Once you execute...source /Applications/sap/hdbclient/hdbclienv.sh
HDB_CLIENT_HOME
and will add it to the $PATH
in your session.$PATH
?bash
right now, I can simply add this to my bash
profile. But as a developer advocate I want to think not only about my preferences, but as well about other preferences that developers in our SAP HANA community might have. As well, I know /etc/profile
is the system-wide profile, but it can be modified or overwritten by another MacOS upgrade./etc/paths.d
where applications or users can add a file containing the list of directories that should be added to the $PATH
system-wide.root
can write to /etc/paths.d
, so I need to do something like...sudo sh -c 'echo "/Applications/sap/hdbclient" >> /etc/paths.d/sap'
which hdbsql
which hdbclienv.sh
source hdbclienv.sh
echo $HDB_CLIENT_HOME
hdbsql
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
37 | |
25 | |
17 | |
13 | |
7 | |
7 | |
7 | |
6 | |
6 | |
6 |