Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to hide password on command line in AIX
If u are trying to use it from a script the following works well with Solaris,
shows no passwd in ps -ef.
It should work on AIX shells as well, I think.
sqlplus -s <<!
apps/appspasswd_at_abc
select sysdate from dual;
exit;
!
-dave b
rob van laarhoven wrote:
> > How can I hide the pasword for using tools like sqlplus on command line in
> > AIX ?
> >
> > For example,
> > sqlplus apps/apps_pwd @abc
> >
> > I've tried to substitute the password with a env. var like
> > sqlplus apps/${APP_PWD} @abc
> >
> > But this does not work in AIX, it shows the value of the variable instead
of
> > the name of the var when I do a ps -ef
>
> On HPUX I used a program called hide.c. This put a lot of spaces in front of
> the UN/PW so they fall of your terminal when using ps -ef. I still have it
> somewhere. If you can't find it on the net let me know, I can mail it to
> you.
>
> Have a nice day,
> Rob.
Received on Tue Apr 25 2000 - 00:00:00 CDT