失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > oracle .bash_profile在哪 oracle 11g 测试用户的 .bash_profile 环境变量 路径设置

oracle .bash_profile在哪 oracle 11g 测试用户的 .bash_profile 环境变量 路径设置

时间:2019-09-13 04:37:44

相关推荐

oracle .bash_profile在哪 oracle 11g 测试用户的 .bash_profile 环境变量 路径设置

1、oracle 用户登录后,直接输入如下命令

[oracle@localhost ~]$ vi .bash_profile

2、添加从 #huzia这行起开始添加。

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

# huzia .08.28

#User specific enviroment and startup programs

TMP=/tmp; export TMP

TMPDIR=$TMP; export TMPDIR

umask 022

#ORACLE_HOSTNAME=dbs1; export ORACLE_HOSTNAME

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME

ORACLE_SID=orcl; export ORACLE_SID

ORA_CRS_HOME=$ORACLE_BASE/crs;export ORA_CRS_HOME

PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/usr/sbin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

ORACLE_UNQNAME=$ORACLE_SID; export ORACLE_UNQNAME

~

~

~

~

如果觉得《oracle .bash_profile在哪 oracle 11g 测试用户的 .bash_profile 环境变量 路径设置》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。