Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Q: embedding userid/password in scripts?
John P DeVoy wrote:
>
> I'm new to UNIX, and I want to develop some cron scripts that I
> can have log into the database and do some chores for me. I can
> do that trick just fine, but I'm not certain I'm handling the
> account name and password in the most secure manner possible.
>
> If you've done similar stuff in your shop, can you share with us
> how you handle the account name and password, together with any
> security issues. Thanks!!
> --
> ----------------------------------------------------------------
> John P De Voy "When amatuers dabble in databases ()
> DBA, NeXT Software Inc. people get hurt!" /\
I like to use a unix shell 'here document' so the shell preprocesses the script. It might look like:
#!/bin/ksh
export ORACLE_HOME=___________ export ORACLE_SID=____ export PATH=$ORACLE_HOME/bin:$PATH
-- John P. Higgins Voice: (309)765-4481 Deere & Company Fax: (309)765-5168 John Deere Road Internet: jh33378_at_deere.com Moline, IL 61265 Opinions: My OwnReceived on Thu Nov 14 1996 - 00:00:00 CST