Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: [Q] about hiding command line password in UNIX
Sanjay T. Mathew wrote:
. . . > ---------------------------------------------------------------> #
> # TITLE : SQL*Plus Invoking Utility
> #
> # MODULE : sqp
> #
> # AUTHOR : Sanjay Mathew
. . .
/usr/ucb/ps -auxwwe
(at least on Sun Solaris). I believe any BSD version of ps will do this. we have a slightly different version of your script, which reads the username and password from a file instead. This way, the file can be secured from other users looking at it.
#! /bin/sh
sqlplus -s << EOF
`cat /file/containing/connect/string`
echo
cur_env=$1
script_name=$2
arg1=$3 arg2=$4 arg3=$5
Bill Eggers beggers_at_cns.eds.comReceived on Thu Mar 26 1998 - 00:00:00 CST