I usually do
 
echo passwd | sqlplus -s [EMAIL PROTECTED]
 
Raj
--------------------------------------------------------------------------------
Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !
-----Original Message-----
From: Johan Muller [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 2:09 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: SUPPRESS SQL STATEMENTS

I run the following script, and the -S option solved the problem I had (I even had the line # out in the script and re-invoked it).
 
If the username/pw is on a separate line as shown below, the ps command does not display the userid/pw info.
 
# Set environment variables
#!/bin/ksh
# Set local environment variables
ORACLE_BASE=/opt/oracle
JOBDATE=`date '+%Y%m%d'`; export JOBDATE;
JOBTIME=`date '+%H%M'`; export JOBTIME;
sqlplus -S << EOF
username/[EMAIL PROTECTED]
set echo off
rest of script
EOF

[EMAIL PROTECTED] wrote:

 what are the limitations?

other than ps commands that can read past a 3k command line



"Norris, Gregory T [ITS]" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

 10/15/2003 12:34 PM
 Please respond to ORACLE-L

       
        To:        Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
        cc:        
        Subject:        RE: SUPPRESS SQL STATEMENTS



True, but last I checked it had a number of limitations... it's basically a band-aid, while the patient is hemorrhaging.
-----Original Message-----
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, October 15, 2003 2:09 PM
To:
Multiple recipients of list ORACLE-L
Subject:
RE: SUPPRESS SQL STATEMENTS


not a pr! oblem  on most *nix if you use hide.c


http://www.cybcon.com/~jkstill/util/zips/hide.tgz


Jared



"Norris, Gregory T [ITS]" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]

 10/15/2003 06:49 AM
Please respond to ORACLE-L

       
       To:        Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>

       cc:        

       Subject:        RE: SUPPRESS SQL STATEMENTS




On *nix systems, the username/password information will be visible to all via the "ps" command.  Not good.

-----Original Message-----
Sent: Tuesday, October 14, 2003 11:09 AM
To: Multiple recipients of list ORACLE-L


Don't run the script while you're inside sqlplus. Run it from outside:
sqlp! lus un/pw @your-script
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Norris, Gregory T [ITS]
INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in

the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).






**************************************************************************************
This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.
**************************************************************************************5

Reply via email to