Linux profile.d environment variables don't work with cx_oracle in Python
问题 This is a bit of a continuation from my previous question: cx_Oracle does not recognize location of Oracle software installation for installation on Linux. After I was able to get cx_oracle installed properly, I wanted to set up my environment so the environment variables don't have to be exported every time. To do this, I wrote a shellscript that included these two export statements: export ORACLE_HOME=/home/user1/instantclient_12_1 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME And