This is what I do
nohup sqlplus /nolog @script > script.log 2>&1
The script1 look like the following:
start local_var -- This has the user_name and password defined in it
connect &&username/&&password
...
local_var.sql
define user_name=app_owner
define password =pass123
Hope it helps.
Cheers
Surjit
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 4:38 AM
>
>
>
>
> hi,
>
> do you know how to hide oracle passwords from ps -ef? we pass in our pw in
> cron, and it shows up when you run ps -ef (to check unix processes). i
> recognize that is this NOT a smart thing to do...
>
> can anyone recommend a better way of supplying oracle passwords when
> scripts are connecting to oracle? do you use config files that store
> pws? just curious what everyone else is doing to plug this security hole.
>
> thanks,
> kris
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Kris Austin
> INET: [EMAIL PROTECTED]
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Surjit Sharma
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).