ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 11.2.0.3 RAC 全过程--5.Configure user equivalence .bash_pfile

11.2.0.3 RAC 全过程--5.Configure user equivalence .bash_pfile

原创 Linux操作系统 作者:ygzhou518 时间:2012-05-25 19:40:24 0 删除 编辑
grid:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=ygzhou01; export ORACLE_HOSTNAME       --------change in all node
ORACLE_SID=+ASM1; export ORACLE_SID                    --------change in all node
ORACLE_BASE=/u01/app/grid/11.2.0/; export ORACLE_BASE
ORACLE_HOME=/u01/app/grid/product/11.2.0/crs_1/; export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH; export PATH
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
     if [ $SHELL = "/bin/ksh" ]; then
          ulimit -p 16384
          ulimit -n 65536
     else
          ulimit -u 16384 -n 65536
     fi
     umask 022
oracle:
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
# Oracle Settings oracle
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=ygzhou01; export ORACLE_HOSTNAME        --------change in all node
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
ORACLE_SID=ygzhou1; export ORACLE_SID                   --------change in all node
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$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
if [ $USER = "oracle" ] || [ $USER = "grid" ]; then
       if [ $SHELL = "/bin/ksh" ]; then
              ulimit -p 16384
              ulimit -n 65536
        else
              ulimit -u 16384 -n 65536
        fi
        umask 022

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24867586/viewspace-730990/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-02-11

  • 博文量
    167
  • 访问量
    360254