RE: Embeded password in script

2003-02-25 Thread David Jones
Jared: How do you do this for an export cron job ? Thanks David Jones ITResource -Original Message- Sent: Monday, February 24, 2003 2:51 PM To: Multiple recipients of list ORACLE-L The 'hide.c' program can be implemented and compiled to prevent parameters from appearing to ps. I belie

RE: Embeded password in script

2003-02-25 Thread Bob Lofstrand
sqlplus /nolog shutdown Thanks in advance, David -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Nguyen, David M INET: [EMAIL PROTECTED] Fat City Network Services-- 858-538-5051 http://www.fatcity.com San Diego, California-- M

RE: Embeded password in script

2003-02-25 Thread Gogala, Mladen
gt; Subject: RE: Embeded password in script > > > Actually, this would still display the password in the output > of "ps -ef" > because the "$syspw" environment variable is resolved before > handing it to > sqlplus. > > Try "sqlp

RE: Embeded password in script

2003-02-25 Thread Khedr, Waleed
You can have username/password in the first line of the sqlplus script. sqlplus @your-script.sql Your-script.sql will have id/pw in the first line. Regards, Waleed -Original Message- Sent: Monday, February 24, 2003 3:54 PM To: Multiple recipients of list ORACLE-L I have been tasked t

RE: Embeded password in script

2003-02-25 Thread Jesse, Rich
Actually, this would still display the password in the output of "ps -ef" because the "$syspw" environment variable is resolved before handing it to sqlplus. Try "sqlplus dbimpl/$syspw" and then a "ps -ef"... Rich Rich JesseSystem/Database Administrator [EMAIL PROTECTED]

RE: Embeded password in script

2003-02-25 Thread Nguyen, David M
Title: RE: Embeded password in script Thank you, Jared.  I have the book you wrote and will look into it. Regards, David -Original Message- From: Jared Still [mailto:[EMAIL PROTECTED]] Sent: Monday, February 24, 2003 4:51 PM To: Multiple recipients of list ORACLE-L Subject: Re

Re: Embeded password in script

2003-02-24 Thread Chip
$cd ${STUFF}/log $cat ../parms/dbimpl.Connect connect dbimpl/[EMAIL PROTECTED] as sysdba -- Optionally, could have sql*plus environment modifications $cat ../sql/demo.sql @../parms/&1..Connect -- SQL commands shutdown exit $sqlplus /nolog @../sql/demo.sql dbimpl The unix permissions on the parms di

Re: Embeded password in script

2003-02-24 Thread Jared Still
The 'hide.c' program can be implemented and compiled to prevent parameters from appearing to ps. I believe it still works properly on most flavors of unix. For the "Perl for Oracle DBA's" book we wrote one utililty that I had wanted for some time, a password database. For jobs that I plan to r

RE: Embeded password in script

2003-02-24 Thread STEVE OLLIG
i'll take the first one... on UNIX you could use a secret hidden file with appropriate permissions where each line has the format ORACLE_SID:USER:password then use awk to parse the file for the line with the correct $ORACLE_SID and $USER, and set an environment variable to the password string. T

RE: Embeded password in script

2003-02-24 Thread Jamadagni, Rajendra
Title: RE: Embeded password in script cat > pwfile syspw=blah export syspw ^D chmod  700 pwfile Unix Prompt> . pwfile Unix Prompt> sqlplus dbimpl/$syspw @your_script_here Raj - Rajendra dot Jamadagni at espn dot com

RE: Embeded password in script

2003-02-24 Thread DENNIS WILLIAMS
David You could change the read permission on the script so nobody can read it. A larger issue is how to prevent other users from seeing the password while your process is executing. Connor McDonald who participates on this list has some ideas at: http://www.jlcomp.demon.co.uk/faq/hide_password.

RE: Embeded password in script

2003-02-24 Thread Nguyen, David M
Sent by: Subject: Embeded password in script [EMAIL PROTECTED] 02/24/2003 12:54 PM Please respond to ORACLE-L

RE: Embeded password in script

2003-02-24 Thread Gogala, Mladen
sqlplus -s < -Original Message- > From: Nguyen, David M [mailto:[EMAIL PROTECTED] > Sent: Monday, February 24, 2003 3:54 PM > To: Multiple recipients of list ORACLE-L > Subject: Embeded password in script > > > I have been tasked to write a script to run SQL. I

Embeded password in script

2003-02-24 Thread Nguyen, David M
I have been tasked to write a script to run SQL. I don't want a password field to be shown in the script. Does someone have run into this and have a better idea? For example, I have following line in my script. Sqlplus dbimpl/password @SQLscript.sql Also, from command line we go through follo