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

Home -> Community -> Usenet -> c.d.o.server -> Re: help:hide/encrypt an oracle password in a shell script

Re: help:hide/encrypt an oracle password in a shell script

From: Lynne Nyhan <lnyhan_at_bidmc.harvard.edu>
Date: 1997/03/21
Message-ID: <Pine.SUN.3.94.970321091429.5327B-100000@mercury>#1/1

Oracle supplies a hide.c program that you can use to hide the password from a ps -ef|grep. It is unsupported but they supplied it last year via 4mm tape and it worked well. We were running version 7.1 .

Lynne
lnyhan_at_bidmc.harvard.edu


On Thu, 20 Mar 1997, it was written:

> I would appreciate if somebody can help me out
> with the following issue:
>
> I wrote a shell program that invokes Oracle's SQL*PLUS
> (eg. myid/password @sql_script.sql), but the problem
> is that ps -ef| grep sql will display the user and the
> oracle password. How can I hide the password?
>
> myid and password are passed as positional
> parameters, but I am thinking of changing it to interactive mode
> (menu-driven) so myid and password would be entered from a menu as follows:
>
> Oracle id: myid
> Password : ********
>
> the the script should invoke SQL*PLUS:
> myid/******** @sql_script.sql
>
> and ps -ef|grep sql hopefully will not show password,
>
>
> Thank you.
> Santiago Cabezas
> Oracle DBA
> santiago.cabezas_at_cplc.com
> Carolina Power&Light co.
>
>
>
Received on Fri Mar 21 1997 - 00:00:00 CST

Original text of this message

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