Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to hide sqlplus login/passwd
Damon K. Haley wrote:
>
> I happened to see this thread and it offered good suggestions on
> hiding username/password when running an sql command and then
> returning to unix.
>
> How can I hide username/password when I just want to enter sqlplus
> and run commands from the sql> prompt?
>
I use a korn shell in UNIX and create an alias: alias sql='sqlplus @ ~/profile.sql $ORACLE_SID'
The profile.sql looks like:
scott/tiger
set arraysize 64
set linesize 80 set numwidth 12
Since I don't have a quit or exit command in there, control returns to the command line. The userid/password is the first line of the script. I like to use 4 digit years so I put that in the script also. Received on Wed Dec 30 1998 - 17:28:55 CST