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:

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

Use whoami instead:

whoami