只找到一个vision的.profile,oracle的找不到vision的.profile内容如下 --------------------------------------------------------------------------------- if [ -f /etc/ksh.profile ];then . /etc/ksh.profile fiexport HOST PORT PATH HOST=`uname -n` #OS=`$ROOT/com/query_arch` PATH="~/bin:$PATH" if [ "$MANPATH" != "" ]; then MANPATH="/usr/man:" fi MANPATH="${MANPATH}:/usr/openwin/share/man:"if [ ! "$DT" ]; then PORT=`tty` unset suntools if [ "$PORT" = /dev/console -o `echo $PORT | sed 's/hft.*/hft/'` = /dev/hft ]; then # # The following lines can be uncommented if you do not want # Xwindows started automatically at login time on Sun's # #if [ -f /usr/bin/suntools ]; then # echo -n 'Which window manager (x, suntools, none)? ' #else # echo -n 'Which window manager (x, none)? ' #fi #read winman winman=x # remove this line if above is uncommented export winman case "$winman" in x*) case "$OS" in AIX) file /usr/bin/X11/xinit | grep executable >/dev/null 2>&1 if [ $? = 0 ]; then open xinit -- -bs # X11R5 version of xinit else open xinit -bs # X11R4 version of xinit fi ;; Sun4 | Sol) exec openwin ;; OSF1 | mips) echo "unsupported: configure xdm to run on /dev/console" ;; HPUX) echo "don't know how yet -- its either xinit or not needed" ;; *) echo "unknown OS: $OS, Xwindows not invoked" ;; esac ;; s*) suntools=1 ;; *) echo 'No window manager invoked' ;; esac fi fi################################################## # Local customizations go here (and only here) # ##################################################export TERM if [ "$TERM" = "" -o "$TERM" = network -o "$TERM" = xterm -o "$TERM" = xterms ]; then TERM=vt100 fi############################### # End local customizations. # ###############################if [ -f ./.kshrc ];then . ./.kshrc fiif [ ! "$DT" ]; then # # Workaround: # AIX 3.2's and Solaris 5.3's version of xterm has a problem leaving # the tty in a usable state, setting the tty to sane seems to fix it. # if [ "$OS" = AIX -o "$OS" = Sol ]; then stty sane fi # # Configure tty driver to pass all 8 bits of characters # received from keyboard. # stty cs8 -istrip fi if [ ! "$DT" ]; then # # If XUSERFILESEARCHPATH isn't set as would be the case of rlogin's Then # set it. # if [ "$XUSERFILESEARCHPATH" != "" ]; then export XUSERFILESEARCHPATH XUSERFILESEARCHPATH=$ROOT/gui/%L/app-defaults/%N:$ROOT/gui/app-defaults/%N fi echo "Hello $USER... you are on $HOST via $PORT (term=$TERM)" if [ "$suntools" != "" ]; then exec suntools fi fi. /opt/vision/vis6100/env/ksh.vision
---------------------------------------------------------------------------------
if [ -f /etc/ksh.profile ];then
. /etc/ksh.profile
fiexport HOST PORT PATH
HOST=`uname -n`
#OS=`$ROOT/com/query_arch`
PATH="~/bin:$PATH"
if [ "$MANPATH" != "" ]; then
MANPATH="/usr/man:"
fi
MANPATH="${MANPATH}:/usr/openwin/share/man:"if [ ! "$DT" ]; then
PORT=`tty`
unset suntools
if [ "$PORT" = /dev/console -o `echo $PORT | sed 's/hft.*/hft/'` = /dev/hft ]; then
#
# The following lines can be uncommented if you do not want
# Xwindows started automatically at login time on Sun's
#
#if [ -f /usr/bin/suntools ]; then
# echo -n 'Which window manager (x, suntools, none)? '
#else
# echo -n 'Which window manager (x, none)? '
#fi
#read winman
winman=x # remove this line if above is uncommented
export winman
case "$winman" in
x*)
case "$OS" in
AIX)
file /usr/bin/X11/xinit | grep executable >/dev/null 2>&1
if [ $? = 0 ]; then
open xinit -- -bs # X11R5 version of xinit
else
open xinit -bs # X11R4 version of xinit
fi
;;
Sun4 | Sol)
exec openwin
;;
OSF1 | mips)
echo "unsupported: configure xdm to run on /dev/console"
;;
HPUX)
echo "don't know how yet -- its either xinit or not needed"
;;
*)
echo "unknown OS: $OS, Xwindows not invoked"
;;
esac
;;
s*)
suntools=1
;;
*)
echo 'No window manager invoked'
;;
esac
fi
fi##################################################
# Local customizations go here (and only here) #
##################################################export TERM
if [ "$TERM" = "" -o "$TERM" = network -o "$TERM" = xterm -o "$TERM" = xterms ]; then
TERM=vt100
fi###############################
# End local customizations. #
###############################if [ -f ./.kshrc ];then
. ./.kshrc
fiif [ ! "$DT" ]; then
#
# Workaround:
# AIX 3.2's and Solaris 5.3's version of xterm has a problem leaving
# the tty in a usable state, setting the tty to sane seems to fix it.
#
if [ "$OS" = AIX -o "$OS" = Sol ]; then
stty sane
fi #
# Configure tty driver to pass all 8 bits of characters
# received from keyboard.
#
stty cs8 -istrip
fi
if [ ! "$DT" ]; then
#
# If XUSERFILESEARCHPATH isn't set as would be the case of rlogin's Then
# set it.
#
if [ "$XUSERFILESEARCHPATH" != "" ]; then
export XUSERFILESEARCHPATH
XUSERFILESEARCHPATH=$ROOT/gui/%L/app-defaults/%N:$ROOT/gui/app-defaults/%N
fi
echo "Hello $USER... you are on $HOST via $PORT (term=$TERM)" if [ "$suntools" != "" ]; then
exec suntools
fi
fi. /opt/vision/vis6100/env/ksh.vision
阿
alter user sys identified by **
就可以了!