Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQLPlus scripts in Unix
If the question was how to secure the sqlplus name/password in a
Unix shell script.
Write the name/passwd on the next line in a "here" document then the "ps" command will not show the name and password as it does when it is on the command line. Make sure the script does not have permissions for everyone to read it. You are then minimally secure.
Example:
sqlplus << EOF
name/passwd
set pages 0 feed off echo off
select field_y from table_x;
EOF
--
![]() |
![]() |