用户还需要修改客户端用户下“.bash_profile”文件的配置信息,将下面的配置信息
添加到.bash_profile 文件中。
export ORACLE_HOME=/home/oracli
export SQLPATH=/home/oracli/network/admin
export TNS_ADMIN=/home/oracli/network/admin
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib:$LD_LIBRARY_PATH
export PATH=$PATH:$ORACLE_HOME:$LD_LIBRARY_PATH
GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
522
示例
$ cd /home/oracli
$ vi .bash_profile
# .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_HOME=/home/oracli
export SQLPATH=/home/oracli/network/admin
export TNS_ADMIN=/home/oracli/network/admin
export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib:$LD_LIBRARY_PATH
export PATH=$PATH:$ORACLE_HOME:$LD_LIBRARY_PATH
~
~
~
".bash_profile" 20L, 488C 已写入
保存退出后,使用source 命令使配置文件生效。
$ source .bash_profile