Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: user/pwd in pro*c pgm
Lisa Lewis wrote:
>
> I was wondering how others keep there userid/pwd from being embedded in
> pro*c pgms. I know about the $OPS option....how safe is this? Can you
> connect to a database on a different server than the pro*c executable using
> the $OPS method? I have not been able to get this to work. What are other
> options?
I haven't used the $OPS method. I have used resource files (.rc files) (also known as .ini files on windows) to store username, password. The ..rc file lives in the $HOME directory of the user (on UNIX) and is parsed when the application starts up (use C function fscanf). This is fairly secure because the .rc file is under the influence of the Unix filesystem security/priviledges. It has the added bonus of being more flexible than the embedded method.
>
> Thanks!
> Lisa
--
Jeffery Cann
Fairway Systems, Inc.
Senior Software Engineer
Received on Wed Jun 17 1998 - 15:53:13 CDT