Question : sqlplus connection and password

Hi  oracle and unix Gurus
I have an issue where oralce sqlplus is being called from unix k shell. we have our login credentials for sqllplus in our .profile as environment variable defined as
LOGIN=oracle_user/password@oracle_sid; export LOGIN

and this is being used by all the k shells that needs to call sqlplus as in test_call_sqlplus.ksh as
sqlplus -s $LOGIN << EOF
execute
EOF

when we execute test_sqlplus.ksh and put them in background and then do
ps -ef |grep tty1
we see the password showing up as
sqlplus -s oracle_user/password@oracle_sid

This is clear violation as everyone can see the passwd. Is there anyway to hide this info..

Answer : sqlplus connection and password

Hi,

Instead of having a environment variable, you can have a script suchas as connect.sql  that does:
connect oracle_user/password@oracle_sid

sqlplus -s /nolog << EOF
start connect.sql
execute
EOF

You can the connect.sql file permissions so that other users cannot read it.

But as said garysadler OS authentication can be better.

Regards,
Franck.
Random Solutions  
 
programming4us programming4us