문제

In my CentOS machine I have set my ORACLE_HOME environment variable in the ~/.bash_profile file.

My .bash_profile file

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

#PATH=$PATH:$HOME/bin
ORACLE_HOME=/usr/lib/oracle/11.2/client64
PATH=$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib
TNS_ADMIN=$ORACLE_HOME/network/admin
export ORACLE_HOME
export LD_LIBRARY_PATH
export TNS_ADMIN
export PATH

phpInfo() output: enter image description here

How do I set ORACLE_HOME & TNS_ADMIN in the Environment section? Am I doing anything wrong here?

도움이 되었습니까?

해결책

Adding export ORACLE_HOME=/usr/lib/oracle/11.2/client64 to /etc/sysconfig/httpd solved the issue.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top