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

Home -> Community -> Usenet -> c.d.o.misc -> Re: PASSING A PARAMETER FROM KORN SHELL (NEWBIE)

Re: PASSING A PARAMETER FROM KORN SHELL (NEWBIE)

From: kiel <kiel_at_webpre.com>
Date: Thu, 11 Mar 1999 15:47:14 -0800
Message-ID: <36E85602.AEF00EB6@webpre.com>

> sqlplus -s users/password <<! 1>log_file

Note that calling up sqlplus in this manner will make your user/password available to everybody on the system via the ps command as long as the script runs.

one way around this is to include user/password as the first line of your script, which of course you wouldn't make readable by others, or better yet to create a on line file say my_pwd.sql with only user/password in it.

then the first line of your script can be

@my_pwd

and you can have others look at your scripts.

you would call sqlplus like this then

sqlplus @my_script $param1 $param2 etc.

Christian Received on Thu Mar 11 1999 - 17:47:14 CST

Original text of this message

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