Sunday, October 18, 2009


How to execute .profile without logging in
. ~/.profile

ways to switch over to oracle
/usr/local/bin/sudo su - oracle
/usr/local/bin/ss -u oracle

Some time after sudo home will not be set
$ id
uid=1001(oracle) gid=5006(dba)
$ pwd

in that case just do like this & later run the profile script
cd ~oracle
. ./.profile

No comments:

Post a Comment