Su - Oracle


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Su - Oracle
# 1  
Old 01-31-2013
Su - Oracle

hi,

when I logged in as myself to unix box and if I do

echo $LOGNAME returns my login name ( abc)

then, changing to su - oracle

now:
Code:
echo $LOGNAME
oracle

but, if I use
`who am i|awk '{print $1}' ` it's retuning my user name both times. where $LOGNAME is changing when we do su - oracle ?


Thanks

Last edited by Scott; 01-31-2013 at 02:59 PM.. Reason: Please format your posts better
# 2  
Old 01-31-2013
Use whoami instead:
Code:
whoami

Login or Register to Ask a Question

Previous Thread | Next Thread

1 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Identify a specific environment Oracle variable to connect a remote Oracle database ?

Good evening I nned your help pls, In an unix server i want to connect to a remote oracle databse server by sqlplus. I tried to find out the user/passwd and service name by env variable and all Ive got is this: ORACLE_SID_REPCOL=SCL_REPCOL ORACLE_SID=xmeta ORACLE_SID_TOL=SCL_PROTOLCOL... (2 Replies)
Discussion started by: alexcol
2 Replies
Login or Register to Ask a Question