Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Concealing SQL Loader password from ps -ef
You could also use a parameter file... Look at the utilities manual under the command line reference... The example from Oracle is...
PARFILE specifies the name of a file that contains commonly used command-line parameters. For example, the command line could read:
sqlldr parfile=example.par
The parameter file could have the following contents:
userid=scott/tiger
control=example.ctl
errors=9999
log=example.log
-----Original Message-----
From: Bellows, Bambi [mailto:BBellows_at_usg.com]
Sent: Thursday, October 25, 2001 1:51 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: Concealing SQL Loader password from ps -ef
The << operator creates a set of commands to be executed until a particular label as part of the calling command and only the calling command is displayed on ps -ef. This should work the same for sqlloader as it does for sqlplus or ftp or su or whatever else. Just put the username/password on the inside of the << operator and you should be golden.
HTH,
Bambi.
sqlplus << EOF
system/incredibly_secret_password
select * from dual;
exit
EOF
-----Original Message-----
Sent: Thursday, October 25, 2001 11:56 AM
To: Multiple recipients of list ORACLE-L
When running Sql Loader from a Unix script is there a way to code it so that the password will not be displayed when someone does ps -ef?
I know how to do it for sqlplus, exp and imp but not sql loader.
TIA,
Jay Miller
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Miller, Jay
INET: JayMiller_at_TDWaterhouse.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (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).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (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). Received on Thu Oct 25 2001 - 12:12:54 CDT
![]() |
![]() |