当前位置: 代码迷 >> Oracle管理 >> .bash_profile 亟需每次source
  详细解决方案

.bash_profile 亟需每次source

热度:257   发布时间:2016-04-24 04:18:08.0
.bash_profile 需要每次source
# .bash_profile

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

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
# oracle11g install para
export ORACLE_BASE=/home/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

------解决方案--------------------
修改之后需要source,如果没修改,直接登录是不需要source的
------解决方案--------------------
用户环境变量,你除非有什么修改,想要生效出来source还可以退出重新进ORACLE用户,一样可以生效,方法很多!!
------解决方案--------------------
你只有修改profile文件的时候需要source吧
  相关解决方案