installing Oracle Instantclient on Mac OS/X without setting environment variables?

后端 未结 3 1460
不思量自难忘°
不思量自难忘° 2020-12-05 03:37

Oracle\'s instructions specify setting DYLD_LIBRARY_PATH. This makes my application dependent on random users\' configuration and is very troublesome to set up.

How

3条回答
  •  有刺的猬
    2020-12-05 04:19

    If your goal is simply to run sqlplus on your MacBook, this might work for you. Remove the DYLD_LIBRARY_PATH environment variable from ~/.bashrc and replace it with an alias:

    alias sqlplus="DYLD_LIBRARY_PATH=/Applications/instantclient_11_2 sqlplus"

    Blog entry: sqlplus and DYLD_LIBRARY_PATH on Mac OS/X

提交回复
热议问题