# ORACLE .profile # # Set ORACLE_BASE # ORACLE_BASE=/u01/app/oracle export ORACLE_BASE # # NLS_LANG # # NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 # export NLS_LANG # # Set PATH # #HP: PATH=$HOME/bin:/bin:/usr/bin:/usr/ucb:/usr/local/bin #SUN: PATH=$HOME/bin:/bin:/opt/bin:/usr/ccs/bin:/usr/dt/bin:/usr/sbin:/usr/openwin/bin:/opt/SUNWspro/bin:/opt/perl/bin:/usr/ucb:/usr/local/bin #LINUX: PATH=/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/sbin:/usr/X11R6/bin PATH=$PATH:.:$ORACLE_BASE/local/script export PATH # # UNIX Environment # case $TERM in xterm*) if [ -t 0 ]; then stty erase "^h" kill "^U" intr "^C" eof "^D" susp "^Z" hupcl ixon ixoff tostop tabs fi ;; *) TERM=vt220;export TERM if [ -t 0 ]; then stty erase "^?" kill "^U" intr "^C" eof "^D" susp "^Z" hupcl ixon ixoff tostop tabs stty rows 24 fi ;; esac # if [ -t 0 ]; then stty echoe fi # # New files get 640 permissions umask 022 # set -o allexport # exports all subsequent variables # EDITOR=vi HISTSIZE=100 FCEDIT=/usr/bin/vi #VISUAL=vi set -o vi # # Old way #PS1_PROMPT=${PWD}'$ ' # ####### Set Prompt for bash ##export PS1="\[\033]0;\h as \u: \w\007\] ##`tput bold`\!:$LOGNAME@`hostname`:\$PWD [\$ORACLE_SID] ##$ `tput sgr0`" ################## # ####### Set Prompt for bash ## export PS1="\[\033]0;\u@\h: \w\007\] ## `tput bold`\!:$LOGNAME@`hostname`:\$PWD [\$ORACLE_SID] ## $ `tput sgr0`" ################## # ####### Set Prompt for ksh ##PS1_PROMPT="`tput bold`:$LOGNAME@`hostname`:\${PWD} [\$ORACLE_SID] ##$ `tput sgr0`" # ####### Set Prompt for ksh PS1_PROMPT="`tput bold`\!:$LOGNAME@`hostname`:\${PWD} [\$ORACLE_SID] $ `tput sgr0`" ################## export PS1_PROMPT PS1=$PS1_PROMPT # alias script='cd ~/script' alias ps=/bin/ps alias cd=_cd function _cd { \cd "$@" # Prevents recursive call. PS1=${PS1_PROMPT} # Reset prompt to show current directory. } # # Allows X11 forwarding through an su # Run this function, then su, then set the DISPLAY and XAUTHORITY # function xroot { xauth extract ${1:-${TMPDIR:-/tmp}/.Xauthority} :${DISPLAY#*:} && \ echo export DISPLAY=:${DISPLAY#*:} && \ echo export XAUTHORITY=${1:-${TMPDIR:-/tmp}/.Xauthority} chmod 644 ${1:-${TMPDIR:-/tmp}/.Xauthority} } # # OSM setup # #OSM_BASE=/oracle/local/osm #PATH=$PATH:$OSM_BASE/historical:$OSM_BASE/interactive #ORACLE_PATH=$OSM_BASE/historical:$OSM_BASE/interactive:$ORACLE_PATH #export OSM_BASE PATH ORACLE_PATH # # Invoke orasetup menu function # . orasetup menu