Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: sqlplus execute cmd

Re: sqlplus execute cmd

From: Galen Boyer <galenboyer_at_hotpop.com>
Date: 27 Nov 2002 14:11:10 -0600
Message-ID: <usmxmai76.fsf@standardandpoors.com>


On Wed, 27 Nov 2002, martin.doherty_at_elcaro.moc wrote:
> Watch out with this sqlplus $username/$password stuff ... that
> command line puts your username and password in plain sight on
> the list of Unix process (ps -ef | grep sqlplus) for any Unix
> user to see... your script should be able to embed the password
> at least in the Here document to provide a tad more security.

Yes, and along those lines, I to set a shell variable as the sqlplus login parameters, something like,

#!/bin/ksh

##
# This file has the login variables set. . .authfile

LOGIN="sqlplus $username/$password@$instance"

$LOGIN << EOF
SQL stuff here
;
EOF

-- 
Galen Boyer
Received on Wed Nov 27 2002 - 14:11:10 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US