oracle【.bash_profile文件】

suse11里貌似没有这个文件,因此需要自己建一个,其内容类似于如下所示(按实际情况调整里面的值):


# .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

export ORACLE_BASE=/opt/oracle/app
export GRID_HOME=/opt/oracle/grid_home
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export PATH=$PATH:$GRID_HOME/bin:$ORACLE_HOME/bin:$HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin
export ORACLE_SID=orcl
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export LD_LIBRARY_PATH=/opt/oracle/app/product/11.2.0/dbhome_1/lib:/usr/lib
# export ORACLE_HOME_LISTNER=$ORACLE_HOME    # Oracle安装完成后再反注释此时,再使用命令 lsnrctl start 来启动监听打开Listener,否则在使用DBCA创建库时会报没有打开监听
umask 022

你可能感兴趣的:(oracle)